blob: 99fd4dfbc150b61ae9c0828f8de5b138273c2d5d (
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
|
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=py-cparser
pkgver=2.10
pkgrel=0
pkgdesc="a C parser written in Python"
url="https://github.com/eliben/pycparser"
arch="noarch"
license="BSD"
depends="python"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="https://pypi.python.org/packages/source/p/pycparser/pycparser-$pkgver.tar.gz"
_builddir="$srcdir"/pycparser-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
python setup.py build || return 1
}
package() {
cd "$_builddir"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
md5sums="d87aed98c8a9f386aa56d365fe4d515f pycparser-2.10.tar.gz"
sha256sums="957d98b661c0b64b580ab6f94b125e09b6714154ee51de40bca16d3f0076b86c pycparser-2.10.tar.gz"
sha512sums="afe5079d6b0a39ea7f0df1ce74b1981c78d8687dbef50fb7a692395ca4a7e7a8119ec6abc0dfeb7a0535865ed2fac9dafca189bdbf6ff9205612205560e2d371 pycparser-2.10.tar.gz"
|