36 lines
1,014 B
Bash
36 lines
1,014 B
Bash
# Template file for 'python-cffi'
|
|
pkgname=python-cffi
|
|
version=1.9.1
|
|
revision=1
|
|
wrksrc="cffi-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools libffi-devel"
|
|
makedepends="python-devel python3-devel libffi-devel"
|
|
depends="python-pycparser"
|
|
pycompile_module="cffi"
|
|
short_desc="C foreign function interface for Python2"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="https://cffi.readthedocs.io/"
|
|
license="MIT"
|
|
distfiles="${PYPI_SITE}/c/cffi/cffi-${version}.tar.gz"
|
|
checksum=563e0bd53fda03c151573217b3a49b3abad8813de9dd0632e10090f6190fdaf8
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-cffi_package() {
|
|
depends="python3-pycparser"
|
|
pycompile_module="cffi"
|
|
replaces="python3.4-cffi>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|
|
python3.4-cffi_package() {
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-cffi>=${version}_${revision}"
|
|
}
|