blob: 14e0c78fed95f00d75ba73baaef63beb5649d7d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=py-cffi
_pkgname=cffi
pkgver=1.7.0
pkgrel=1
pkgdesc="A foreign function interface for calling C code from python"
url="http://cffi.readthedocs.org/"
arch="noarch"
license="MIT"
depends=""
makedepends="python2-dev python3-dev py-setuptools libffi-dev"
install=""
subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
build() {
cd "$builddir"
python2 setup.py build || return 1
python3 setup.py build || return 1
}
package() {
mkdir -p "$pkgdir"
}
_py() {
local python=$1
pkgdesc="$pkgdesc - $python"
arch="all"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"
$python setup.py install --prefix=/usr --root="$subpkgdir"
}
_py2() {
_py python2
depends="py2-cparser"
replaces="$pkgname"
}
_py3() {
_py python3
depends="py3-cparser"
}
md5sums="34122a545060cee58bab88feab57006d cffi-1.7.0.tar.gz"
sha256sums="6ed5dd6afd8361f34819c68aaebf9e8fc12b5a5893f91f50c9e50c8886bb60df cffi-1.7.0.tar.gz"
sha512sums="ce9439a219248b06a6f2d019324f4150576b5e4d853025d61d470105f95af2a6c2387080bfd0308c063ad756f34feead9a5958187d626524594dfe9a3adf7462 cffi-1.7.0.tar.gz"
|