# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=duply
pkgver=2.0.4
pkgrel=0
pkgdesc="Wrapper for duplicity"
url="http://duply.net"
arch="noarch"
license="GPL-2.0"
depends="duplicity bash"
depends_dev=""
makedepends="$depends_dev txt2man"
install=""
subpackages="$pkgname-doc"
source="http://ufpr.dl.sourceforge.net/project/ftplicity/duply%20%28simple%20duplicity%29/2.0.x/duply_$pkgver.tgz"
builddir="$srcdir"/duply_${pkgver}

build() {
	cd "$builddir"
}

package() {
	cd "$builddir"
	install -Dm755 duply \
		"$pkgdir"/usr/bin/duply
	mkdir -p "$pkgdir"/usr/share/man/man1
	"$pkgdir"/usr/bin/duply txt2man > \
		"$pkgdir"/usr/share/man/man1/duply.1
	install -Dm644 gpl-2.0.txt \
		"$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

sha512sums="87254ef8e8499c4969f8f4d1806dc90352a4708d6b93d1be00273078e6b83636a5cc80c5faa76cf82cca040f392c11b5188ec2e3969fde26ffffeafd13346c60  duply_2.0.4.tgz"
