wok-next diff python-pathlib2/receipt @ rev 21056

zim: fix build
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Dec 03 11:57:12 2018 +0200 (2018-12-03)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/python-pathlib2/receipt	Mon Dec 03 11:57:12 2018 +0200
     1.3 @@ -0,0 +1,29 @@
     1.4 +# SliTaz package receipt v2.
     1.5 +
     1.6 +ORIGIN="pathlib2"
     1.7 +PACKAGE="python-pathlib2"
     1.8 +VERSION="2.3.2"
     1.9 +CATEGORY="python"
    1.10 +SHORT_DESC="Object-oriented filesystem paths"
    1.11 +MAINTAINER="al.bobylev@gmail.com"
    1.12 +LICENSE="MIT"
    1.13 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
    1.14 +HOST_ARCH="any"
    1.15 +REPOLOGY="python:pathlib2"
    1.16 +
    1.17 +BUILD_DEPENDS="python python-scandir python-six \
    1.18 +python3 python3-six"
    1.19 +SPLIT="${PACKAGE/python/python3}:3"
    1.20 +
    1.21 +compile_rules() {
    1.22 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
    1.23 +}
    1.24 +
    1.25 +genpkg_rules() {
    1.26 +	copy @std
    1.27 +	py="${PACKAGE%%-*}" # python/python3
    1.28 +	case $PACKAGE in
    1.29 +		python-*)  DEPENDS="$py $py-scandir $py-six";;
    1.30 +		python3-*) DEPENDS="$py $py-six";;
    1.31 +	esac
    1.32 +}