wok-next diff unzip/receipt @ rev 20732

Some python-* packaged using pip: actualize $VERSION in genpkg_rules()
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue May 29 17:01:41 2018 +0300 (2018-05-29)
parents 762b649a4d73
children f48456621a9d
line diff
     1.1 --- a/unzip/receipt	Wed Mar 23 11:51:37 2016 +0200
     1.2 +++ b/unzip/receipt	Tue May 29 17:01:41 2018 +0300
     1.3 @@ -1,39 +1,26 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="unzip"
     1.8  VERSION="6.0"
     1.9  CATEGORY="system-tools"
    1.10 -SHORT_DESC="Zip dearchiver."
    1.11 +SHORT_DESC="Zip dearchiver"
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13  LICENSE="other"
    1.14 +WEB_SITE="http://www.info-zip.org/"
    1.15 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/unzip.html"
    1.16 +
    1.17  TARBALL="$PACKAGE${VERSION//./}.tar.gz"
    1.18 -WEB_SITE="http://www.info-zip.org/"
    1.19  WGET_URL="$SF_MIRROR/infozip/$TARBALL"
    1.20 -TAGS="archive compression"
    1.21  
    1.22 -# Rules to configure and make the package.
    1.23 -compile_rules()
    1.24 -{
    1.25 -	ln -sf $WOK/$PACKAGE/$PACKAGE${VERSION//./} $WOK/$PACKAGE/$PACKAGE-$VERSION
    1.26 -
    1.27 +compile_rules() {
    1.28  	make -f unix/Makefile generic
    1.29 -	make -f unix/Makefile prefix=$DESTDIR install
    1.30 +	make -f unix/Makefile \
    1.31 +		prefix=$install \
    1.32 +		MANDIR=$install/usr/share/man/man1 \
    1.33 +		install
    1.34  }
    1.35  
    1.36 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.37 -genpkg_rules()
    1.38 -{
    1.39 -	mkdir -p $fs/usr
    1.40 -	cp -a $install/bin $fs/usr/bin
    1.41 +genpkg_rules() {
    1.42 +	copy @std
    1.43 +	TAGS="archive compression"
    1.44  }
    1.45 -
    1.46 -# Remove Busybox symlink before installing
    1.47 -pre_install()
    1.48 -{
    1.49 -	rm -f "$1/usr/bin/unzip"
    1.50 -}
    1.51 -
    1.52 -post_remove()
    1.53 -{
    1.54 -	ln -s /bin/busybox /usr/bin/unzip
    1.55 -}