#Maintainer: R S Ananda Murthy pkgname=gperf pkgver=3.0.4 pkgrel=1 zenver=66 arch=i486 source=("http://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.gz") sourcetemplate=http://zenwalk.pinguix.com/user-accounts/rsamurti/$pkgname/ docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=http://www.gnu.org/software/gperf/ doinst() { ## This installs info directory informtation for the package. if [ -x usr/bin/install-info ] then usr/bin/install-info --info-dir=usr/info usr/info/gperf.info.gz 2>/dev/null fi EOF } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "GNU gperf is a program that generates perfect hash functions for sets" "of keywords. A perfect hash function is a hash function and a data" "structure that allows recognition of a key word in a set of words" "using exactly 1 probe into the data structure. Output from the GPERF" "program is used to recognize reserved words in the GNU C, GNU C++," "and GNU Pascal compilers, as well as with the GNU indent program." "Home Page: http://www.gnu.org/software/gperf/gperf.html" ) build() { cd $startdir/src/$pkgname-$pkgver ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --mandir=/usr/man make || return 1 make install DESTDIR=$startdir/pkg mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver/HTML cp $startdir/src/$pkgname-$pkgver/doc/*.html $startdir/pkg/usr/doc/$pkgname-$pkgver/HTML cp $startdir/src/$pkgname-$pkgver/doc/*.pdf $startdir/pkg/usr/doc/$pkgname-$pkgver }