wok-next view python-pycairo/receipt @ rev 21303
updated gujin (2.8.6 -> 2.8.7)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Dec 10 07:57:29 2019 +0100 (2019-12-10) |
parents | 0f7ebcdec85d |
children |
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 libcairo"
31 ;;
32 esac
33 }