wok-next view python-pycairo/receipt @ rev 21207

try to build asterisk again
author Hans-G?nter Theisgen
date Mon Dec 02 09:52:22 2019 +0100 (2019-12-02)
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 }