kopia-ui-bin/PKGBUILD

26 lines
1.3 KiB
Bash
Raw Normal View History

2021-12-13 20:04:34 +01:00
# Maintainer: RealStickman <mrc+aur@frm01.net>
pkgname=kopia-ui-bin
pkgdesc='A cross-platform backup-tool with encryption, deduplication, compression and cloud support.'
pkgver=0.9.7
# Uncomment for releases with hyphens
# _pkgver=$(echo "$pkgver" | tr '~' -)
pkgrel=1
arch=('x86_64' 'aarch64' 'armv7h')
url='https://github.com/kopia/kopia/'
license=('APACHE')
provides=("${pkgname%-bin}")
conflicts=("${pkgname%-bin}")
source_x86_64=("https://github.com/kopia/kopia/releases/download/v$pkgver/${pkgname%-bin}_${pkgver}_amd64.deb")
source_aarch64=("https://github.com/kopia/kopia/releases/download/v$pkgver/${pkgname%-bin}_${pkgver}_arm64.deb")
source_armv7h=("https://github.com/kopia/kopia/releases/download/v$pkgver/${pkgname%-bin}_${pkgver}_armv7l.deb")
sha256sums_x86_64=('7a2df8a6047e29926f0f481147e33e99f9d310d2fff2db892b1e0cc2eb311081')
sha256sums_aarch64=('6dbb3133a1695d2e47ddac1c7a61f315afe7bf1b72349fa985ee3b71cfc7256b')
sha256sums_armv7h=('6dbb3133a1695d2e47ddac1c7a61f315afe7bf1b72349fa985ee3b71cfc7256b')
package() {
tar -xf data.tar.xz -C "$pkgdir"
"$pkgdir/usr/bin/${pkgname%-bin}" --completion-script-bash | install -Dm 644 /dev/stdin "$pkgdir/usr/share/bash-completion/completions/${pkgname%-bin}"
"$pkgdir/usr/bin/${pkgname%-bin}" --completion-script-zsh | install -Dm 644 /dev/stdin "$pkgdir/usr/share/zsh/site-functions/_${pkgname%-bin}"
}