wok-next view python-pycairo/receipt @ rev 21067
perl: force-arch, we need perl-dev-i486 and perl-dev-x86_64
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Dec 06 20:27:31 2018 +0200 (2018-12-06) |
parents | d5aab818505e |
children | 82b613cfd1e0 |
line source
1 # SliTaz package receipt v2.
3 ORIGIN="pycairo"
4 PACKAGE="python-pycairo"
5 VERSION="1.18.0"
6 CATEGORY="python"
7 SHORT_DESC="Python interface for cairo"
8 MAINTAINER="devel@slitaz.org"
9 LICENSE="MPL LGPL2.1"
10 WEB_SITE="https://pypi.org/project/$ORIGIN/"
11 #HOST_ARCH
12 REPOLOGY="python:pycairo"
14 BUILD_DEPENDS="python-dev python3-dev cairo-dev"
15 SPLIT="$PACKAGE-dev ${PACKAGE/python/python3}:3 ${PACKAGE/python/python3}-dev:3"
17 compile_rules() {
18 pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
19 }
21 genpkg_rules() {
22 case $PACKAGE in
23 *-dev)
24 copy @dev
25 DEPENDS="${PACKAGE%%-dev} cairo-dev"
26 ;;
27 *)
28 copy @std
29 py="${PACKAGE%%-*}" # python/python3
30 DEPENDS="$py cairo"
31 ;;
32 esac
33 }