aports/testing/barman/APKBUILD
Celeste 1aac58740e testing/barman: upgrade to 3.9.0 & use gpep517 packaging
also, switch project URL to HTTPS
2023-10-04 12:45:04 +00:00

40 lines
1.3 KiB
Plaintext

# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=barman
pkgver=3.9.0
pkgrel=0
pkgdesc="Backup and recovery manager for PostgreSQL"
url="https://pgbarman.org"
arch="noarch"
license="GPL-3.0-or-later"
depends="python3 rsync postgresql-client py3-argcomplete py3-dateutil py3-psycopg2 py3-boto3"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-doc $pkgname-bash-completion $pkgname-pyc"
pkgusers="barman"
pkggroups="barman"
install="$pkgname.pre-install"
options="!check" #pytest does not start and I don't know why
checkdepends="py3-pytest-timeout py3-mock py3-pytest-runner py3-pip py3-mock"
source="$pkgname-$pkgver.tar.gz::https://github.com/EnterpriseDB/barman/releases/download/release/$pkgver/barman-$pkgver.tar.gz"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
package() {
python3 -m installer -d "$pkgdir" .dist/*.whl
install -Dm0644 ./scripts/barman.bash_completion \
"$pkgdir"/usr/share/bash-completion/completions/$pkgname
install -d -o $pkgusers -g $pkggroups -m 755 "$pkgdir"/var/log/$pkgname
cd doc
install -Dm0644 barman.conf -t "$pkgdir/etc"
}
sha512sums="
d71a8027b20397934cf42ab7624ba30259025c77c33fdbf8d61a84ff7f3ef485e6603aab89233e16bba4c19f886030cf35b10b4e46190471c166755ee9162406 barman-3.9.0.tar.gz
"