Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

pymetrics: nur für python2

git-svn-id: http://svn.kraehen.org/aur@51 04e22907-73ef-438a-a52f-a971dc6d3b47
  • Loading branch information...
commit 031a09b3dad5f40191b6d54561e31f21e489295b 1 parent 730ba10
@JonnyJD authored
Showing with 26 additions and 18 deletions.
  1. +0 −18 python-pymetrics/PKGBUILD
  2. +26 −0 python2-pymetrics/PKGBUILD
View
18 python-pymetrics/PKGBUILD
@@ -1,18 +0,0 @@
-# Contributor: Johannes Dewender arch at JonnyJD dot net
-
-pkgname=python-pymetrics
-pkgver=0.8.1
-pkgrel=1
-pkgdesc="produces metrics for Python programs"
-arch=(any)
-url="http://pymetrics.sourceforge.net/"
-license=('GPL2')
-depends=('python')
-options=(!emptydirs)
-source=(http://downloads.sourceforge.net/pymetrics/pymetrics-$pkgver.tar.gz)
-md5sums=('2413ea3d414e8a2b88b4a3d2aa32d835')
-
-build() {
- cd $srcdir/pymetrics-$pkgver
- python setup.py install --root=$pkgdir/ --optimize=1 || return 1
-}
View
26 python2-pymetrics/PKGBUILD
@@ -0,0 +1,26 @@
+# Contributor: Johannes Dewender arch at JonnyJD dot net
+
+pkgname=python2-pymetrics
+_pkgname=pymetrics
+pkgver=0.8.1
+pkgrel=1
+pkgdesc="produces metrics for Python programs"
+arch=(any)
+url="http://pymetrics.sourceforge.net/"
+license=('GPL2')
+depends=('python2')
+conflicts=('python-pymetrics<=0.8.1')
+replaces=('python-pymetrics<=0.8.1')
+options=(!emptydirs)
+source=(http://downloads.sourceforge.net/$_pkgname/$_pkgname-$pkgver.tar.gz)
+md5sums=('2413ea3d414e8a2b88b4a3d2aa32d835')
+
+build () {
+ cd $srcdir/$_pkgname-$pkgver
+ python2 setup.py build
+}
+
+package () {
+ cd $srcdir/$_pkgname-$pkgver
+ python2 setup.py install --skip-build --root=$pkgdir/ --optimize=1
+}
Please sign in to comment.
Something went wrong with that request. Please try again.