# HG changeset patch # User Nathan Neulinger # Date 1428012429 0 # Node ID 74d144f735b5a8605b75335b4d93cfcae7eff216 # Parent 118b9f6789feb5b0624788f4ab5a4aca1c471b31 Add: perltidy diff -r 118b9f6789fe -r 74d144f735b5 perltidy/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/perltidy/receipt Thu Apr 02 22:07:09 2015 +0000 @@ -0,0 +1,34 @@ +# SliTaz package receipt. + +PACKAGE="perltidy" +VERSION="20140711" +CATEGORY="development" +SHORT_DESC="Perl Code Formatter" +MAINTAINER="nneul@neulinger.org" +LICENSE="GPL" +DEPENDS="perl" +BUILD_DEPENDS="perl" +SOURCE="Perl-Tidy" +TARBALL="$SOURCE-$VERSION.tar.gz" +WEB_SITE="http://search.cpan.org/dist/Perl-Tidy/" +WGET_URL="http://www.cpan.org/authors/id/S/SH/SHANCOCK/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + perl Makefile.PL && + make && + make DESTDIR=$DESTDIR install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr + cp -a $install/usr/lib $fs/usr + # remove perllocal.pod and .packlist + find ${fs} -name perllocal.pod -delete + find ${fs} -name .packlist -delete +} +