diff options
Diffstat (limited to 'community/borgmatic/APKBUILD')
-rw-r--r-- | community/borgmatic/APKBUILD | 48 |
1 files changed, 35 insertions, 13 deletions
diff --git a/community/borgmatic/APKBUILD b/community/borgmatic/APKBUILD index b1e3851cf9e..d4220d691b3 100644 --- a/community/borgmatic/APKBUILD +++ b/community/borgmatic/APKBUILD @@ -1,42 +1,64 @@ # Contributor: Michał Polański <michal@polanski.me> # Maintainer: Michał Polański <michal@polanski.me> pkgname=borgmatic -pkgver=1.5.15 -pkgrel=0 +pkgver=1.8.9 +pkgrel=1 pkgdesc="Simple, configuration-driven backup software for servers and workstations" url="https://torsion.org/borgmatic/" -arch="noarch !s390x !mips !mips64 !armhf" # limited by borgbackup license="GPL-3.0-or-later" +# armhf: limited by borgbackup +# s390x: tests fail +arch="noarch !armhf !s390x" depends=" borgbackup - python3 - py3-setuptools - py3-pykwalify + py3-colorama + py3-jsonschema + py3-packaging py3-requests py3-ruamel.yaml - py3-colorama + " +makedepends=" + py3-gpep517 + py3-setuptools + py3-wheel " checkdepends=" py3-pytest py3-pytest-cov py3-flexmock " -source="$pkgname-$pkgver.tar.gz::https://projects.torsion.org/witten/borgmatic/archive/$pkgver.tar.gz" +subpackages="$pkgname-bash-completion $pkgname-pyc" +source="$pkgname-$pkgver.tar.gz::https://projects.torsion.org/borgmatic-collective/borgmatic/archive/$pkgver.tar.gz" builddir="$srcdir/borgmatic" + build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 + + python3 -m venv --clear --without-pip --system-site-packages venv + ./venv/bin/python3 -m installer \ + .dist/borgmatic-$pkgver-py3-none-any.whl + ./venv/bin/borgmatic --bash-completion > $pkgname.bash } check() { - # omit a simple test that requires borgmatic to be available in $PATH - pytest -k "not test_borgmatic_version_matches_news_version" + python3 -m venv --clear --without-pip --system-site-packages .testenv + .testenv/bin/python3 -m installer .dist/*.whl + # Requires apprise package that is currently in testing + PATH="$PATH:$builddir/.testenv/bin" .testenv/bin/python3 -m pytest \ + --ignore=tests/unit/hooks/test_apprise.py } package() { - python3 setup.py install --prefix=/usr --root="$pkgdir" --skip-build + python3 -m installer -d "$pkgdir" \ + .dist/borgmatic-$pkgver-py3-none-any.whl + + install -Dm644 $pkgname.bash \ + "$pkgdir"/usr/share/bash-completion/completions/$pkgname } sha512sums=" -f26bcd2728ba18a13e2d013ac5bef41732eaf191259883e65585c69234684f30a704eadb57ed76e55b72df2df52ccd88dcdbed7afc92bd5ff18ffade0fe97910 borgmatic-1.5.15.tar.gz +65109fb5ece95022cfce44c58bb38ffa63e64913f61ede13d611382b8039ecf37f07fcdb687b1d3ac7e83dba11ed0ccda4a50ff88c48c8100de50125d891a31c borgmatic-1.8.9.tar.gz " |