# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Eivind Uggedal <eivind@uggedal.com>
setvar pkgname = 'tarsnap'
setvar pkgver = '1.0.39'
setvar pkgrel = '0'
setvar pkgdesc = ""Online backups for the truly paranoid""
setvar url = ""https://www.tarsnap.com/""
setvar arch = ""x86_64 x86 ppc64le""
setvar license = ""custom""
setvar makedepends = ""e2fsprogs-dev zlib-dev libressl-dev""
setvar subpackages = ""$pkgname-doc""
setvar source = ""https://www.tarsnap.com/download/$pkgname-autoconf-$pkgver.tgz""
setvar builddir = ""$srcdir"/$pkgname-autoconf-$pkgver"

proc build {
	cd $builddir
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc/$pkgname \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

proc check {
	cd $builddir
	make check
}

proc package {
	cd $builddir
	make DESTDIR="$pkgdir" install
	install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}

setvar sha512sums = ""dec8a72144a3a7fd42b006933c904b812894ca9fe2c57ecc4fbba817b9b49c8f15517530a00b0c3a9897e3182b4d9aee525334537806a9c4f7308086678fa2b4  tarsnap-autoconf-1.0.39.tgz""