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

Anatol Pomozov anatolik at archlinux.org
Thu Jun 16 17:25:04 UTC 2016


    Date: Thursday, June 16, 2016 @ 17:25:04
  Author: anatolik
Revision: 180335

upgpkg: codespell 1.9.1-1

Modified:
  codespell/trunk/PKGBUILD

----------+
 PKGBUILD |   30 +++++++++++++++++-------------
 1 file changed, 17 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-06-16 16:24:59 UTC (rev 180334)
+++ PKGBUILD	2016-06-16 17:25:04 UTC (rev 180335)
@@ -1,25 +1,29 @@
 # $Id$
-# Maintainer: Anatol Pomozov <anatol at google.com>
-# Contributor: Lucas De Marchi <lucas.de.marchi at gmail.com>
+# Maintainer: Anatol Pomozov
 
 pkgname=codespell
-pkgver=1.8
+pkgver=1.9.1
 pkgrel=1
 pkgdesc='Fix common misspellings in source code'
+arch=(any)
 url='https://github.com/lucasdemarchi/codespell'
-license=(GPL)
-arch=(any)
+license=(GPL2)
 depends=(python)
-source=($pkgname-$pkgver.tar.gz::https://github.com/lucasdemarchi/codespell/archive/v$pkgver.tar.gz)
-sha256sums=('329b924b0426f6015b30e063ce79f5feedbe4a7a3e143d9e350fe021c770bb68')
+checkdepends=(python-nose)
+source=(https://pypi.io/packages/source/c/codespell/codespell-$pkgver.tar.gz)
+sha1sums=('633f23643a740bbb7157d910e400c863942c317a')
 
-prepare() {
-  # fix build bug https://github.com/lucasdemarchi/codespell/commit/d3b1e186a692cd4c7477b4156277ce2f060c3b80
-  cd codespell-$pkgver
-  sed -i 's/^install:$/install: codespell/' Makefile
+build() {
+  cd "$srcdir/codespell-$pkgver"
+  python setup.py build
 }
 
+check() {
+  cd "$srcdir/codespell-$pkgver"
+  python setup.py test
+}
+
 package() {
-  cd codespell-$pkgver
-  make install DESTDIR="$pkgdir" prefix=/usr
+  cd "$srcdir/codespell-$pkgver"
+  python setup.py install --root="$pkgdir" --optimize=1
 }



More information about the arch-commits mailing list