wok view fusecloop/receipt @ rev 14623
merge
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Jun 01 10:16:08 2013 +0000 (2013-06-01) |
parents | 297bc4cc8984 |
children | 4904e3d374a9 |
line source
1 # SliTaz package receipt.
3 PACKAGE="fusecloop"
4 VERSION="0.20.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="Mount cloop image in user space with fuse."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://fusecloop.sourceforge.net/"
10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
11 ADVANCECOMP_VERSION="1.15"
12 ADVANCECOMP_TARBALL="advancecomp-$ADVANCECOMP_VERSION.tar.gz"
13 ADVANCECOMP_URL="$SF_MIRROR/advancemame/$ADVANCECOMP_TARBALL"
14 EXTRA_SOURCE_FILES="$ADVANCECOMP_TARBALL"
15 DEPENDS="fuse zlib gcc-lib-base"
16 BUILD_DEPENDS="fuse-dev zlib-dev"
17 SUGGESTED="fuseiso"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 [ -s $SOURCES_REPOSITORY/$ADVANCECOMP_TARBALL ] ||
24 wget -P $SOURCES_REPOSITORY $ADVANCECOMP_URL
25 tar xzf $SOURCES_REPOSITORY/$ADVANCECOMP_TARBALL
26 sed -i 's/dprintf/d_printf/g' *.h *.c
27 patch -p0 < $stuff/fusecloop.u
28 ADVANCECOMP=advancecomp-$ADVANCECOMP_VERSION
29 cp *.h *.c $ADVANCECOMP
30 cp create_compressed_fs.c $ADVANCECOMP/redef.cc
31 sed -i 's/def FIND_BEST_COMPRESSION/ 1/' $ADVANCECOMP/redef.cc
32 ./configure --prefix=/usr --infodir=/usr/share/info \
33 --mandir=/usr/share/man $CONFIGURE_ARGS &&
34 make &&
35 cd $ADVANCECOMP &&
36 ./configure --prefix=/usr --infodir=/usr/share/info \
37 --mandir=/usr/share/man $CONFIGURE_ARGS &&
38 make advdef
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/bin
45 cp $src/fusecloop $fs/usr/bin
46 cp $src/extract_compressed_fs $fs/usr/bin
47 cp $src/advancecomp-*/advdef $fs/usr/bin/create_compressed_fs
48 }