[arch-commits] Commit in python-pycparser/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Wed Jul 5 03:08:19 UTC 2017


    Date: Wednesday, July 5, 2017 @ 03:08:18
  Author: felixonmars
Revision: 299683

upgpkg: python-pycparser 2.18-1

Modified:
  python-pycparser/trunk/PKGBUILD

----------+
 PKGBUILD |   24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-07-04 23:59:32 UTC (rev 299682)
+++ PKGBUILD	2017-07-05 03:08:18 UTC (rev 299683)
@@ -6,27 +6,27 @@
 
 pkgbase=python-pycparser
 pkgname=(python-pycparser python2-pycparser)
-pkgver=2.17
-pkgrel=2
+pkgver=2.18
+pkgrel=1
 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')
+makedepends=('python-ply' 'python2-ply' 'python-setuptools' 'python2-setuptools')
 arch=('any')
 license=('BSD')
-source=("git+https://github.com/eliben/pycparser.git#tag=release_v$pkgver")
-sha256sums=('SKIP')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/eliben/pycparser/archive/release_v$pkgver.tar.gz")
+sha512sums=('76426b000ed601a8e90a1eda34374b62acdf51dcf2048881ca0d4ebc3310e25728905c2f6843dd363d497b7cf0fd8311dab6c0de74f4a5c2f25d3b1d488f082a')
 
 prepare() {
-  cp -a pycparser{,-py2}
+  cp -a pycparser-release_v$pkgver{,-py2}
 }
 
 build() {
-  cd "$srcdir"/pycparser
+  cd "$srcdir"/pycparser-release_v$pkgver
   python setup.py build
   cd pycparser
   python _build_tables.py
 
-  cd "$srcdir"/pycparser-py2
+  cd "$srcdir"/pycparser-release_v$pkgver-py2
   python2 setup.py build
   cd pycparser
   python2 _build_tables.py
@@ -33,10 +33,10 @@
 }
 
 check() {
-  cd "$srcdir"/pycparser
+  cd "$srcdir"/pycparser-release_v$pkgver
   python tests/all_tests.py
 
-  cd "$srcdir"/pycparser-py2
+  cd "$srcdir"/pycparser-release_v$pkgver-py2
   python2 tests/all_tests.py
 }
 
@@ -43,7 +43,7 @@
 package_python-pycparser() {
   depends=('python-ply')
 
-  cd pycparser
+  cd pycparser-release_v$pkgver
 
   python setup.py install --root="$pkgdir" --optimize=1
   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
@@ -52,7 +52,7 @@
 package_python2-pycparser() {
   depends=('python2-ply')
 
-  cd pycparser-py2
+  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