summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEduardo Parra2017-09-20 02:17:17 +0200
committerEduardo Parra2017-09-20 02:17:17 +0200
commit05e4de74e421beff4876828a3b4ea674d49bdd18 (patch)
tree2a5c3b6d7b2719f9cb7ec4c57b11986ac3ba7a06
parent47ee0831310c9a7496e270a254e74430c3bf5f6f (diff)
downloadaur-05e4de74e421beff4876828a3b4ea674d49bdd18.tar.gz
Fixes
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD24
2 files changed, 12 insertions, 18 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 74c48c125ce..e98d4ca1dc4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = python2-pynzb
pkgdesc = A unified API for parsing NZB files
pkgver = 0.1.0
- pkgrel = 3
+ pkgrel = 4
url = http://pypi.python.org/pypi/pynzb/
arch = any
license = BSD
@@ -10,10 +10,8 @@ pkgbase = python2-pynzb
depends = expat
optdepends = python-lxml: Use lxml instead of expat
conflicts = pynzb
- source = http://pypi.python.org/packages/source/p/pynzb/pynzb-0.1.0.tar.gz
- source = https://www.github.com/ericflo/pynzb/raw/master/LICENSE.txt
+ source = https://files.pythonhosted.org/packages/source/p/pynzb/pynzb-0.1.0.tar.gz
md5sums = 63c74a36348ac28aa99732dcb8be8c59
- md5sums = 87d87599921bae943f981b28ecfc3cc1
pkgname = python2-pynzb
diff --git a/PKGBUILD b/PKGBUILD
index e88097b77ac..3d21097376e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,9 +1,10 @@
-# Maintainer : vorpalblade77@gmail.com
+# Contributor : vorpalblade77@gmail.com
# Contributor : Daniel Neve <the.mephit@googlemail.com>
-pkgshort=pynzb
-pkgname=python2-$pkgshort
+# Maintainer: Eduardo Parra Mazuecos <eduparra90@gmail.com>
+_name=pynzb
+pkgname=python2-$_name
pkgver=0.1.0
-pkgrel=3
+pkgrel=4
pkgdesc="A unified API for parsing NZB files"
arch=('any')
url="http://pypi.python.org/pypi/pynzb/"
@@ -12,19 +13,14 @@ depends=('python2' 'expat')
makedepends=('python2-distribute')
conflicts=('pynzb')
optdepends=('python-lxml: Use lxml instead of expat')
-source=(http://pypi.python.org/packages/source/p/$pkgshort/$pkgshort-$pkgver.tar.gz
- https://www.github.com/ericflo/$pkgshort/raw/master/LICENSE.txt)
-md5sums=('63c74a36348ac28aa99732dcb8be8c59'
- '87d87599921bae943f981b28ecfc3cc1')
+source=(https://files.pythonhosted.org/packages/source/${_name:0:1}/${_name}/${_name}-${pkgver}.tar.gz)
+md5sums=('63c74a36348ac28aa99732dcb8be8c59')
build() {
- cd $srcdir/$pkgshort-$pkgver
+ cd "$srcdir/${_name}-$pkgver"
python2 setup.py build
}
package() {
- cd $srcdir/$pkgshort-$pkgver
- python2 setup.py install --root="${pkgdir}" \
- --prefix=/usr \
- --compile -O1
- install -D -m644 $srcdir/LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE.txt
+ cd "$srcdir/${_name}-$pkgver"
+ python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
}