wok-next view fusecloop/receipt @ rev 20532
moc, mypaint: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 26 13:35:23 2018 +0200 (2018-03-26) |
parents | d43bf7aae921 |
children | d6378d455338 |
line source
1 # SliTaz package receipt v2.
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 WEB_SITE="http://fusecloop.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 ADVANCECOMP_VERSION="1.23"
15 ADVANCECOMP_TARBALL="advancecomp-$ADVANCECOMP_VERSION.tar.gz"
16 ADVANCECOMP_URL="$SF_MIRROR/advancemame/$ADVANCECOMP_TARBALL"
17 EXTRA_SOURCE_FILES="$ADVANCECOMP_TARBALL"
19 BUILD_DEPENDS="fuse2-dev zlib-dev automake"
20 SPLIT="fusecloop cloop-utils"
22 compile_rules() {
23 [ -s $SRC/$ADVANCECOMP_TARBALL ] ||
24 wget -P $SRC $ADVANCECOMP_URL
25 tar xzf $SRC/$ADVANCECOMP_TARBALL
26 sed -i 's/dprintf/d_printf/g' *.h *.c
27 patch -p0 < $stuff/fusecloop.u
28 ADVANCECOMP=advancecomp-$ADVANCECOMP_VERSION
29 cp *.h *.c $ADVANCECOMP
30 cp create_compressed_fs.c $ADVANCECOMP/redef.cc
31 sed -i 's/Z_BEST_COMPRESSION/Z_BEST_SPEED/' create_compressed_fs.c
32 sed -i 's/def FIND_BEST_COMPRESSION/ 1/' $ADVANCECOMP/redef.cc
33 ./configure \
34 --prefix=/usr \
35 --infodir=/usr/share/info \
36 --mandir=/usr/share/man \
37 $CONFIGURE_ARGS &&
38 make &&
40 cd $ADVANCECOMP &&
41 ./autogen.sh
42 automake --add-missing
43 ./configure \
44 --prefix=/usr \
45 --infodir=/usr/share/info \
46 --mandir=/usr/share/man \
47 $CONFIGURE_ARGS &&
48 make advdef || return 1
50 mkdir -p $install/usr/bin
51 cp $src/fusecloop $install/usr/bin
52 cp $src/extract_compressed_fs $install/usr/bin
53 cp $src/create_compressed_fs $install/usr/bin/create_compressed_fs_fast
54 cp $src/advancecomp-*/advdef $install/usr/bin/create_compressed_fs
55 }
57 genpkg_rules() {
58 case $PACKAGE in
59 fusecloop)
60 copy fusecloop
61 DEPENDS="fuse2 zlib gcc-lib-base"
62 SUGGESTED="fuseiso cloop-utils"
63 ;;
64 cloop-utils)
65 copy @std @rm
66 CAT="system-tools|image creation & extraction tools"
67 DEPENDS="zlib gcc-lib-base"
68 ;;
69 esac
70 }