wok view fusecloop/receipt @ rev 16041
syslinux/iso2exe: fix 'a la umsdos' install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 09 14:09:57 2014 +0000 (2014-03-09) |
parents | b2a632fc9587 |
children | fe86f04738d9 |
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://fusecloop.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 ADVANCECOMP_VERSION="1.15"
13 ADVANCECOMP_TARBALL="advancecomp-$ADVANCECOMP_VERSION.tar.gz"
14 ADVANCECOMP_URL="$SF_MIRROR/advancemame/$ADVANCECOMP_TARBALL"
15 EXTRA_SOURCE_FILES="$ADVANCECOMP_TARBALL"
16 DEPENDS="fuse zlib gcc-lib-base"
17 BUILD_DEPENDS="fuse-dev zlib-dev"
18 SUGGESTED="fuseiso"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src
24 [ -s $SOURCES_REPOSITORY/$ADVANCECOMP_TARBALL ] ||
25 wget -P $SOURCES_REPOSITORY $ADVANCECOMP_URL
26 tar xzf $SOURCES_REPOSITORY/$ADVANCECOMP_TARBALL
27 sed -i 's/dprintf/d_printf/g' *.h *.c
28 patch -p0 < $stuff/fusecloop.u
29 ADVANCECOMP=advancecomp-$ADVANCECOMP_VERSION
30 cp *.h *.c $ADVANCECOMP
31 cp create_compressed_fs.c $ADVANCECOMP/redef.cc
32 sed -i 's/def FIND_BEST_COMPRESSION/ 1/' $ADVANCECOMP/redef.cc
33 ./configure --prefix=/usr --infodir=/usr/share/info \
34 --mandir=/usr/share/man $CONFIGURE_ARGS &&
35 make &&
36 cd $ADVANCECOMP &&
37 ./configure --prefix=/usr --infodir=/usr/share/info \
38 --mandir=/usr/share/man $CONFIGURE_ARGS &&
39 make advdef
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/bin
46 cp $src/fusecloop $fs/usr/bin
47 cp $src/extract_compressed_fs $fs/usr/bin
48 cp $src/advancecomp-*/advdef $fs/usr/bin/create_compressed_fs
49 }