wok-current view squashfs/receipt @ rev 24894

Update some web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 08 10:34:41 2022 +0000 (2022-04-08)
parents a3b6dd3aac6f
children
line source
1 # SliTaz package receipt.
3 PACKAGE="squashfs"
4 VERSION="4.5"
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 zstd"
15 BUILD_DEPENDS="attr-dev liblzma-dev lz4-dev lzo-dev zlib-dev zstd-dev"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src/squashfs-tools
28 sed -i -e 's/~S_IFMT/S_IFMT/' action.c
29 for i in XZ LZMA_XZ LZO LZ4 ZSTD
30 do
31 sed -i "s|^#\\(${i}_SUPPORT = 1\\)|\\1|g" Makefile
32 done
34 mkdir -p $DESTDIR/usr/sbin
35 mkdir -p $DESTDIR/sbin
37 make || return 1
39 cp -a mksquashfs $DESTDIR/usr/sbin
40 cp -a unsquashfs $DESTDIR/sbin
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $install/usr/share/doc
48 cp -a $install/usr $fs
49 cp -a $install/sbin $fs
50 ln -s mksquashfs $fs/usr/sbin/sqfstar
51 ln -s unsquashfs $fs/sbin/sqfscat
52 cp $src/README* $install/usr/share/doc
53 cp $src/A*README* $install/usr/share/doc
54 cp $src/[CPU]* $install/usr/share/doc
55 }