wok view squashfs/receipt @ rev 25801
created recipe for xfce4-calculator-plugin
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 02 14:21:07 2024 +0100 (2 weeks ago) |
parents | ac8ca9758df1 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="squashfs"
4 VERSION="4.6.1"
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 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src/squashfs-tools
29 sed -i -e 's/~S_IFMT/S_IFMT/' action.c
30 for i in XZ LZMA_XZ LZO LZ4 ZSTD
31 do
32 sed -i "s|^#\\(${i}_SUPPORT = 1\\)|\\1|g" Makefile
33 done
35 mkdir -p $DESTDIR/usr/sbin
36 mkdir -p $DESTDIR/sbin
38 make || return 1
40 cp -a mksquashfs $DESTDIR/usr/sbin
41 cp -a unsquashfs $DESTDIR/sbin
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $install/usr/share/doc
49 cp -a $install/usr $fs
50 cp -a $install/sbin $fs
51 ln -s mksquashfs $fs/usr/sbin/sqfstar
52 ln -s unsquashfs $fs/sbin/sqfscat
53 cp $src/README* $install/usr/share/doc
54 cp $src/A*README* $install/usr/share/doc
55 cp $src/[CPU]* $install/usr/share/doc
56 }