mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 05:17:07 +02:00
46 lines
1.4 KiB
Plaintext
46 lines
1.4 KiB
Plaintext
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
|
|
# Contributor: Matt Smith <mcs@darkregion.net>
|
|
# Maintainer: Matt Smith <mcs@darkregion.net>
|
|
pkgname=duplicity
|
|
pkgver=1.2.3
|
|
pkgrel=1
|
|
pkgdesc="Encrypted bandwidth-efficient backup using the rsync algorithm"
|
|
url="https://duplicity.gitlab.io/duplicity-web/"
|
|
arch="all"
|
|
license="GPL-2.0-or-later"
|
|
depends="python3 py3-boto3 gpg gpg-agent ncftp py3-fasteners py3-future"
|
|
makedepends="python3-dev py3-setuptools librsync-dev gettext py3-wheel py3-gpep517"
|
|
checkdepends="py3-pytest py3-pexpect"
|
|
subpackages="$pkgname-pyc $pkgname-doc $pkgname-lang"
|
|
source="https://gitlab.com/duplicity/duplicity/-/archive/rel.$pkgver/duplicity-rel.$pkgver.tar.bz2"
|
|
builddir="$srcdir/duplicity-rel.$pkgver"
|
|
options="!check" # fails on second time differences
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
# their version setting is broken
|
|
sed -i "s|\$version|$pkgver|" duplicity/__init__.py
|
|
}
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages testenv
|
|
testenv/bin/python3 -m installer dist/*.whl
|
|
testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
fa98cacaba9be9f6e972a70e2e784a0c9f648b891d5151e01bf1645b103cc8e2ade2617e9e0ded1e4dfda7b322660217483fe29322d4744827596d4f089f22d3 duplicity-rel.1.2.3.tar.bz2
|
|
"
|