blob: 5f05dcdc4148b71ef8816edfa458adf5bf6b03b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=restic
pkgver=0.12.1
pkgrel=5
pkgdesc="Fast, secure, efficient backup program"
url="https://restic.net/"
# mips(64): test failures due to fallocate not being supported
# armhf: https://github.com/restic/restic/issues/3505
arch="all !mips !mips64 !armhf"
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 GOPATH="$srcdir"
build() {
go build ./cmd/...
}
check() {
# Remove test that no longer applies to us
rm internal/backend/rest/rest_int_go114_test.go
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="
a95ad2731889a54a26bd38d7c00285b5fee631d7b44bf553a37ef827747912ac03d5282b7fe5791705c98267cddb6282d82f13c1b6c489d1c09148da4fa526e7 restic-0.12.1.tar.gz
"
|