wok-6.x view fusecloop/receipt @ rev 23855
Up dropbear (2020.79), nagios (4.4.6)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 16 20:15:47 2020 +0000 (2020-06-16) |
parents | ce15cfce8e9f |
children | 640a2eba2511 |
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="fuse zlib liblzma lz4-lib lzo zstd gcc-lib-base"
18 BUILD_DEPENDS="fuse-dev zlib-dev xz-dev liblzma lz4-dev lzo-dev zstd-dev automake"
19 SUGGESTED="fuseiso cloop-utils"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
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/Z_BEST_COMPRESSION/Z_BEST_SPEED/' create_compressed_fs.c
33 sed -i 's/def FIND_BEST_COMPRESSION/ 1/' $ADVANCECOMP/redef.cc
34 sed -i 's|\( -lz\)\(.*\)$|\2\1 -llzma -llz4 -llzo2 -lzstd|' Makefile
35 sed -i 's|\( \$.FUSELDFLAGS.\)\(.*\)$|\2\1|' Makefile
36 ./configure --prefix=/usr --infodir=/usr/share/info \
37 --mandir=/usr/share/man $CONFIGURE_ARGS &&
38 make &&
39 cd $ADVANCECOMP &&
40 ./autogen.sh
41 automake --add-missing
42 ./configure LIBS="-llzma -llz4" \
43 --prefix=/usr --infodir=/usr/share/info \
44 --mandir=/usr/share/man $CONFIGURE_ARGS &&
45 make advdef
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr/bin
52 cp $src/fusecloop $fs/usr/bin
53 }