wok-next annotate python-cffi/receipt @ rev 21469
updated tinc (1.0.25 -> 1.0.36)
author | Hans-G?nter Theisgen |
---|---|
date | Wed May 13 07:41:00 2020 +0100 (2020-05-13) |
parents | 92f1f4b98170 |
children |
rev | line source |
---|---|
al@20924 | 1 # SliTaz package receipt v2. |
al@20924 | 2 |
al@20972 | 3 ORIGIN="cffi" |
al@20924 | 4 PACKAGE="python-cffi" |
al@20972 | 5 VERSION="1.11.5" |
al@20924 | 6 CATEGORY="python" |
al@20924 | 7 SHORT_DESC="Foreign Function Interface for Python calling C code" |
al@20924 | 8 MAINTAINER="al.bobylev@gmail.com" |
al@20924 | 9 LICENSE="Apache2" |
al@20972 | 10 WEB_SITE="https://pypi.org/project/$ORIGIN/" |
al@20972 | 11 #HOST_ARCH |
al@20924 | 12 REPOLOGY="python:cffi" |
al@20924 | 13 |
al@20972 | 14 BUILD_DEPENDS="python python-pycparser python3 python3-pycparser" |
al@20972 | 15 SPLIT="$PACKAGE-dev \ |
al@20972 | 16 ${PACKAGE/python/python3}:3 ${PACKAGE/python/python3}-dev:3" |
al@20924 | 17 |
al@20924 | 18 compile_rules() { |
al@20972 | 19 pip$SET install --no-compile --root=$install $ORIGIN==$VERSION |
al@20924 | 20 } |
al@20924 | 21 |
al@20924 | 22 genpkg_rules() { |
al@20924 | 23 case $PACKAGE in |
al@20924 | 24 *-dev) |
al@20924 | 25 copy @dev |
al@20972 | 26 DEPENDS="${PACKAGE%%-dev}" |
al@20924 | 27 ;; |
al@20924 | 28 *) |
al@20924 | 29 copy @std |
al@20972 | 30 py="${PACKAGE%%-*}" # python/python3 |
al@20972 | 31 DEPENDS="$py $py-pycparser" |
al@20924 | 32 ;; |
al@20924 | 33 esac |
al@20924 | 34 } |