wok-current annotate squashfs/receipt @ rev 22044
updated tmux (2.0 -> 2.9)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Oct 22 13:52:50 2019 +0100 (2019-10-22) |
parents | 452c85a713bf |
children | 5ea0ce1cecc0 |
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@236 | 17 # Rules to configure and make the package. |
pascal@236 | 18 compile_rules() |
pascal@236 | 19 { |
pascal@2991 | 20 cd $src/squashfs-tools |
Hans-G?nter@21952 | 21 # 4.3 |
Hans-G?nter@21952 | 22 # sed -i -e 's/int file_size/off_t file_size/' \ |
Hans-G?nter@21952 | 23 # -e 's/source_path.index ++./strdup(&)/' mksquashfs.c |
Hans-G?nter@21952 | 24 # sed -i -e 's/~S_IFMT/S_IFMT/' -e 's/MOVE_ACTION, -2/MOVE_ACTION, 1/' action.c |
Hans-G?nter@21952 | 25 |
Hans-G?nter@21952 | 26 sed -i -e 's/~S_IFMT/S_IFMT/' action.c |
Hans-G?nter@21952 | 27 for i in XZ LZMA_XZ LZO LZ4 |
Hans-G?nter@21952 | 28 do |
pascal@17945 | 29 sed -i "s|^#\\(${i}_SUPPORT = 1\\)|\\1|g" Makefile |
Hans-G?nter@21952 | 30 done |
Hans-G?nter@21952 | 31 |
Hans-G?nter@21952 | 32 mkdir -p $DESTDIR/usr/sbin |
Hans-G?nter@21952 | 33 mkdir -p $DESTDIR/sbin |
Hans-G?nter@21952 | 34 |
pascal@1452 | 35 make || return 1 |
Hans-G?nter@21952 | 36 |
pascal@19592 | 37 cp -a mksquashfs $DESTDIR/usr/sbin |
slaxemulator@8994 | 38 cp -a unsquashfs $DESTDIR/sbin |
pascal@236 | 39 } |
pascal@236 | 40 |
pascal@236 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@236 | 42 genpkg_rules() |
pascal@236 | 43 { |
pascal@19592 | 44 mkdir -p $install/usr/share/doc |
Hans-G?nter@21952 | 45 |
Hans-G?nter@21952 | 46 cp -a $install/usr $fs |
Hans-G?nter@21952 | 47 cp -a $install/sbin $fs |
Hans-G?nter@21952 | 48 cp $src/README* $install/usr/share/doc |
Hans-G?nter@21952 | 49 cp $src/[CP]* $install/usr/share/doc |
Hans-G?nter@21952 | 50 # cp $src/*example $install/usr/share/doc # 4.3 |
pascal@236 | 51 } |