#Packager: Shador pkgname=help2man pkgver=1.38.2 pkgrel=1ab #arch=x86_64 source=("http://ftp.gnu.org/gnu/help2man/help2man-$pkgver.tar.gz") sourcetemplate="http://gaia.homelinux.org/salix/packages-x86_64/$pkgname/$pkgver/" docs=("readme" "install" "copying" "changelog" "authors" "news" "thanks") url='http://www.gnu.org/software/help2man/' slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname - tool to automatically generate simple manual pages" "help2man is a tool for automatically generating simple manual pages" "from program output." "It is intended to provide an easy way for software authors to include" "a manual page in their distribution without having to maintain that" "document." "Given a program which produces resonably standard --help and --version" "outputs, help2man will attempt to re-arrange that output into" "something which resembles a manual page." ) build() { threadcount=$(($(sed -ne '/cpu cores/h;${g;s/[^0-9]*//p}' \ < /proc/cpuinfo)*2)) if [ $threadcount -lt 2 ]; then threadcount=2 elif [ $threadcount -gt 8 ]; then threadcount=8 fi threads="-j${threadcount}" cd $startdir/src/$pkgname-$pkgver ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --localstatedir=/var \ --sysconfdir=/etc \ --mandir=/usr/man \ --enable-nls || return 1 make $threads || return 1 make install DESTDIR=$startdir/pkg || return 1 install -vd $startdir/pkg/usr/doc/$pkgname-$pkgver/ cp -r debian $startdir/pkg/usr/doc/$pkgname-$pkgver/ }