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