# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
setvar pkgname = 'prwd'
setvar pkgver = '1.8'
setvar pkgrel = '0'
setvar pkgdesc = ""A tool can print reduced working directory""
setvar url = ""http://tamentis.com/projects/prwd/""
setvar arch = ""all""
setvar license = ""BSD""
setvar depends = """"
setvar depends_dev = """"
setvar makedepends = "$depends_dev"
setvar install = """"
setvar subpackages = """"
setvar source = ""$pkgname-$pkgver.tar.gz::https://github.com/tamentis/prwd/archive/v$pkgver.tar.gz""

setvar _builddir = ""$srcdir"/$pkgname-$pkgver"
proc prepare {
	local i
	cd $_builddir
	for i in $source {
		case (i) {
		*.patch { msg $i; patch -p1 -i "$srcdir"/$i || return 1}
		}
	}
}

proc build {
	cd $_builddir
	./configure\
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

proc package {
	cd $_builddir
	make DESTDIR="$pkgdir" install || return 1
}

setvar md5sums = ""904bba51ee14a355b85a583769cb23a5  prwd-1.8.tar.gz""
setvar sha256sums = ""af98328ed3d605008f820d865676311d57e985d73f74b020d1d8a81028f66d04  prwd-1.8.tar.gz""
setvar sha512sums = ""d6792096b4a28a41f9d9797d15639efe067eaa733a65b57a9e54786d10fb82ef59ee3f95742f3b377a8c1b3a2d00d1df7937c6b67ac492debd9b39ade5756c2a  prwd-1.8.tar.gz""