[arch-commits] Commit in python-pycparser/repos (staging-any staging-any/PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 9 16:49:13 UTC 2020


    Date: Monday, November 9, 2020 @ 16:49:13
  Author: foutrelis
Revision: 399813

archrelease: copy trunk to staging-any

Added:
  python-pycparser/repos/staging-any/
  python-pycparser/repos/staging-any/PKGBUILD
    (from rev 399811, python-pycparser/trunk/PKGBUILD)

----------+
 PKGBUILD |   58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 58 insertions(+)

Copied: python-pycparser/repos/staging-any/PKGBUILD (from rev 399811, python-pycparser/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2020-11-09 16:49:13 UTC (rev 399813)
@@ -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.20
+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=('d2dc48727750ec0a80d5e3b0c9fba390c3647416a3e18cad59429edb9f55d043c7695c52301b037c93af5d96ffc85fcba7cd54d376abdb89e973759c59fa189d')
+
+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