# Maintainer: Natanael Copa pkgname=help2man pkgver=1.47.4 pkgrel=0 pkgdesc="Create simple man pages from --help output" url="http://www.gnu.org/software/help2man" arch="noarch" license="GPLv3+" depends="perl" depends_dev="" makedepends="$depends_dev" install="" subpackages="$pkgname-doc" source="ftp://ftp.gnu.org/gnu/help2man/help2man-$pkgver.tar.xz" _builddir="$srcdir"/help2man-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } 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 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } sha512sums="3320890c4068086bff7a858653fb67ac80363f26772fb0bb702233052e2bcbe647e7b20b1a2246b1a0e026ba2aa8679e6baafe302d78c747da04e29c59b9bafd help2man-1.47.4.tar.xz"