wok view squashfs/receipt @ rev 4934

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