#Packager: Name #Former Packager(s): Name #Anything commented out is optional and can be deleted. # _cpanname is the module name as provided in CPAN. # For example: Archive-Zip # The corresponding package will be named: perl-Archive-Zip _cpanname= pkgname=perl-${_cpanname} pkgver= pkgrel= #arch=noarch source=() #sourcetemplate=http://people.salixos.org/yournick/$pkgname/$pkgver/ #docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") #url= #dotnew=() #CFLAGS= #CXXFLAGS= #options=('noextract') #doinst() { # #} slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "" ) build() { cd $startdir/src/${_cpanname}-$pkgver perl Makefile.PL || exit 1 make OPTIMIZE="$CFLAGS" || exit 1 make install INSTALLDIRS=vendor 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 }