mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-12 19:32:31 +01:00
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
# 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"
|