wok-next annotate fusecloop/receipt @ rev 20766
childsplay: up (3.3); tiny edits.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jun 06 04:36:32 2018 +0300 (2018-06-06) |
parents | 474eb4a6385a |
children | d5aab818505e |
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@20464 | 20 SPLIT="fusecloop 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@20464 | 32 ./configure \ |
al@20464 | 33 --prefix=/usr \ |
al@20464 | 34 --infodir=/usr/share/info \ |
al@20464 | 35 --mandir=/usr/share/man \ |
al@20464 | 36 $CONFIGURE_ARGS && |
pascal@12214 | 37 make && |
al@20464 | 38 |
pascal@12214 | 39 cd $ADVANCECOMP && |
pascal@19557 | 40 ./autogen.sh |
pascal@19557 | 41 automake --add-missing |
al@20464 | 42 ./configure \ |
al@20464 | 43 --prefix=/usr \ |
al@20464 | 44 --infodir=/usr/share/info \ |
al@20464 | 45 --mandir=/usr/share/man \ |
al@20464 | 46 $CONFIGURE_ARGS && |
al@20464 | 47 make advdef || return 1 |
al@20464 | 48 |
al@20464 | 49 mkdir -p $install/usr/bin |
al@20464 | 50 cp $src/fusecloop $install/usr/bin |
al@20464 | 51 cp $src/extract_compressed_fs $install/usr/bin |
al@20464 | 52 cp $src/create_compressed_fs $install/usr/bin/create_compressed_fs_fast |
al@20464 | 53 cp $src/advancecomp-*/advdef $install/usr/bin/create_compressed_fs |
pascal@4911 | 54 } |
pascal@4911 | 55 |
al@20464 | 56 genpkg_rules() { |
al@20464 | 57 case $PACKAGE in |
al@20464 | 58 fusecloop) |
al@20464 | 59 copy fusecloop |
al@20527 | 60 DEPENDS="fuse2 zlib gcc-lib-base" |
al@20464 | 61 SUGGESTED="fuseiso cloop-utils" |
al@20464 | 62 ;; |
al@20464 | 63 cloop-utils) |
al@20464 | 64 copy @std @rm |
al@20464 | 65 CAT="system-tools|image creation & extraction tools" |
al@20464 | 66 DEPENDS="zlib gcc-lib-base" |
al@20464 | 67 ;; |
al@20464 | 68 esac |
pascal@4911 | 69 } |