# Contributor: Sören Tempel # Maintainer: Sören Tempel pkgname=restic pkgver=0.16.0 pkgrel=1 pkgdesc="Fast, secure, efficient backup program" url="https://restic.net/" arch="all" license="BSD-2-Clause" makedepends="go" options="net chmod-clean" subpackages="$pkgname-doc $pkgname-bash-completion $pkgname-zsh-completion" source="https://github.com/restic/restic/releases/download/v$pkgver/restic-$pkgver.tar.gz" export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" build() { go build -v ./cmd/... } check() { RESTIC_TEST_FUSE=0 make test } package() { install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname local man for man in doc/man/*.?; do install -Dm644 "$man" \ "$pkgdir"/usr/share/man/man${man##*.}/${man##*/} done install -Dm644 doc/bash-completion.sh \ "$pkgdir"/usr/share/bash-completion/completions/$pkgname install -Dm644 doc/zsh-completion.zsh \ "$pkgdir"/usr/share/zsh/site-functions/_$pkgname } sha512sums=" d51732b611407cc8ebc40c9acb45df8154f87ece26b37d32074b59f5cfb56cbcca71695036923a50739215426dce614fb32d8cd18c581d37dc10d8a25b8c95e5 restic-0.16.0.tar.gz "