wok-current annotate squashfs/receipt @ rev 4702

squashfs: add lzma support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jan 03 18:38:54 2010 +0100 (2010-01-03)
parents 214c9590a5e5
children f5b04145b323
rev   line source
pascal@236 1 # SliTaz package receipt.
pascal@236 2
pascal@236 3 PACKAGE="squashfs"
pascal@2991 4 VERSION="4.0"
pascal@236 5 CATEGORY="base-system"
pascal@909 6 SHORT_DESC="Linux squashfs userland tools."
pascal@236 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@236 8 WEB_SITE="http://$PACKAGE.sourceforge.net/"
pascal@2991 9 TARBALL="squashfs$VERSION.tar.gz"
pascal@236 10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@2992 11 DEPENDS="zlib linux-squashfs"
pascal@2991 12 BUILD_DEPENDS="zlib-dev"
pascal@1834 13 PROVIDE="cromfs-or-squashfs"
pascal@1930 14
pascal@236 15 # Rules to configure and make the package.
pascal@236 16 compile_rules()
pascal@236 17 {
pascal@2991 18 mv ${PACKAGE}${VERSION} $src 2> /dev/null
pascal@236 19
pascal@2991 20 cd $src/squashfs-tools
pascal@2991 21 mkdir -p ../_pkg/usr/sbin ../_pkg/sbin
pascal@4702 22 if [ ! -d ../LZMA/lzma465 ]; then
pascal@4702 23 SF_MIRROR=http://switch.dl.sourceforge.net/sourceforge
pascal@4702 24 [ -s lzma465.tar.bz2 ] ||
pascal@4702 25 wget $SF_MIRROR/sevenzip/lzma465.tar.bz2
pascal@4702 26 mkdir -p ../LZMA/lzma465
pascal@4702 27 tar xjf lzma465.tar.bz2 -C ../LZMA/lzma465
pascal@4702 28 fi
pascal@4702 29 if [ ! -f lzma_wrapper.c ]; then
pascal@4702 30 patch -p2 -i ../../stuff/lzma.u
pascal@4702 31 fi
pascal@1452 32 make || return 1
pascal@2991 33 cp mksquashfs ../_pkg/usr/sbin
pascal@2991 34 cp unsquashfs ../_pkg/sbin
pascal@236 35 }
pascal@236 36
pascal@236 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@236 38 genpkg_rules()
pascal@236 39 {
pascal@1543 40 cp -a $_pkg/usr $_pkg/sbin $fs
pascal@236 41 }