wok-next view fusecloop/receipt @ rev 20661

Unification of the patch system
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu May 10 21:12:00 2018 +0300 (2018-05-10)
parents 474eb4a6385a
children d5aab818505e
line source
1 # SliTaz package receipt v2.
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 WEB_SITE="http://fusecloop.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 ADVANCECOMP_VERSION="1.23"
15 ADVANCECOMP_TARBALL="advancecomp-$ADVANCECOMP_VERSION.tar.gz"
16 ADVANCECOMP_URL="$SF_MIRROR/advancemame/$ADVANCECOMP_TARBALL"
17 EXTRA_SOURCE_FILES="$ADVANCECOMP_TARBALL"
19 BUILD_DEPENDS="fuse2-dev zlib-dev automake"
20 SPLIT="fusecloop cloop-utils"
22 compile_rules() {
23 [ -s $SRC/$ADVANCECOMP_TARBALL ] ||
24 wget -P $SRC $ADVANCECOMP_URL
25 tar xzf $SRC/$ADVANCECOMP_TARBALL
26 sed -i 's/dprintf/d_printf/g' *.h *.c
27 ADVANCECOMP=advancecomp-$ADVANCECOMP_VERSION
28 cp *.h *.c $ADVANCECOMP
29 cp create_compressed_fs.c $ADVANCECOMP/redef.cc
30 sed -i 's/Z_BEST_COMPRESSION/Z_BEST_SPEED/' create_compressed_fs.c
31 sed -i 's/def FIND_BEST_COMPRESSION/ 1/' $ADVANCECOMP/redef.cc
32 ./configure \
33 --prefix=/usr \
34 --infodir=/usr/share/info \
35 --mandir=/usr/share/man \
36 $CONFIGURE_ARGS &&
37 make &&
39 cd $ADVANCECOMP &&
40 ./autogen.sh
41 automake --add-missing
42 ./configure \
43 --prefix=/usr \
44 --infodir=/usr/share/info \
45 --mandir=/usr/share/man \
46 $CONFIGURE_ARGS &&
47 make advdef || return 1
49 mkdir -p $install/usr/bin
50 cp $src/fusecloop $install/usr/bin
51 cp $src/extract_compressed_fs $install/usr/bin
52 cp $src/create_compressed_fs $install/usr/bin/create_compressed_fs_fast
53 cp $src/advancecomp-*/advdef $install/usr/bin/create_compressed_fs
54 }
56 genpkg_rules() {
57 case $PACKAGE in
58 fusecloop)
59 copy fusecloop
60 DEPENDS="fuse2 zlib gcc-lib-base"
61 SUGGESTED="fuseiso cloop-utils"
62 ;;
63 cloop-utils)
64 copy @std @rm
65 CAT="system-tools|image creation & extraction tools"
66 DEPENDS="zlib gcc-lib-base"
67 ;;
68 esac
69 }