wok-current view squashfs/receipt @ rev 21537

updated neon and neon-dev (0.29.3 -> 0.30.2)
author Hans-G?nter Theisgen
date Sun May 05 14:32:35 2019 +0100 (2019-05-05)
parents 551c5f787dd0
children 4e74b9c6bb62
line source
1 # SliTaz package receipt.
3 PACKAGE="squashfs"
4 VERSION="4.3"
5 CATEGORY="base-system"
6 SHORT_DESC="Linux squashfs userland tools."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://$PACKAGE.sourceforge.net/"
10 TARBALL="squashfs$VERSION.tar.gz"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 DEPENDS="zlib liblzma linux-squashfs lzo lz4-lib"
14 BUILD_DEPENDS="zlib-dev attr-dev liblzma-dev lzo-dev lz4-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src/squashfs-tools
20 sed -i -e 's/int file_size/off_t file_size/' \
21 -e 's/source_path.index ++./strdup(&)/' mksquashfs.c
22 sed -i -e 's/~S_IFMT/S_IFMT/' -e 's/MOVE_ACTION, -2/MOVE_ACTION, 1/' action.c
23 for i in XZ LZMA_XZ LZO LZ4 ; do
24 sed -i "s|^#\\(${i}_SUPPORT = 1\\)|\\1|g" Makefile
25 done
26 mkdir -p $DESTDIR/usr/sbin $DESTDIR/sbin
27 make || return 1
28 cp -a mksquashfs $DESTDIR/usr/sbin
29 cp -a unsquashfs $DESTDIR/sbin
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $install/usr/share/doc
36 cp -a $install/usr $install/sbin $fs
37 cp $src/README* $src/[CP]* $src/*example $install/usr/share/doc
38 }