wok-next diff python-zfec/receipt @ rev 21013
Small updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Oct 14 05:29:23 2018 +0300 (2018-10-14) |
parents | 8b5b2a6d07b8 |
children |
line diff
1.1 --- a/python-zfec/receipt Fri Sep 14 01:56:52 2018 +0300 1.2 +++ b/python-zfec/receipt Sun Oct 14 05:29:23 2018 +0300 1.3 @@ -1,31 +1,31 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 +ORIGIN="zfec" 1.8 PACKAGE="python-zfec" 1.9 -VERSION="1.4.24" 1.10 -CATEGORY="development" 1.11 -SHORT_DESC="A fast erasure codec." 1.12 +VERSION="1.5.3" 1.13 +CATEGORY="python" 1.14 +SHORT_DESC="An efficient, portable erasure coding tool" 1.15 MAINTAINER="pascal.bellard@slitaz.org" 1.16 LICENSE="GPL2" 1.17 -WEB_SITE="https://pypi.org/project/zfec/" 1.18 +WEB_SITE="https://pypi.org/project/$ORIGIN/" 1.19 +#HOST_ARCH 1.20 REPOLOGY="python:zfec" 1.21 1.22 -SOURCE="zfec" 1.23 -TARBALL="$SOURCE-$VERSION.tar.gz" 1.24 -WGET_URL="https://files.pythonhosted.org/packages/source/z/zfec/$TARBALL" 1.25 +BUILD_DEPENDS="python-dev python-argparse python-pyutil \ 1.26 +python3-dev python3-pyutil" 1.27 +SPLIT="${PACKAGE/python/python3}:3" 1.28 1.29 -DEPENDS="python" 1.30 -BUILD_DEPENDS="wget python-dev" 1.31 +compile_rules() { 1.32 + fix utf-8; export LC_ALL=en_US.UTF-8 1.33 1.34 -# Rules to configure and make the package. 1.35 -compile_rules() 1.36 -{ 1.37 - python setup.py install --prefix=/usr --root=$DESTDIR 1.38 + pip$SET install --no-compile --root=$install $ORIGIN==$VERSION 1.39 } 1.40 1.41 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.42 -genpkg_rules() 1.43 -{ 1.44 - mkdir -p $fs/usr 1.45 - cp -a $install/usr/bin $fs/usr/ 1.46 - cp -a $install/usr/lib $fs/usr/ 1.47 +genpkg_rules() { 1.48 + copy @std 1.49 + py="${PACKAGE%%-*}" # python/python3 1.50 + case $PACKAGE in 1.51 + python-*) DEPENDS="$py $py-argparse $py-pyutil";; 1.52 + python3-*) DEPENDS="$py $py-pyutil";; 1.53 + esac 1.54 }