wok-next annotate fusecloop/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents d6378d455338
children
rev   line source
al@20464 1 # SliTaz package receipt v2.
pascal@4911 2
pascal@4911 3 PACKAGE="fusecloop"
pascal@10932 4 VERSION="0.20.1"
pascal@4911 5 CATEGORY="system-tools"
al@20464 6 SHORT_DESC="Mount cloop image in user space with FUSE"
pascal@4911 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@14714 8 LICENSE="GPL2"
al@20464 9 WEB_SITE="http://fusecloop.sourceforge.net/"
al@20464 10
pascal@10932 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@4911 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
al@20464 13
pascal@19557 14 ADVANCECOMP_VERSION="1.23"
pascal@12214 15 ADVANCECOMP_TARBALL="advancecomp-$ADVANCECOMP_VERSION.tar.gz"
pascal@12214 16 ADVANCECOMP_URL="$SF_MIRROR/advancemame/$ADVANCECOMP_TARBALL"
pascal@14337 17 EXTRA_SOURCE_FILES="$ADVANCECOMP_TARBALL"
pascal@16999 18
al@20527 19 BUILD_DEPENDS="fuse2-dev zlib-dev automake"
al@21020 20 SPLIT="cloop-utils"
pascal@4911 21
al@20464 22 compile_rules() {
al@20513 23 [ -s $SRC/$ADVANCECOMP_TARBALL ] ||
al@20513 24 wget -P $SRC $ADVANCECOMP_URL
al@20513 25 tar xzf $SRC/$ADVANCECOMP_TARBALL
pascal@4911 26 sed -i 's/dprintf/d_printf/g' *.h *.c
pascal@12214 27 ADVANCECOMP=advancecomp-$ADVANCECOMP_VERSION
pascal@12214 28 cp *.h *.c $ADVANCECOMP
pascal@12214 29 cp create_compressed_fs.c $ADVANCECOMP/redef.cc
pascal@17170 30 sed -i 's/Z_BEST_COMPRESSION/Z_BEST_SPEED/' create_compressed_fs.c
pascal@12214 31 sed -i 's/def FIND_BEST_COMPRESSION/ 1/' $ADVANCECOMP/redef.cc
al@21020 32
al@20464 33 ./configure \
al@20464 34 --prefix=/usr \
al@20464 35 --infodir=/usr/share/info \
al@20464 36 --mandir=/usr/share/man \
al@20464 37 $CONFIGURE_ARGS &&
al@21020 38 make || return 1
al@20464 39
al@21020 40 cd $ADVANCECOMP
pascal@19557 41 ./autogen.sh
pascal@19557 42 automake --add-missing
al@20464 43 ./configure \
al@20464 44 --prefix=/usr \
al@20464 45 --infodir=/usr/share/info \
al@20464 46 --mandir=/usr/share/man \
al@20464 47 $CONFIGURE_ARGS &&
al@20464 48 make advdef || return 1
al@20464 49
al@20464 50 mkdir -p $install/usr/bin
al@20464 51 cp $src/fusecloop $install/usr/bin
al@20464 52 cp $src/extract_compressed_fs $install/usr/bin
al@20464 53 cp $src/create_compressed_fs $install/usr/bin/create_compressed_fs_fast
al@20464 54 cp $src/advancecomp-*/advdef $install/usr/bin/create_compressed_fs
pascal@4911 55 }
pascal@4911 56
al@20464 57 genpkg_rules() {
al@20464 58 case $PACKAGE in
al@20464 59 fusecloop)
al@20464 60 copy fusecloop
al@20527 61 DEPENDS="fuse2 zlib gcc-lib-base"
al@20464 62 SUGGESTED="fuseiso cloop-utils"
al@20464 63 ;;
al@20464 64 cloop-utils)
al@20464 65 copy @std @rm
al@20464 66 CAT="system-tools|image creation & extraction tools"
al@20464 67 DEPENDS="zlib gcc-lib-base"
al@20464 68 ;;
al@20464 69 esac
pascal@4911 70 }