wok-next diff python-chardet/receipt @ rev 20972
Improve Python packages: update, also provide Python3 packages where available
| author | Aleksej Bobylev <al.bobylev@gmail.com> |
|---|---|
| date | Sat Sep 22 16:05:26 2018 +0300 (2018-09-22) |
| parents | 8b5b2a6d07b8 |
| children | d457c4e37c1b |
line diff
1.1 --- a/python-chardet/receipt Fri Sep 14 01:56:52 2018 +0300 1.2 +++ b/python-chardet/receipt Sat Sep 22 16:05:26 2018 +0300 1.3 @@ -1,22 +1,25 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 +ORIGIN="chardet" 1.8 PACKAGE="python-chardet" 1.9 -VERSION="latest" 1.10 +VERSION="3.0.4" 1.11 CATEGORY="development" 1.12 SHORT_DESC="Python module for character encoding auto-detection" 1.13 MAINTAINER="devel@slitaz.org" 1.14 LICENSE="LGPL2.1" 1.15 -WEB_SITE="https://pypi.org/project/chardet/" 1.16 +WEB_SITE="https://pypi.python.org/pypi/chardet" 1.17 +HOST_ARCH="any" 1.18 REPOLOGY="python:chardet" 1.19 1.20 -BUILD_DEPENDS="python" 1.21 +BUILD_DEPENDS="python python3" 1.22 +SPLIT="${PACKAGE/python/python3}:3" 1.23 1.24 compile_rules() { 1.25 - pip install --no-compile --root=$DESTDIR chardet 1.26 + pip$SET install --no-compile --root=$install $ORIGIN==$VERSION 1.27 } 1.28 1.29 genpkg_rules() { 1.30 - VERSION=$(sed -n '/^Successfully installed/ s|.*chardet-||p' $LOGS/$PACKAGE.log) 1.31 copy @std 1.32 - DEPENDS="python" 1.33 + py="${PACKAGE%%-*}" # python/python3 1.34 + DEPENDS="$py" 1.35 }