wok-4.x annotate libparserutils/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 b537813316cf
children 96db5f7822ae
rev   line source
pankso@2824 1 # SliTaz package receipt.
pankso@2824 2
pankso@2824 3 PACKAGE="libparserutils"
pankso@2824 4 VERSION="7369"
pankso@2824 5 CATEGORY="system-tools"
pankso@2824 6 SHORT_DESC="Various pieces of functionality that are useful for parsers."
pankso@2824 7 MAINTAINER="pankso@slitaz.org"
pankso@2824 8 WEB_SITE="http://www.netsurf-browser.org/projects/libparserutils/"
pankso@2824 9 BUILD_DEPENDS="subversion"
pankso@2824 10
pankso@2824 11 # Rules to configure and make the package.
pankso@2824 12 compile_rules()
pankso@2824 13 {
pankso@2824 14 [ -d "$PACKAGE-$VERSION" ] && rm -rf $PACKAGE-$VERSION
pascal@5561 15 TARBALL=$SOURCES_REPOSITORY/$PACKAGE-svn-$VERSION.tar.gz
pascal@5561 16 if [ -f $TARBALL ]; then
pascal@5561 17 tar xzf $TARBALL
pascal@5561 18 else
pascal@5561 19 svn co svn://svn.netsurf-browser.org/trunk/libparserutils \
pascal@5563 20 -r $VERSION $PACKAGE-$VERSION &&
pascal@5561 21 tar czf $TARBALL $PACKAGE-$VERSION
pascal@5561 22 fi
pankso@2824 23 cd $src
pankso@2824 24 make install DESTDIR=$PWD/_pkg PREFIX=/usr &&
pankso@2824 25 make install COMPONENT_TYPE=lib-shared DESTDIR=$PWD/_pkg PREFIX=/usr
pankso@2824 26 }
pankso@2824 27 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@2824 28 genpkg_rules()
pankso@2824 29 {
pankso@2824 30 mkdir -p $fs/usr/lib
pankso@2824 31 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
pankso@2824 32 }