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

Felix Yan fyan at archlinux.org
Sat Sep 19 10:40:09 UTC 2015


    Date: Saturday, September 19, 2015 @ 12:40:09
  Author: fyan
Revision: 246601

archrelease: copy trunk to staging-any

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

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

Copied: python-pycparser/repos/staging-any/PKGBUILD (from rev 246600, python-pycparser/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2015-09-19 10:40:09 UTC (rev 246601)
@@ -0,0 +1,61 @@
+# $Id$
+# 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.14
+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' 'git')
+arch=('any')
+license=('BSD')
+source=("https://github.com/eliben/pycparser/archive/release_v$pkgver.zip")
+sha256sums=('8612b94df49ce0c69a56b7ba23530e69cfb91bf788cc7fde14e17a099feb4e25')
+
+prepare() {
+  cp -a 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
+}
+
+check() {
+  cd 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