[arch-commits] Commit in python-pycparser/repos (staging-any staging-any/PKGBUILD)
Felix Yan
felixonmars at gemini.archlinux.org
Tue Nov 30 18:22:29 UTC 2021
Date: Tuesday, November 30, 2021 @ 18:22:29
Author: felixonmars
Revision: 429694
archrelease: copy trunk to staging-any
Added:
python-pycparser/repos/staging-any/
python-pycparser/repos/staging-any/PKGBUILD
(from rev 429693, python-pycparser/trunk/PKGBUILD)
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Copied: python-pycparser/repos/staging-any/PKGBUILD (from rev 429693, python-pycparser/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD (rev 0)
+++ staging-any/PKGBUILD 2021-11-30 18:22:29 UTC (rev 429694)
@@ -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=2
+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