milis/talimatname/genel/perl-xml-sax/talimat

27 lines
688 B
Plaintext

# Description: XML için basit API
# URL: http://search.cpan.org/dist/XML-SAX
# Packager: milisarge
# Depends on: perl perl-xml-namespacesupport perl-xml-sax-base
name=perl-xml-sax
version=0.99
release=1
source=(
http://www.cpan.org/authors/id/G/GR/GRANTM/XML-SAX-$version.tar.gz
perl-xml-sax.patch)
build() {
cd XML-SAX-$version
patch -Np1 -i ../perl-xml-sax.patch || exit 1
perl Makefile.PL
make OPTIMIZE="$CFLAGS" || exit 1
make test
make install INSTALLDIRS=vendor DESTDIR=$PKG || exit 1
# Remove perllocal.pod and .packlist if present in the package
for i in perllocal.pod .packlist; do
find $PKG -name "$i" -exec rm -rf {} \;
done
}