#Packager: Frédéric Galusik pkgname=perl-tk pkgver=804.030 pkgrel=1fg #arch=noarch source=(http://search.cpan.org/CPAN/authors/id/S/SR/SREZIC/Tk-$pkgver.tar.gz) sourcetemplate=http://people.salixos.org/fredg/packages/$pkgname/$pkgver/ docs=("readme" "install" "copying" "Changes" "manifest" "ToDo") url=http://search.cpan.org/dist/Tk/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "perl-tk (perl Tk module)" "A graphical user interface toolkit for Perl" ) build() { cd $startdir/src/Tk-$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 }