diff options
author | Britney Fransen <brfransen@gmail.com> | 2014-10-27 20:28:27 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2014-10-27 20:28:27 (GMT) |
commit | f7b823f55a80b1498c30e9f3a47692a2329c4f09 (patch) | |
tree | 6de557714e6336282fbc0ab16c6578386dfc6654 /abs/core/python_modules/python-pycparser | |
parent | 4c2a2e3504f472628285a989c7c9a76be6855f54 (diff) | |
parent | 01c1a60f3b7f93b3ed7404196c2cf798c4d8c674 (diff) | |
download | linhes_pkgbuild-f7b823f55a80b1498c30e9f3a47692a2329c4f09.zip linhes_pkgbuild-f7b823f55a80b1498c30e9f3a47692a2329c4f09.tar.gz linhes_pkgbuild-f7b823f55a80b1498c30e9f3a47692a2329c4f09.tar.bz2 |
Merge branch 'testing'
Diffstat (limited to 'abs/core/python_modules/python-pycparser')
-rw-r--r-- | abs/core/python_modules/python-pycparser/PKGBUILD | 53 | ||||
-rw-r--r-- | abs/core/python_modules/python-pycparser/__changelog | 1 |
2 files changed, 54 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-pycparser/PKGBUILD b/abs/core/python_modules/python-pycparser/PKGBUILD new file mode 100644 index 0000000..6b36524 --- /dev/null +++ b/abs/core/python_modules/python-pycparser/PKGBUILD @@ -0,0 +1,53 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@gmail.com> +# Contributor: Justin Dray <justin@dray.be> +# Contributor: Alexander Rødseth <rodseth@gmail.com> +# Contributor: lang2 <wenzhi.liang@gmail.com> + +pkgbase=python-pycparser +pkgname=(python2-pycparser) +pkgver=2.10 +pkgrel=4 +pkgdesc='C parser and AST generator written in Python' +url='https://github.com/eliben/pycparser' +makedepends=('python2-ply' 'git') +arch=('any') +license=('BSD') +source=('https://github.com/eliben/pycparser/archive/release_v2.10.zip') +sha256sums=('1217244f882c330782f4762a1fb37cef21a929ce0123ac388e7e367c35ddbae3') + +prepare() { + cp -r pycparser-release_v${pkgver}{,-py2} +} + +build() { +# cd pycparser-release_v${pkgver} +# python setup.py build + +# cd pycparser +# python _build_tables.py + + cd "$srcdir/pycparser-release_v${pkgver}-py2" + python2 setup.py build + + cd pycparser + python2 _build_tables.py +} + +#package_python-pycparser() { +# depends=('python-ply') + +# cd pycparser-release_v${pkgver} + +# python setup.py install --root="$pkgdir" --optimize=1 +# install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +#} + +package_python2-pycparser() { + depends=('python2-ply') + + cd pycparser-release_v${pkgver}-py2 + + python2 setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} diff --git a/abs/core/python_modules/python-pycparser/__changelog b/abs/core/python_modules/python-pycparser/__changelog new file mode 100644 index 0000000..488d3cf --- /dev/null +++ b/abs/core/python_modules/python-pycparser/__changelog @@ -0,0 +1 @@ +PKGBUILD: rm py 3 stuff |