mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-13 02:36:34 +02:00
39 lines
1.3 KiB
Text
39 lines
1.3 KiB
Text
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=barman
|
|
pkgver=3.13.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 docs
|
|
install -Dm0644 barman.conf -t "$pkgdir/etc"
|
|
}
|
|
|
|
sha512sums="
|
|
9c31da9c1fb1ffb19f440e22056636f861af93a846185178784f935aae5df4358a94aa3ab97e486ead1ea1f37fb5b38ffac25287372c72e128e0094bb0bf5e30 barman-3.13.0.tar.gz
|
|
"
|