wok-next diff python-imagesize/receipt @ rev 21105
Small updates... "bzip2" and "cairo": follow "libpkg - pkg - pkg-dev" rule
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jan 04 17:29:48 2019 +0200 (2019-01-04) |
parents | 8b5b2a6d07b8 |
children |
line diff
1.1 --- a/python-imagesize/receipt Fri Sep 14 01:56:52 2018 +0300 1.2 +++ b/python-imagesize/receipt Fri Jan 04 17:29:48 2019 +0200 1.3 @@ -1,22 +1,25 @@ 1.4 # SliTaz package receipt v2. 1.5 1.6 +ORIGIN="imagesize" 1.7 PACKAGE="python-imagesize" 1.8 -VERSION="latest" 1.9 +VERSION="1.1.0" 1.10 CATEGORY="python" 1.11 SHORT_DESC="Getting image size from png/jpeg/jpeg2000/gif file" 1.12 MAINTAINER="al.bobylev@gmail.com" 1.13 LICENSE="MIT" 1.14 -WEB_SITE="https://pypi.org/project/imagesize/" 1.15 +WEB_SITE="https://pypi.org/project/$ORIGIN/" 1.16 +HOST_ARCH="any" 1.17 REPOLOGY="python:imagesize" 1.18 1.19 -BUILD_DEPENDS="python" 1.20 +BUILD_DEPENDS="python python3" 1.21 +SPLIT="${PACKAGE/python/python3}:3" 1.22 1.23 compile_rules() { 1.24 - pip install --no-compile --root=$DESTDIR imagesize 1.25 + pip$SET install --no-compile --root=$install $ORIGIN==$VERSION 1.26 } 1.27 1.28 genpkg_rules() { 1.29 - VERSION=$(sed -n '/^Successfully installed/ s|.*imagesize-||p' $LOGS/$PACKAGE.log) 1.30 copy @std 1.31 - DEPENDS="python" 1.32 + py="${PACKAGE%%-*}" # python/python3 1.33 + DEPENDS="$py" 1.34 }