#Maintainer: George Vlahavas (vlahavas~at~gmail~dot~com, gapan@zenwalk forums) pkgname=xml-simple pkgver=2.18 zenver=54 pkgrel=1 arch=i486 source=(http://www.cpan.org/modules/by-module/XML/GRANTM/XML-Simple-2.18.tar.gz) docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "maintainers") url=http://search.cpan.org/~grantm/XML-Simple-2.18/lib/XML/Simple.pm sourcetemplate=http://pnboy.pinguix.com/gapan/$pkgname options=('norequiredbuilder' 'keepdepfile') doinst() { NEW="usr/lib/perl5/5.10.0/i486-linux-thread-multi/perllocal.pod.xml-simple" OLD="usr/lib/perl5/5.10.0/i486-linux-thread-multi/perllocal.pod" # If there's no file by that name, mv it over: if [ ! -r "$OLD" ]; then mv "$NEW" "$OLD" elif grep "XML::Simple|" "$OLD" &> /dev/null ; then # don't append it twice rm "$NEW" &>/dev/null else cat "$NEW" >> "$OLD" rm "$NEW" fi } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "xml-simple - Easy API to maintain XML (esp config files)" "The XML::Simple module provides a simple API layer on top of an" "underlying XML parsing module (either XML::Parser or one of the SAX2" "parser modules). Two functions are exported: XMLin() and XMLout()." "Note: you can explicity request the lower case versions of the" "function names: xml_in() and xml_out()." ) build() { cd $startdir/src/XML-Simple-$pkgver perl Makefile.PL || exit make || return 1 make install DESTDIR=$startdir/pkg # Take care of the perllocal.pod file which also exists in other packages mv $startdir/pkg/usr/lib/perl5/5.10.0/i486-linux-thread-multi/perllocal.pod $startdir/pkg/usr/lib/perl5/5.10.0/i486-linux-thread-multi/perllocal.pod.$pkgname }