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

Felix Yan felixonmars at archlinux.org
Thu Mar 23 02:45:30 UTC 2017


    Date: Thursday, March 23, 2017 @ 02:45:30
  Author: felixonmars
Revision: 218443

upgpkg: yapf 0.16.1-1

Modified:
  yapf/trunk/PKGBUILD

----------+
 PKGBUILD |   22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-03-23 02:43:29 UTC (rev 218442)
+++ PKGBUILD	2017-03-23 02:45:30 UTC (rev 218443)
@@ -3,34 +3,34 @@
 
 pkgbase=yapf
 pkgname=("yapf" "python2-yapf")
-pkgver=0.16.0
+pkgver=0.16.1
 pkgrel=1
 pkgdesc="Python style guide checker"
 arch=('any')
 url="http://github.com/google/yapf"
 license=('Apache')
-makedepends=('python-setuptools' 'python2-setuptools' 'git')
+makedepends=('python-setuptools' 'python2-setuptools')
 checkdepends=('python-nose' 'python2-nose')
-source=("git+https://github.com/google/yapf.git#tag=v$pkgver")
-sha256sums=('SKIP')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/google/yapf/archive/v$pkgver.tar.gz")
+sha512sums=('ead39cb1d59e3886de3b70e93ab4c92b01e4db93e9ba14595126b0f4704c24f6c46e9c1835a7eabd6c41872e6bf8d5b8557d9bdc1cf9c5b5f56a6f97b9979c99')
 
 prepare() {
-  cp -a yapf{,-py2}
+  cp -a yapf-$pkgver{,-py2}
 }
 
 build() {
-  cd "$srcdir"/yapf
+  cd "$srcdir"/yapf-$pkgver
   python setup.py build
 
-  cd "$srcdir"/yapf-py2
+  cd "$srcdir"/yapf-$pkgver-py2
   python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/yapf
+  cd "$srcdir"/yapf-$pkgver
   nosetests3
 
-  cd "$srcdir"/yapf-py2
+  cd "$srcdir"/yapf-$pkgver-py2
   nosetests2
 }
 
@@ -37,7 +37,7 @@
 package_yapf() {
   depends=('python-setuptools')
 
-  cd yapf
+  cd yapf-$pkgver
   python setup.py install -O1 --root="$pkgdir"
 }
 
@@ -44,7 +44,7 @@
 package_python2-yapf() {
   depends=('python2-setuptools')
 
-  cd yapf-py2
+  cd yapf-$pkgver-py2
   python2 setup.py install -O1 --root="$pkgdir"
   mv "$pkgdir"/usr/bin/yapf{,2}
 }


More information about the arch-commits mailing list