# SliTaz package receipt. PACKAGE="squashfs" VERSION="4.5" CATEGORY="base-system" SHORT_DESC="Linux squashfs userland tools." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" WEB_SITE="https://github.com/plougher/squashfs-tools" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz" DEPENDS="liblzma linux-squashfs lz4-lib lzo zlib zstd" BUILD_DEPENDS="attr-dev liblzma-dev lz4-dev lzo-dev zlib-dev zstd-dev" current_version() { wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { cd $src/squashfs-tools sed -i -e 's/~S_IFMT/S_IFMT/' action.c for i in XZ LZMA_XZ LZO LZ4 ZSTD do sed -i "s|^#\\(${i}_SUPPORT = 1\\)|\\1|g" Makefile done mkdir -p $DESTDIR/usr/sbin mkdir -p $DESTDIR/sbin make || return 1 cp -a mksquashfs $DESTDIR/usr/sbin cp -a unsquashfs $DESTDIR/sbin } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $install/usr/share/doc cp -a $install/usr $fs cp -a $install/sbin $fs ln -s mksquashfs $fs/usr/sbin/sqfstar ln -s unsquashfs $fs/sbin/sqfscat cp $src/README* $install/usr/share/doc cp $src/A*README* $install/usr/share/doc cp $src/[CPU]* $install/usr/share/doc }