wok annotate squashfs/receipt @ rev 24059
Rename lz5 to lizard
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 09 15:03:00 2021 +0000 (2021-06-09) |
parents | 4e74b9c6bb62 |
children | a3b6dd3aac6f |
rev | line source |
---|---|
pascal@236 | 1 # SliTaz package receipt. |
pascal@236 | 2 |
pascal@236 | 3 PACKAGE="squashfs" |
Hans-G?nter@21952 | 4 VERSION="4.4" |
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 |
Hans-G?nter@21952 | 14 DEPENDS="liblzma linux-squashfs lz4-lib lzo zlib" |
Hans-G?nter@21952 | 15 BUILD_DEPENDS="attr-dev liblzma-dev lz4-dev lzo-dev zlib-dev" |
pascal@1930 | 16 |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24055 | 19 wget -O - ${WGET_URL%/arch*}/releases 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 # 4.3 |
Hans-G?nter@21952 | 28 # sed -i -e 's/int file_size/off_t file_size/' \ |
Hans-G?nter@21952 | 29 # -e 's/source_path.index ++./strdup(&)/' mksquashfs.c |
Hans-G?nter@21952 | 30 # sed -i -e 's/~S_IFMT/S_IFMT/' -e 's/MOVE_ACTION, -2/MOVE_ACTION, 1/' action.c |
Hans-G?nter@21952 | 31 |
Hans-G?nter@21952 | 32 sed -i -e 's/~S_IFMT/S_IFMT/' action.c |
Hans-G?nter@21952 | 33 for i in XZ LZMA_XZ LZO LZ4 |
Hans-G?nter@21952 | 34 do |
pascal@17945 | 35 sed -i "s|^#\\(${i}_SUPPORT = 1\\)|\\1|g" Makefile |
Hans-G?nter@21952 | 36 done |
Hans-G?nter@21952 | 37 |
Hans-G?nter@21952 | 38 mkdir -p $DESTDIR/usr/sbin |
Hans-G?nter@21952 | 39 mkdir -p $DESTDIR/sbin |
Hans-G?nter@21952 | 40 |
pascal@1452 | 41 make || return 1 |
Hans-G?nter@21952 | 42 |
pascal@19592 | 43 cp -a mksquashfs $DESTDIR/usr/sbin |
slaxemulator@8994 | 44 cp -a unsquashfs $DESTDIR/sbin |
pascal@236 | 45 } |
pascal@236 | 46 |
pascal@236 | 47 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@236 | 48 genpkg_rules() |
pascal@236 | 49 { |
pascal@19592 | 50 mkdir -p $install/usr/share/doc |
Hans-G?nter@21952 | 51 |
Hans-G?nter@21952 | 52 cp -a $install/usr $fs |
Hans-G?nter@21952 | 53 cp -a $install/sbin $fs |
Hans-G?nter@21952 | 54 cp $src/README* $install/usr/share/doc |
Hans-G?nter@21952 | 55 cp $src/[CP]* $install/usr/share/doc |
Hans-G?nter@21952 | 56 # cp $src/*example $install/usr/share/doc # 4.3 |
pascal@236 | 57 } |