# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer:
pkgname=obnam
pkgver=1.22
pkgrel=0
pkgdesc="A backup program that supports encryption and deduplication"
url="http://obnam.org/"
arch="all"
license="GPL-3.0-or-later"
depends="python2 py-larch py-paramiko py-fuse py-enum34 py-six py-asn1-modules py-packaging"
depends_dev=""
makedepends="python2-dev py-setuptools"
install=""
subpackages="$pkgname-doc"
source="http://code.liw.fi/debian/pool/main/o/$pkgname/${pkgname}_$pkgver.orig.tar.xz"

builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$builddir"
	python2 setup.py build
}

package() {
	cd "$builddir"
	python2 setup.py install --prefix=/usr \
		--root="$pkgdir"
}

sha512sums="fe7098054d9f363fd0028c3ef374628b73cc6a204f575382dcf294804851dba8fdccfcf63c7dea42743aafc1030ecc68efed5757af72a04db847057e4475bcb3  obnam_1.22.orig.tar.xz"
