wok-6.x annotate squashfs/receipt @ rev 21552
updated nsd (4.0.1 -> 4.1.27)
author | Hans-G?nter Theisgen |
---|---|
date | Wed May 08 15:12:37 2019 +0100 (2019-05-08) |
parents | 551c5f787dd0 |
children | 4e74b9c6bb62 |
rev | line source |
---|---|
pascal@236 | 1 # SliTaz package receipt. |
pascal@236 | 2 |
pascal@236 | 3 PACKAGE="squashfs" |
pascal@17942 | 4 VERSION="4.3" |
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" |
pascal@236 | 9 WEB_SITE="http://$PACKAGE.sourceforge.net/" |
pascal@2991 | 10 TARBALL="squashfs$VERSION.tar.gz" |
pascal@236 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@15579 | 12 |
pascal@18048 | 13 DEPENDS="zlib liblzma linux-squashfs lzo lz4-lib" |
pascal@17942 | 14 BUILD_DEPENDS="zlib-dev attr-dev liblzma-dev lzo-dev lz4-dev" |
pascal@1930 | 15 |
pascal@236 | 16 # Rules to configure and make the package. |
pascal@236 | 17 compile_rules() |
pascal@236 | 18 { |
pascal@2991 | 19 cd $src/squashfs-tools |
pascal@19592 | 20 sed -i -e 's/int file_size/off_t file_size/' \ |
pascal@19592 | 21 -e 's/source_path.index ++./strdup(&)/' mksquashfs.c |
pascal@19592 | 22 sed -i -e 's/~S_IFMT/S_IFMT/' -e 's/MOVE_ACTION, -2/MOVE_ACTION, 1/' action.c |
pascal@17943 | 23 for i in XZ LZMA_XZ LZO LZ4 ; do |
pascal@17945 | 24 sed -i "s|^#\\(${i}_SUPPORT = 1\\)|\\1|g" Makefile |
pascal@17943 | 25 done |
slaxemulator@8994 | 26 mkdir -p $DESTDIR/usr/sbin $DESTDIR/sbin |
pascal@1452 | 27 make || return 1 |
pascal@19592 | 28 cp -a mksquashfs $DESTDIR/usr/sbin |
slaxemulator@8994 | 29 cp -a unsquashfs $DESTDIR/sbin |
pascal@236 | 30 } |
pascal@236 | 31 |
pascal@236 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@236 | 33 genpkg_rules() |
pascal@236 | 34 { |
pascal@19592 | 35 mkdir -p $install/usr/share/doc |
pascal@15603 | 36 cp -a $install/usr $install/sbin $fs |
pascal@19592 | 37 cp $src/README* $src/[CP]* $src/*example $install/usr/share/doc |
pascal@236 | 38 } |