Skip to content

Instantly share code, notes, and snippets.

@bulletmark bulletmark/PKGBUILD
Created Apr 16, 2019

Embed
What would you like to do?
PKGBUILD for borg-bin
# Maintainer: mark.blakeney at bullet-systems dot net
pkgname=borg-bin
pkgver=1.1.9
pkgrel=1
pkgdesc="Borg backup - prebuilt standalone binary"
url="https://borgbackup.readthedocs.io/en/stable/installation.html#standalone-binary"
license=("GPL")
arch=("x86_64" "i686" "armv6h" "armv7h" "armv8h")
provides=("borg" "borgbackup")
conflicts=("borg" "borgbackup")
_tgt="$pkgname-$pkgver"
_baseurl="https://github.com/borgbackup/borg/releases/download"
_armurl="https://dl.bintray.com/borg-binary-builder/borg-binaries"
source=("$_tgt-README.txt::$_baseurl/$pkgver/README.txt")
source_x86_64=("$_tgt-x86_64::$_baseurl/$pkgver/borg-linux64")
source_i686=("$_tgt-i686::$_baseurl/$pkgver/borg-linux32")
source_armv6h=("$_tgt-armv6h::$_armurl/borg-$pkgver-armv6")
source_armv7h=("$_tgt-armv7h::$_armurl/borg-$pkgver-armv6")
source_armv8h=("$_tgt-armv8h::$_armurl/borg-$pkgver-arm64")
sha256sums=('c062f7f55caf4aed6579d350bbe777668b6d690382aa5b300eec91bb1aa6e719')
sha256sums_x86_64=('47154eafe160a6d59afbf90b2e7c7569c13d63cad96ee3f3bb31cc8d2a4e60a3')
sha256sums_i686=('4d47902c89b1c0233a712296c913b8218a1890629701f4bf4dedf1127477629e')
sha256sums_armv6h=('50d2179e0e1358bfd2e9fb239f0f6ab6f4acf8715ac1ebabc052e59f3a9ae06e')
sha256sums_armv7h=('50d2179e0e1358bfd2e9fb239f0f6ab6f4acf8715ac1ebabc052e59f3a9ae06e')
sha256sums_armv8h=('49207b45caaa7a303c18f964932103687030167d33607c84fa263e5820d606b9')
package() {
install -D $_tgt-$CARCH $pkgdir/usr/bin/borg
ln $pkgdir/usr/bin/borg $pkgdir/usr/bin/borgfs
install -D -m644 $_tgt-README.txt $pkgdir/usr/share/doc/$pkgname/README.txt
}
# vim:set ts=2 sw=2 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.