git » namcap.git » commit ac40d51

Release version 3.0.4

author Rémy Oudompheng
2011-03-29 20:55:19 UTC
committer Rémy Oudompheng
2011-03-29 20:55:19 UTC
parent ccedb43f6ad96ac16dab433f74c338f8c3f989c5

Release version 3.0.4

PKGBUILD +15 -3

diff --git a/PKGBUILD b/PKGBUILD
index d078ce4..dcd6b0e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
 # Contributor: Hugo Doria <hugo@archlinux.org>
 
 pkgname=namcap
-pkgver=3.0.3
+pkgver=3.0.4
 pkgrel=1
 pkgdesc="A Pacman package analyzer"
 arch=('any')
@@ -11,9 +11,21 @@ license=('GPL')
 depends=('python' 'licenses')
 makedepends=('python-distribute')
 source=(ftp://ftp.archlinux.org/other/$pkgname/${pkgname}-${pkgver}.tar.gz)
-md5sums=('16e13f59b156b647829fc9b16d8cc8be')
+md5sums=('c643b5b74f0cb50a44a9e65b873cceb5')
+
+build() {
+  cd ${srcdir}/${pkgname}-${pkgver}
+  python setup.py build
+}
+
+check() {
+  cd ${srcdir}/${pkgname}-${pkgver}
+  env PARSE_PKGBUILD_PATH=${srcdir}/${pkgname}-${pkgver} \
+      PATH=${srcdir}/${pkgname}-${pkgver}:$PATH \
+      python setup.py test || true
+}
 
 package() {
   cd ${srcdir}/${pkgname}-${pkgver}
-  python ./setup.py install --root=${pkgdir}
+  python setup.py install --root=${pkgdir}
 }