[arch-commits] Commit in python-pycparser/repos (staging-any staging-any/PKGBUILD)
Evangelos Foutras
foutrelis at archlinux.org
Fri Oct 25 19:53:58 UTC 2019
Date: Friday, October 25, 2019 @ 19:53:58
Author: foutrelis
Revision: 365699
archrelease: copy trunk to staging-any
Added:
python-pycparser/repos/staging-any/
python-pycparser/repos/staging-any/PKGBUILD
(from rev 365698, python-pycparser/trunk/PKGBUILD)
----------+
PKGBUILD | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
Copied: python-pycparser/repos/staging-any/PKGBUILD (from rev 365698, python-pycparser/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD (rev 0)
+++ staging-any/PKGBUILD 2019-10-25 19:53:58 UTC (rev 365699)
@@ -0,0 +1,58 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Justin Dray <justin at dray.be>
+# Contributor: Alexander Rødseth <rodseth at gmail.com>
+# Contributor: lang2 <wenzhi.liang at gmail.com>
+
+pkgbase=python-pycparser
+pkgname=(python-pycparser python2-pycparser)
+pkgver=2.19
+pkgrel=2
+pkgdesc='C parser and AST generator written in Python'
+url='https://github.com/eliben/pycparser'
+makedepends=('python-ply' 'python2-ply' 'python-setuptools' 'python2-setuptools')
+arch=('any')
+license=('BSD')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/eliben/pycparser/archive/release_v$pkgver.tar.gz")
+sha512sums=('88fe63c1a7a344c564dfd3b4f99735a4159c8a3f5738bab839943ea7fcbf1f5340f67326550b7e66508ea5862897e5bcdf363c2a8d47eccb50890573a2640a98')
+
+prepare() {
+ cp -a pycparser-release_v$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/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
+}
+
+check() {
+ cd "$srcdir"/pycparser-release_v$pkgver
+ python tests/all_tests.py
+
+ cd "$srcdir"/pycparser-release_v$pkgver-py2
+ python2 tests/all_tests.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
+}
More information about the arch-commits
mailing list