[arch-commits] Commit in python-pycparser/repos/extra-any (PKGBUILD PKGBUILD)
Antonio Rojas
arojas at gemini.archlinux.org
Mon Nov 29 19:50:58 UTC 2021
Date: Monday, November 29, 2021 @ 19:50:57
Author: arojas
Revision: 429487
archrelease: copy trunk to extra-any
Added:
python-pycparser/repos/extra-any/PKGBUILD
(from rev 429486, python-pycparser/trunk/PKGBUILD)
Deleted:
python-pycparser/repos/extra-any/PKGBUILD
----------+
PKGBUILD | 93 ++++++++++++++++++++++---------------------------------------
1 file changed, 35 insertions(+), 58 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-11-29 19:50:48 UTC (rev 429486)
+++ PKGBUILD 2021-11-29 19:50:57 UTC (rev 429487)
@@ -1,58 +0,0 @@
-# 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=3
-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
-}
Copied: python-pycparser/repos/extra-any/PKGBUILD (from rev 429486, python-pycparser/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-11-29 19:50:57 UTC (rev 429487)
@@ -0,0 +1,35 @@
+# 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>
+
+pkgname=python-pycparser
+pkgver=2.21
+pkgrel=1
+pkgdesc='C parser and AST generator written in Python'
+url='https://github.com/eliben/pycparser'
+depends=('python-ply')
+makedepends=('python-setuptools')
+arch=('any')
+license=('BSD')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/eliben/pycparser/archive/release_v$pkgver.tar.gz")
+sha512sums=('b141e14040774ddaae6cd1726b0b2a61bfa76e8bcb5dc25dd99a303c48c7257dd7214cc7704234b0045ccc6a47354f6a7639647d875e1266846659217cc6ea78')
+
+build() {
+ cd "$srcdir"/pycparser-release_v$pkgver
+ python setup.py build
+ cd pycparser
+ python _build_tables.py
+}
+
+check() {
+ cd "$srcdir"/pycparser-release_v$pkgver
+ python -m unittest discover
+}
+
+package() {
+ cd pycparser-release_v$pkgver
+
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list