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

Felix Yan felixonmars at archlinux.org
Tue Oct 18 14:52:44 UTC 2016


    Date: Tuesday, October 18, 2016 @ 14:52:43
  Author: felixonmars
Revision: 278958

upgpkg: python-pycparser 2.15-1

Modified:
  python-pycparser/trunk/PKGBUILD

----------+
 PKGBUILD |   29 ++++++++++++++---------------
 1 file changed, 14 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-10-18 14:36:55 UTC (rev 278957)
+++ PKGBUILD	2016-10-18 14:52:43 UTC (rev 278958)
@@ -6,39 +6,38 @@
 
 pkgbase=python-pycparser
 pkgname=(python-pycparser python2-pycparser)
-pkgver=2.14
-pkgrel=2
+pkgver=2.15
+_commit=9e9855b3254a8e234ac8f793154d600905b90a55
+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')
 arch=('any')
 license=('BSD')
-source=("https://github.com/eliben/pycparser/archive/release_v$pkgver.zip")
-sha256sums=('8612b94df49ce0c69a56b7ba23530e69cfb91bf788cc7fde14e17a099feb4e25')
+source=("git+https://github.com/eliben/pycparser.git#commit=$_commit")
+sha256sums=('SKIP')
 
 prepare() {
-  cp -a pycparser-release_v${pkgver}{,-py2}
+  cp -a pycparser{,-py2}
 }
 
 build() {
-  cd pycparser-release_v${pkgver}
+  cd "$srcdir"/pycparser
   python setup.py build
-
   cd pycparser
   python _build_tables.py
 
-  cd "$srcdir/pycparser-release_v${pkgver}-py2"
+  cd "$srcdir"/pycparser-py2
   python2 setup.py build
-
   cd pycparser
   python2 _build_tables.py
 }
 
 check() {
-  cd pycparser-release_v${pkgver}
+  cd "$srcdir"/pycparser
   python tests/all_tests.py
 
-  cd "$srcdir/pycparser-release_v${pkgver}-py2"
+  cd "$srcdir"/pycparser-py2
   python2 tests/all_tests.py
 }
 
@@ -45,17 +44,17 @@
 package_python-pycparser() {
   depends=('python-ply')
 
-  cd pycparser-release_v${pkgver}
+  cd pycparser
 
   python setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 
 package_python2-pycparser() {
   depends=('python2-ply')
 
-  cd pycparser-release_v${pkgver}-py2
+  cd pycparser-py2
 
   python2 setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }



More information about the arch-commits mailing list