wok-next view python-lxml/receipt @ rev 21012

Small updates
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Oct 13 17:31:50 2018 +0300 (2018-10-13)
parents a3c581bf52b8
children d5aab818505e
line source
1 # SliTaz package receipt v2.
3 ORIGIN="lxml"
4 PACKAGE="python-lxml"
5 VERSION="4.2.5"
6 CATEGORY="development"
7 SHORT_DESC="Pythonic binding for the libxml2 and libxslt libraries"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="BSD GPL PSL"
10 WEB_SITE="https://pypi.org/project/$ORIGIN/"
11 #HOST_ARCH=""
12 REPOLOGY="python:lxml"
14 BUILD_DEPENDS="python python3 libxml2-dev libxslt-dev"
15 SPLIT="$PACKAGE-dev \
16 ${PACKAGE/python/python3}:3 ${PACKAGE/python/python3}-dev:3"
18 compile_rules() {
19 pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
20 }
22 genpkg_rules() {
23 case $PACKAGE in
24 *-dev)
25 copy @dev
26 DEPENDS="${PACKAGE%%-dev}"
27 ;;
28 *)
29 copy @std
30 py="${PACKAGE%%-*}" # python/python3
31 DEPENDS="$py libxml2 libxslt"
32 ;;
33 esac
34 }