wok-6.x annotate perl-html-parser/receipt @ rev 6914
Added xz to busybox. Doesn't change size of busybox. This is show we can use tar.xz compress for tazpkg files if we want to. Added pre_install and post_remove functions to xz receipt.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Oct 21 23:49:16 2010 +0000 (2010-10-21) |
parents | |
children | 9c2f7943a358 |
rev | line source |
---|---|
pascal@2241 | 1 # SliTaz package receipt. |
pascal@2241 | 2 |
pascal@2241 | 3 PACKAGE="perl-html-parser" |
pascal@2241 | 4 VERSION="3.60" |
pascal@2241 | 5 CATEGORY="development" |
pascal@2241 | 6 SHORT_DESC="HTML::Parser module is a Perl extension." |
pascal@2241 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@2241 | 8 DEPENDS="perl perl-html-tagset" |
pascal@2241 | 9 BUILD_DEPENDS="perl perl-html-tagset" |
pascal@2241 | 10 SOURCE="HTML-Parser" |
pascal@2241 | 11 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@2241 | 12 WEB_SITE="http://www.cpan.org/modules/" |
pascal@2241 | 13 WGET_URL="http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/$TARBALL" |
pascal@2241 | 14 |
pascal@2241 | 15 # Rules to configure and make the package. |
pascal@2241 | 16 compile_rules() |
pascal@2241 | 17 { |
pascal@2241 | 18 mv $SOURCE $src 2> /dev/null |
pascal@2241 | 19 cd $src |
pascal@2241 | 20 perl Makefile.PL && |
pascal@2241 | 21 make && |
pascal@2241 | 22 make DESTDIR=$PWD/_pkg install |
pascal@2241 | 23 } |
pascal@2241 | 24 |
pascal@2241 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2241 | 26 genpkg_rules() |
pascal@2241 | 27 { |
pascal@2241 | 28 mkdir -p $fs/usr |
pascal@2241 | 29 cp -a $_pkg/usr/lib $fs/usr |
pascal@2241 | 30 } |
pascal@2241 | 31 |