30 lines
815 B
Bash
30 lines
815 B
Bash
# Template file for 'python-cffi'
|
|
pkgname=python-cffi
|
|
version=1.11.4
|
|
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=df9083a992b17a28cd4251a3f5c879e0198bb26c9e808c4647e0a18739f1d11d
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-cffi_package() {
|
|
depends="python3-pycparser"
|
|
pycompile_module="cffi"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|