wok-next diff p7zip/receipt @ rev 20443

The rest of my "home work" for update many packages (up to Xorg, GTK and Openbox) for Next and mainly for Next64. Since this point this repository is open for commits. Many errors are expected due to harfbuzz-freetype dependency loop...
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Feb 24 16:17:33 2018 +0200 (2018-02-24)
parents 0be966ba5e90
children 6c73b944e8dd
line diff
     1.1 --- a/p7zip/receipt	Sat Jul 30 10:07:40 2016 +0200
     1.2 +++ b/p7zip/receipt	Sat Feb 24 16:17:33 2018 +0200
     1.3 @@ -1,24 +1,56 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="p7zip"
     1.8  VERSION="16.02"
     1.9  CATEGORY="utilities"
    1.10 -SHORT_DESC="A file archiver with a high compression ratio (supports only 7z archives)"
    1.11 +SHORT_DESC="File archiver with high compression ratio"
    1.12  MAINTAINER="milka@konstelacioj.info"
    1.13  LICENSE="LGPL2.1"
    1.14 +#WEB_SITE="http://p7zip.sourceforge.net/"
    1.15 +WEB_SITE="https://sourceforge.net/projects/sevenzip/"
    1.16 +
    1.17  TARBALL="${PACKAGE}_${VERSION}_src_all.tar.bz2"
    1.18 -WEB_SITE="http://p7zip.sourceforge.net/"
    1.19  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.20  
    1.21 -# Rules to configure and make the package.
    1.22 -compile_rules()
    1.23 -{
    1.24 -	make 7zr
    1.25 +BUILD_DEPENDS="yasm"
    1.26 +SPLIT="p7zip p7zip-full"
    1.27 +
    1.28 +compile_rules() {
    1.29 +	case $ARCH in
    1.30 +		arm)    cp makefile.linux_cross_arm       makefile.machine;;
    1.31 +		i?86)   cp makefile.linux_x86_asm_gcc_4.X makefile.machine;;
    1.32 +		x86_64) cp makefile.linux_amd64_asm       makefile.machine;;
    1.33 +	esac
    1.34 +	sed -i 's|HOME)/man|HOME)/share/man|' makefile.common
    1.35 +
    1.36 +	make all3 OPTFLAGS="$CFLAGS" &&
    1.37 +	make install \
    1.38 +		DEST_DIR="$install" \
    1.39 +		DEST_HOME=/usr \
    1.40 +		DEST_SHARE_DOC=/usr/share/doc/p7zip-$VERSION \
    1.41 +		DEST_MAN=/usr/share/man || return 1
    1.42 +
    1.43 +#	# Remove documentation for the GUI file manager
    1.44 +#	rm -r "$install/usr/share/doc/p7zip/DOC/MANUAL/fm"
    1.45 +
    1.46 +#	install -d $install/usr/share/licenses/p7zip
    1.47 +#	ln -s -t   $install/usr/share/licenses/p7zip/ \
    1.48 +#		/usr/share/doc/p7zip/DOC/License.txt \
    1.49 +#		/usr/share/doc/p7zip/DOC/unRarLicense.txt
    1.50 +
    1.51  }
    1.52  
    1.53 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.54 -genpkg_rules()
    1.55 -{
    1.56 -	mkdir -p $fs/usr
    1.57 -	cp -a $src/bin $fs/usr
    1.58 +genpkg_rules() {
    1.59 +	case $PACKAGE in
    1.60 +		p7zip)
    1.61 +			copy 7zr
    1.62 +			CAT="utilities|supports only 7z archives"
    1.63 +			DEPENDS="gcc-lib-base glibc-base"
    1.64 +			;;
    1.65 +		p7zip-full)
    1.66 +			copy @std @rm
    1.67 +			CAT="utilities|full version with restricted codecs"
    1.68 +			DEPENDS="p7zip"
    1.69 +			;;
    1.70 +	esac
    1.71  }