#Packager: Frédéric Galusik pkgname=perl-xml-sax pkgver=0.96 pkgrel=2fg #arch=noarch source=("http://www.cpan.org/authors/id/G/GR/GRANTM/XML-SAX-$pkgver.tar.gz" "perl-xml-sax.patch" "README.Slackware" "modif_i486.sh" "modif_64.sh") sourcetemplate=http://people.salixos.org/fredg/packages/$pkgname/$pkgver/ docs=("Changes" "readme" "manifest" "license") url=http://search.cpan.org/dist/XML-SAX/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "perl-xml-sax (Perl XML-SAX module)" "A simple API for XML." "" "If you want to modify your ParserDetails.ini file you have to read the" "README /usr/doc/perl-xml-sax-VERSION/README.Slackware" ) build() { cd $startdir/src/XML-SAX-$pkgver # patch from archlinux to remove user interaction during instal patch -p1 < $startdir/perl-xml-sax.patch || exit 1 perl Makefile.PL || exit 1 make OPTIMIZE="$CFLAGS" || exit 1 make install INSTALLDIRS=vendor DESTDIR=$startdir/pkg || exit 1 mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver cp $startdir/{README.Slackware,modif_i486.sh,modif_64.sh} \ $startdir/pkg/usr/doc/$pkgname-$pkgver/ # Remove perllocal.pod and .packlist if present in the package ( for i in perllocal.pod .packlist; do find $startdir/pkg -name "$i" -exec rm -rf {} \; done ) || exit 1 }