diff options
author | Ishan Arora | 2022-12-26 18:28:17 +1300 |
---|---|---|
committer | Ishan Arora | 2022-12-26 18:28:17 +1300 |
commit | 1f060d5e7220baf90afad40006357a20d00dc8c7 (patch) | |
tree | 343cef57c239c73508d068e8c477e9cbd93b50dc | |
download | aur-1f060d5e7220baf90afad40006357a20d00dc8c7.tar.gz |
Autorestic v1.7.4
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 31 |
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..922e4fd408c5 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = autorestic + pkgdesc = Config driven, easy backup cli for restic + pkgver = 1.7.4 + pkgrel = 1 + url = https://github.com/cupcakearmy/autorestic + arch = i686 + arch = x86_64 + arch = armv7h + arch = aarch64 + license = Apache License 2.0 + makedepends = go + depends = restic + source = autorestic-1.7.4.tar.gz::https://github.com/cupcakearmy/autorestic/archive/refs/tags/v1.7.4.tar.gz + sha256sums = 253a16dbad709e1e1065222ab0950ded6dc302ebcebba2585eed7759c7b99714 + +pkgname = autorestic diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..15c044d75a5a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +pkgname=autorestic +pkgver=1.7.4 +pkgrel=1 +pkgdesc='Config driven, easy backup cli for restic' +arch=('i686' 'x86_64' 'armv7h' 'aarch64') +url="https://github.com/cupcakearmy/$pkgname" +license=('Apache License 2.0') +depends=('restic') +makedepends=('go') +source=("${pkgname}-${pkgver}.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz") +sha256sums=('253a16dbad709e1e1065222ab0950ded6dc302ebcebba2585eed7759c7b99714') + +prepare(){ + cd "$pkgname-$pkgver" + mkdir -p build/ +} + +build() { + cd "$pkgname-$pkgver" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" + go build +} + +package() { + cd "$pkgname-$pkgver" + install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname +} |