2011-03-22 04:29:33 +00:00
|
|
|
# Contributor : Daniel Neve <the.mephit@googlemail.com>
|
|
|
|
pkgshort=pynzb
|
|
|
|
pkgname=python2-$pkgshort
|
|
|
|
pkgver=0.1.0
|
2015-06-19 00:35:13 +00:00
|
|
|
pkgrel=3
|
2011-03-22 04:29:33 +00:00
|
|
|
pkgdesc="A unified API for parsing NZB files"
|
|
|
|
arch=('any')
|
|
|
|
url="http://pypi.python.org/pypi/pynzb/"
|
|
|
|
license=('BSD')
|
|
|
|
depends=('python2' 'expat')
|
2012-04-15 17:07:55 +00:00
|
|
|
makedepends=('python2-distribute')
|
2011-03-22 04:29:33 +00:00
|
|
|
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')
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $srcdir/$pkgshort-$pkgver
|
2015-06-19 00:35:13 +00:00
|
|
|
python2 setup.py build
|
|
|
|
}
|
|
|
|
package() {
|
|
|
|
cd $srcdir/$pkgshort-$pkgver
|
|
|
|
python2 setup.py install --root="${pkgdir}" \
|
|
|
|
--prefix=/usr \
|
|
|
|
--compile -O1
|
2011-03-22 04:29:33 +00:00
|
|
|
install -D -m644 $srcdir/LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE.txt
|
|
|
|
}
|