aboutsummaryrefslogtreecommitdiffstats
path: root/main/duplicity/APKBUILD
blob: 1fc9f5eb7ee4042c5c7d5be7faa7f1aaa50b5c1d (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
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Matt Smith <mcs@darkregion.net>
# Maintainer:  Matt Smith <mcs@darkregion.net>
pkgname=duplicity
pkgver=0.7.17
pkgrel=1
pkgdesc="Encrypted bandwidth-efficient backup using the rsync algorithm"
url="http://duplicity.nongnu.org/"
arch="all"
license="GPL"
depends="python2 py-boto gnupg ncftp py2-fasteners"
makedepends="python2-dev py-setuptools librsync-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://code.launchpad.net/$pkgname/${pkgver:0:3}-series/$pkgver/+download/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	python2 setup.py build
}

check() {
	cd "$builddir/duplicity"
	python2 compilec.py
	cd ..
	# Run a simple smoke-test
	PYTHONPATH="$PWD" python2 bin/duplicity -V | grep -q duplicity
}

package() {
	cd "$builddir"
	python2 setup.py install --root "$pkgdir"
}

sha512sums="a7fa3f26709bcb25be519a20d65a196072a49ca468ace84b4876a815efea23fc1ed5b77abf765475fb8a08e3138349bf1d48e0ce22816ef66526463b646e12a3  duplicity-0.7.17.tar.gz"