33 lines
		
	
	
		
			876 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			876 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
# Template file for 'python-cffi'
 | 
						|
pkgname=python-cffi
 | 
						|
version=1.3.0
 | 
						|
revision=1
 | 
						|
wrksrc="cffi-${version}"
 | 
						|
build_style=python-module
 | 
						|
python_versions="2.7 3.4"
 | 
						|
hostmakedepends="python-setuptools python3.4-setuptools libffi-devel"
 | 
						|
makedepends="python-devel python3.4-devel libffi-devel"
 | 
						|
depends="python-pycparser"
 | 
						|
pycompile_module="cffi"
 | 
						|
short_desc="C foreign function interface for Python2"
 | 
						|
maintainer="Alessio Sergi <al3hex@gmail.com>"
 | 
						|
homepage="http://cffi.readthedocs.org/"
 | 
						|
license="MIT"
 | 
						|
distfiles="${PYPI_SITE}/c/cffi/cffi-${version}.tar.gz"
 | 
						|
checksum=9daa53aff0b5cf64c85c10eab7ce6776880d0ee71b78cedeae196ae82b6734e9
 | 
						|
 | 
						|
post_install() {
 | 
						|
	vlicense LICENSE
 | 
						|
}
 | 
						|
 | 
						|
python3.4-cffi_package() {
 | 
						|
	depends="python3.4-pycparser"
 | 
						|
	pycompile_version="3.4"
 | 
						|
	pycompile_module="cffi"
 | 
						|
	short_desc="${short_desc/Python2/Python3.4}"
 | 
						|
	pkg_install() {
 | 
						|
		vmove usr/lib/python3.4
 | 
						|
		vlicense LICENSE
 | 
						|
	}
 | 
						|
}
 |