Create initial PKGBUILD

This commit is contained in:
RealStickman 2021-12-13 20:04:34 +01:00
commit 9f1202218d
3 changed files with 51 additions and 0 deletions

19
.SRCINFO Normal file
View File

@ -0,0 +1,19 @@
pkgbase = kopia-ui-bin
pkgdesc = A cross-platform backup-tool with encryption, deduplication, compression and cloud support.
pkgver = 0.9.7
pkgrel = 1
url = https://github.com/kopia/kopia/
arch = x86_64
arch = aarch64
arch = armv7h
license = APACHE
provides = kopia-ui
conflicts = kopia-ui
source_x86_64 = https://github.com/kopia/kopia/releases/download/v0.9.7/kopia-ui_0.9.7_amd64.deb
sha256sums_x86_64 = 7a2df8a6047e29926f0f481147e33e99f9d310d2fff2db892b1e0cc2eb311081
source_aarch64 = https://github.com/kopia/kopia/releases/download/v0.9.7/kopia-ui_0.9.7_arm64.deb
sha256sums_aarch64 = 6dbb3133a1695d2e47ddac1c7a61f315afe7bf1b72349fa985ee3b71cfc7256b
source_armv7h = https://github.com/kopia/kopia/releases/download/v0.9.7/kopia-ui_0.9.7_armv7l.deb
sha256sums_armv7h = 6dbb3133a1695d2e47ddac1c7a61f315afe7bf1b72349fa985ee3b71cfc7256b
pkgname = kopia-ui-bin

7
.gitignore vendored Normal file
View File

@ -0,0 +1,7 @@
# ignore everything
*
# except these files
!.gitignore
!PKGBUILD
!.SRCINFO

25
PKGBUILD Normal file
View File

@ -0,0 +1,25 @@
# 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}"
}