wok-next view fusecloop/receipt @ rev 21469

updated tinc (1.0.25 -> 1.0.36)
author Hans-G?nter Theisgen
date Wed May 13 07:41:00 2020 +0100 (2020-05-13)
parents d6378d455338
children
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="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
33 ./configure \
34 --prefix=/usr \
35 --infodir=/usr/share/info \
36 --mandir=/usr/share/man \
37 $CONFIGURE_ARGS &&
38 make || return 1
40 cd $ADVANCECOMP
41 ./autogen.sh
42 automake --add-missing
43 ./configure \
44 --prefix=/usr \
45 --infodir=/usr/share/info \
46 --mandir=/usr/share/man \
47 $CONFIGURE_ARGS &&
48 make advdef || return 1
50 mkdir -p $install/usr/bin
51 cp $src/fusecloop $install/usr/bin
52 cp $src/extract_compressed_fs $install/usr/bin
53 cp $src/create_compressed_fs $install/usr/bin/create_compressed_fs_fast
54 cp $src/advancecomp-*/advdef $install/usr/bin/create_compressed_fs
55 }
57 genpkg_rules() {
58 case $PACKAGE in
59 fusecloop)
60 copy fusecloop
61 DEPENDS="fuse2 zlib gcc-lib-base"
62 SUGGESTED="fuseiso cloop-utils"
63 ;;
64 cloop-utils)
65 copy @std @rm
66 CAT="system-tools|image creation & extraction tools"
67 DEPENDS="zlib gcc-lib-base"
68 ;;
69 esac
70 }