wok view fusecloop/receipt @ rev 24765

afpfs-ng,btfs,curlftpfs,ddumbfs,djmount,encfs,exfat-utils,fusecloop,fusedav,fuseiso,httpfs2-fuse: try fuse2
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 18 17:45:47 2022 +0000 (6 months ago)
parents 640a2eba2511
children 7dd01dedad38
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.23"
13 ADVANCECOMP_TARBALL="advancecomp-$ADVANCECOMP_VERSION.tar.gz"
14 ADVANCECOMP_URL="$SF_MIRROR/advancemame/$ADVANCECOMP_TARBALL"
15 EXTRA_SOURCE_FILES="$ADVANCECOMP_TARBALL"
17 DEPENDS="fuse2 zlib liblzma lz4-lib lzo zstd gcc-lib-base"
18 BUILD_DEPENDS="fuse2-dev zlib-dev xz-dev liblzma lz4-dev lzo-dev zstd-dev automake"
19 SUGGESTED="fuseiso cloop-utils"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - https://sourceforge.net/projects/fusecloop/files/ 2>/dev/null | \
25 sed '/scope="row/!d;/fusecloop-/!d;s|.*/fusecloop-||;s|.tar.*||;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 [ -s $SOURCES_REPOSITORY/$ADVANCECOMP_TARBALL ] ||
32 wget -P $SOURCES_REPOSITORY $ADVANCECOMP_URL
33 tar xzf $SOURCES_REPOSITORY/$ADVANCECOMP_TARBALL
34 sed -i 's/dprintf/d_printf/g' *.h *.c
35 patch -p0 < $stuff/fusecloop.u
36 ADVANCECOMP=advancecomp-$ADVANCECOMP_VERSION
37 cp *.h *.c $ADVANCECOMP
38 cp create_compressed_fs.c $ADVANCECOMP/redef.cc
39 sed -i 's/Z_BEST_COMPRESSION/Z_BEST_SPEED/' create_compressed_fs.c
40 sed -i 's/def FIND_BEST_COMPRESSION/ 1/' $ADVANCECOMP/redef.cc
41 sed -i 's|\( -lz\)\(.*\)$|\2\1 -llzma -llz4 -llzo2 -lzstd|' Makefile
42 sed -i 's|\( \$.FUSELDFLAGS.\)\(.*\)$|\2\1|' Makefile
43 ./configure --prefix=/usr --infodir=/usr/share/info \
44 --mandir=/usr/share/man $CONFIGURE_ARGS &&
45 make &&
46 cd $ADVANCECOMP &&
47 ./autogen.sh
48 automake --add-missing
49 ./configure LIBS="-llzma -llz4" \
50 --prefix=/usr --infodir=/usr/share/info \
51 --mandir=/usr/share/man $CONFIGURE_ARGS &&
52 make advdef
53 }
55 # Rules to gen a SliTaz package suitable for Tazpkg.
56 genpkg_rules()
57 {
58 mkdir -p $fs/usr/bin
59 cp $src/fusecloop $fs/usr/bin
60 }