blob: 3ab08ef26f1d44c8a35acfce6c5c9c2ff1aab362 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# Contributor: Olivier Mauras <olivier@mauras.ch>
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=borgbackup
_pkgname=borg
pkgver=1.2.2
pkgrel=2
pkgdesc="Deduplicating backup program"
url="https://www.borgbackup.org/"
# armhf: Bus error in tests
arch="all !armhf"
license="BSD-3-Clause"
depends="
py3-msgpack
py3-packaging
python3
"
makedepends="
acl-dev
attr-dev
linux-headers
lz4-dev
openssl-dev>3
py3-setuptools
py3-setuptools_scm
python3-dev
zstd-dev
"
checkdepends="
py3-dateutil
py3-pytest
py3-pytest-benchmark
"
subpackages="
$pkgname-doc
$pkgname-bash-completion
$pkgname-fish-completion
$pkgname-zsh-completion
"
source="https://github.com/borgbackup/borg/releases/download/$pkgver/borgbackup-$pkgver.tar.gz"
export BORG_OPENSSL_PREFIX="/usr/include/openssl"
build() {
# https://github.com/borgbackup/borg/issues/4891#issuecomment-615838317
CFLAGS="$CFLAGS -DXXH_FORCE_MEMORY_ACCESS=1" \
python3 setup.py build
}
check() {
PYTHONPATH="$(echo "$builddir"/build/lib.linux-*)" pytest -v \
--benchmark-skip --pyargs borg.testsuite
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
install -Dm644 -t "$pkgdir"/usr/share/man/man1 docs/man/*.1
install -Dm644 scripts/shell_completions/bash/$_pkgname \
"$pkgdir"/usr/share/bash-completion/completions/$_pkgname
install -Dm644 scripts/shell_completions/fish/$_pkgname.fish \
"$pkgdir"/usr/share/fish/completions/$_pkgname.fish
install -Dm644 scripts/shell_completions/zsh/_$_pkgname \
"$pkgdir"/usr/share/zsh/site-functions/_$_pkgname
# clean some useless files
cd "$pkgdir"/usr/lib/python*/site-packages/borg
find . -name '*.h' -delete -o -name '*.c' -delete -o -name '*.pyx' -delete
}
sha512sums="
9ba040dc659b123e09d1814ea158eb06bd802dbb4961e258910a586f88c5e92e8f32a72c1858f7a8d9d79c3e985b12cf0245436f46a474f627cfd70a59a7e29d borgbackup-1.2.2.tar.gz
"
|