wok annotate fusecloop/receipt @ rev 24648
updated hplip (3.21.8 -> 3.22.2)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Mar 10 14:02:17 2022 +0100 (2022-03-10) |
parents | 09045e83f959 |
children | b1356f30c0b8 |
rev | line source |
---|---|
pascal@4911 | 1 # SliTaz package receipt. |
pascal@4911 | 2 |
pascal@4911 | 3 PACKAGE="fusecloop" |
pascal@10932 | 4 VERSION="0.20.1" |
pascal@4911 | 5 CATEGORY="system-tools" |
pascal@4911 | 6 SHORT_DESC="Mount cloop image in user space with fuse." |
pascal@4911 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14714 | 8 LICENSE="GPL2" |
pascal@10932 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@10934 | 10 WEB_SITE="http://fusecloop.sourceforge.net/" |
pascal@4911 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@19557 | 12 ADVANCECOMP_VERSION="1.23" |
pascal@12214 | 13 ADVANCECOMP_TARBALL="advancecomp-$ADVANCECOMP_VERSION.tar.gz" |
pascal@12214 | 14 ADVANCECOMP_URL="$SF_MIRROR/advancemame/$ADVANCECOMP_TARBALL" |
pascal@14337 | 15 EXTRA_SOURCE_FILES="$ADVANCECOMP_TARBALL" |
pascal@16999 | 16 |
pascal@23679 | 17 DEPENDS="fuse zlib liblzma lz4-lib lzo zstd gcc-lib-base" |
pascal@23679 | 18 BUILD_DEPENDS="fuse-dev zlib-dev xz-dev liblzma lz4-dev lzo-dev zstd-dev automake" |
pascal@16999 | 19 SUGGESTED="fuseiso cloop-utils" |
pascal@4911 | 20 |
pascal@24385 | 21 # What is the latest version available today? |
pascal@24385 | 22 current_version() |
pascal@24385 | 23 { |
pascal@24385 | 24 wget -O - https://sourceforge.net/projects/fusecloop/files/ 2>/dev/null | \ |
pascal@24385 | 25 sed '/scope="row/!d;/fusecloop-/!d;s|.*/fusecloop-||;s|.tar.*||;q' |
pascal@24385 | 26 } |
pascal@24385 | 27 |
pascal@4911 | 28 # Rules to configure and make the package. |
pascal@4911 | 29 compile_rules() |
pascal@4911 | 30 { |
pascal@12214 | 31 [ -s $SOURCES_REPOSITORY/$ADVANCECOMP_TARBALL ] || |
pascal@12214 | 32 wget -P $SOURCES_REPOSITORY $ADVANCECOMP_URL |
pascal@12214 | 33 tar xzf $SOURCES_REPOSITORY/$ADVANCECOMP_TARBALL |
pascal@4911 | 34 sed -i 's/dprintf/d_printf/g' *.h *.c |
pascal@10934 | 35 patch -p0 < $stuff/fusecloop.u |
pascal@12214 | 36 ADVANCECOMP=advancecomp-$ADVANCECOMP_VERSION |
pascal@12214 | 37 cp *.h *.c $ADVANCECOMP |
pascal@12214 | 38 cp create_compressed_fs.c $ADVANCECOMP/redef.cc |
pascal@17170 | 39 sed -i 's/Z_BEST_COMPRESSION/Z_BEST_SPEED/' create_compressed_fs.c |
pascal@12214 | 40 sed -i 's/def FIND_BEST_COMPRESSION/ 1/' $ADVANCECOMP/redef.cc |
pascal@23679 | 41 sed -i 's|\( -lz\)\(.*\)$|\2\1 -llzma -llz4 -llzo2 -lzstd|' Makefile |
pascal@23425 | 42 sed -i 's|\( \$.FUSELDFLAGS.\)\(.*\)$|\2\1|' Makefile |
pascal@4911 | 43 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@4911 | 44 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@12214 | 45 make && |
pascal@12214 | 46 cd $ADVANCECOMP && |
pascal@19557 | 47 ./autogen.sh |
pascal@19557 | 48 automake --add-missing |
pascal@23679 | 49 ./configure LIBS="-llzma -llz4" \ |
pascal@23679 | 50 --prefix=/usr --infodir=/usr/share/info \ |
pascal@23679 | 51 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@12214 | 52 make advdef |
pascal@4911 | 53 } |
pascal@4911 | 54 |
pascal@4911 | 55 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4911 | 56 genpkg_rules() |
pascal@4911 | 57 { |
pascal@4911 | 58 mkdir -p $fs/usr/bin |
pascal@4911 | 59 cp $src/fusecloop $fs/usr/bin |
pascal@4911 | 60 } |
pascal@4911 | 61 |