wok annotate squashfs/receipt @ rev 25382

updated unison (2.51.5 -> 2.52.1)
author Hans-G?nter Theisgen
date Sat Jul 30 17:15:58 2022 +0100 (2022-07-30)
parents a3b6dd3aac6f
children 6acd28d149b8
rev   line source
pascal@236 1 # SliTaz package receipt.
pascal@236 2
pascal@236 3 PACKAGE="squashfs"
pascal@24093 4 VERSION="4.5"
pascal@236 5 CATEGORY="base-system"
pascal@909 6 SHORT_DESC="Linux squashfs userland tools."
pascal@236 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15579 8 LICENSE="GPL2"
Hans-G?nter@21952 9 WEB_SITE="https://github.com/plougher/squashfs-tools"
pascal@15579 10
Hans-G?nter@21952 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21952 12 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
Hans-G?nter@21952 13
pascal@24093 14 DEPENDS="liblzma linux-squashfs lz4-lib lzo zlib zstd"
pascal@24093 15 BUILD_DEPENDS="attr-dev liblzma-dev lz4-dev lzo-dev zlib-dev zstd-dev"
pascal@1930 16
pascal@24055 17 current_version()
pascal@24055 18 {
pascal@24299 19 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
pascal@24055 20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
pascal@24055 21 }
pascal@24055 22
pascal@236 23 # Rules to configure and make the package.
pascal@236 24 compile_rules()
pascal@236 25 {
pascal@2991 26 cd $src/squashfs-tools
Hans-G?nter@21952 27
Hans-G?nter@21952 28 sed -i -e 's/~S_IFMT/S_IFMT/' action.c
pascal@24093 29 for i in XZ LZMA_XZ LZO LZ4 ZSTD
Hans-G?nter@21952 30 do
pascal@17945 31 sed -i "s|^#\\(${i}_SUPPORT = 1\\)|\\1|g" Makefile
Hans-G?nter@21952 32 done
Hans-G?nter@21952 33
Hans-G?nter@21952 34 mkdir -p $DESTDIR/usr/sbin
Hans-G?nter@21952 35 mkdir -p $DESTDIR/sbin
Hans-G?nter@21952 36
pascal@1452 37 make || return 1
Hans-G?nter@21952 38
pascal@19592 39 cp -a mksquashfs $DESTDIR/usr/sbin
slaxemulator@8994 40 cp -a unsquashfs $DESTDIR/sbin
pascal@236 41 }
pascal@236 42
pascal@236 43 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@236 44 genpkg_rules()
pascal@236 45 {
pascal@19592 46 mkdir -p $install/usr/share/doc
Hans-G?nter@21952 47
Hans-G?nter@21952 48 cp -a $install/usr $fs
Hans-G?nter@21952 49 cp -a $install/sbin $fs
pascal@24093 50 ln -s mksquashfs $fs/usr/sbin/sqfstar
pascal@24093 51 ln -s unsquashfs $fs/sbin/sqfscat
Hans-G?nter@21952 52 cp $src/README* $install/usr/share/doc
pascal@24093 53 cp $src/A*README* $install/usr/share/doc
pascal@24093 54 cp $src/[CPU]* $install/usr/share/doc
pascal@236 55 }