#Maintainer: Frederic Boulet bipbiponlinux~AT~gmail.com pkgname=perl_Sort-Naturally pkgver=1.02 zenver=66 pkgrel=1 arch=i486 source=(http://search.cpan.org/CPAN/authors/id/S/SB/SBURKE/Sort-Naturally-$pkgver.tar.gz) sourcetemplate=http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/d/$pkgname docs=("readme*" "credits*" "changes*" "changelog*" "readme*") url=http://search.cpan.org/~sburke/Sort-Naturally-1.02/lib/Sort/Naturally.pm options=('norequiredbuilder' 'noautodotnew') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "Sort-Naturally - Sort numeral parts numerically" "his module exports two functions, nsort and ncmp; they are used in" "implementing my idea of a "natural sorting" algorithm. Under natural" "sorting, numeric substrings are compared numerically, and other" "word-characters are compared lexically." ) build() { cd $startdir/src/Sort-Naturally-$pkgver perl Makefile.PL || exit 1 make OPTIMIZE="$CFLAGS" || exit 1 make install DESTDIR=$startdir/pkg || exit 1 # 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 }