wok-current view squashfs/receipt @ rev 23684

updated svgcleaner (0.7.1 -> 0.9.5)
author Hans-G?nter Theisgen
date Sun Apr 26 17:15:20 2020 +0100 (2020-04-26)
parents 452c85a713bf
children 5ea0ce1cecc0
line source
1 # SliTaz package receipt.
3 PACKAGE="squashfs"
4 VERSION="4.4"
5 CATEGORY="base-system"
6 SHORT_DESC="Linux squashfs userland tools."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/plougher/squashfs-tools"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
14 DEPENDS="liblzma linux-squashfs lz4-lib lzo zlib"
15 BUILD_DEPENDS="attr-dev liblzma-dev lz4-dev lzo-dev zlib-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src/squashfs-tools
21 # 4.3
22 # sed -i -e 's/int file_size/off_t file_size/' \
23 # -e 's/source_path.index ++./strdup(&)/' mksquashfs.c
24 # sed -i -e 's/~S_IFMT/S_IFMT/' -e 's/MOVE_ACTION, -2/MOVE_ACTION, 1/' action.c
26 sed -i -e 's/~S_IFMT/S_IFMT/' action.c
27 for i in XZ LZMA_XZ LZO LZ4
28 do
29 sed -i "s|^#\\(${i}_SUPPORT = 1\\)|\\1|g" Makefile
30 done
32 mkdir -p $DESTDIR/usr/sbin
33 mkdir -p $DESTDIR/sbin
35 make || return 1
37 cp -a mksquashfs $DESTDIR/usr/sbin
38 cp -a unsquashfs $DESTDIR/sbin
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $install/usr/share/doc
46 cp -a $install/usr $fs
47 cp -a $install/sbin $fs
48 cp $src/README* $install/usr/share/doc
49 cp $src/[CP]* $install/usr/share/doc
50 # cp $src/*example $install/usr/share/doc # 4.3
51 }