wok annotate perltidy/receipt @ rev 17897
Add: perltidy
author | Nathan Neulinger <nneul@neulinger.org> |
---|---|
date | Thu Apr 02 22:07:09 2015 +0000 (2015-04-02) |
parents | |
children | 2fe6eec7c01c |
rev | line source |
---|---|
nneul@17897 | 1 # SliTaz package receipt. |
nneul@17897 | 2 |
nneul@17897 | 3 PACKAGE="perltidy" |
nneul@17897 | 4 VERSION="20140711" |
nneul@17897 | 5 CATEGORY="development" |
nneul@17897 | 6 SHORT_DESC="Perl Code Formatter" |
nneul@17897 | 7 MAINTAINER="nneul@neulinger.org" |
nneul@17897 | 8 LICENSE="GPL" |
nneul@17897 | 9 DEPENDS="perl" |
nneul@17897 | 10 BUILD_DEPENDS="perl" |
nneul@17897 | 11 SOURCE="Perl-Tidy" |
nneul@17897 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
nneul@17897 | 13 WEB_SITE="http://search.cpan.org/dist/Perl-Tidy/" |
nneul@17897 | 14 WGET_URL="http://www.cpan.org/authors/id/S/SH/SHANCOCK/$TARBALL" |
nneul@17897 | 15 |
nneul@17897 | 16 # Rules to configure and make the package. |
nneul@17897 | 17 compile_rules() |
nneul@17897 | 18 { |
nneul@17897 | 19 cd $src |
nneul@17897 | 20 perl Makefile.PL && |
nneul@17897 | 21 make && |
nneul@17897 | 22 make DESTDIR=$DESTDIR install |
nneul@17897 | 23 } |
nneul@17897 | 24 |
nneul@17897 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
nneul@17897 | 26 genpkg_rules() |
nneul@17897 | 27 { |
nneul@17897 | 28 mkdir -p $fs/usr |
nneul@17897 | 29 cp -a $install/usr/lib $fs/usr |
nneul@17897 | 30 # remove perllocal.pod and .packlist |
nneul@17897 | 31 find ${fs} -name perllocal.pod -delete |
nneul@17897 | 32 find ${fs} -name .packlist -delete |
nneul@17897 | 33 } |
nneul@17897 | 34 |