wok view squashfs/receipt @ rev 5982

nut: fix genpkg
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Aug 13 21:34:30 2010 +0200 (2010-08-13)
parents 7b34aa2dd3aa
children b9a608e916f2
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 $SOURCES_REPOSITORY/lzma465.tar.bz2 ] ||
25 wget $SF_MIRROR/sevenzip/lzma465.tar.bz2 -P $SOURCES_REPOSITORY
26 mkdir -p ../LZMA/lzma465
27 tar xjf $SOURCES_REPOSITORY/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 }