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

Anatol Pomozov anatolik at archlinux.org
Fri Jun 17 20:50:36 UTC 2016


    Date: Friday, June 17, 2016 @ 20:50:36
  Author: anatolik
Revision: 180393

upgpkg: codespell 1.9.1-2

Fix 'https://github.com/lucasdemarchi/codespell/issues/84'

Modified:
  codespell/trunk/PKGBUILD

----------+
 PKGBUILD |   19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-06-17 20:23:11 UTC (rev 180392)
+++ PKGBUILD	2016-06-17 20:50:36 UTC (rev 180393)
@@ -3,7 +3,7 @@
 
 pkgname=codespell
 pkgver=1.9.1
-pkgrel=1
+pkgrel=2
 pkgdesc='Fix common misspellings in source code'
 arch=(any)
 url='https://github.com/lucasdemarchi/codespell'
@@ -10,20 +10,27 @@
 license=(GPL2)
 depends=(python)
 checkdepends=(python-nose)
-source=(https://pypi.io/packages/source/c/codespell/codespell-$pkgver.tar.gz)
-sha1sums=('633f23643a740bbb7157d910e400c863942c317a')
+source=(https://pypi.io/packages/source/c/codespell/codespell-$pkgver.tar.gz
+        default_arg.patch::https://github.com/Eric89GXL/codespell/commit/e9d8629cd950fb92f2d951a1517e1d5a09d2d74b.patch)
+sha1sums=('633f23643a740bbb7157d910e400c863942c317a'
+          'f4c61625cc20d61a15e2e9ac5c720c5a65ca3118')
 
+prepare() {
+  cd codespell-$pkgver
+  patch -p1 < ../default_arg.patch
+}
+
 build() {
-  cd "$srcdir/codespell-$pkgver"
+  cd codespell-$pkgver
   python setup.py build
 }
 
 check() {
-  cd "$srcdir/codespell-$pkgver"
+  cd codespell-$pkgver
   python setup.py test
 }
 
 package() {
-  cd "$srcdir/codespell-$pkgver"
+  cd codespell-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
 }



More information about the arch-commits mailing list