diff options
author | David P <megver83@parabola.nu> | 2017-06-13 12:15:13 -0400 |
---|---|---|
committer | David P <megver83@parabola.nu> | 2017-06-13 12:15:13 -0400 |
commit | d7a50f3e82be1a721737ffd39729bdfb61fda263 (patch) | |
tree | 01b1b26d7a6d4ca5882b2b072318493b7fd819f1 /pcr/python-pypump | |
parent | b152e4b04f9e62738ffad624d81e4f4882f5017d (diff) | |
download | abslibre-d7a50f3e82be1a721737ffd39729bdfb61fda263.tar.gz abslibre-d7a50f3e82be1a721737ffd39729bdfb61fda263.tar.bz2 abslibre-d7a50f3e82be1a721737ffd39729bdfb61fda263.zip |
Added python-pypump to [pcr]
Diffstat (limited to 'pcr/python-pypump')
-rw-r--r-- | pcr/python-pypump/PKGBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/pcr/python-pypump/PKGBUILD b/pcr/python-pypump/PKGBUILD new file mode 100644 index 000000000..7a31c6386 --- /dev/null +++ b/pcr/python-pypump/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: David P. <megver83@parabola.nu> + +pkgbase=python-pypump +pkgname=('python-pypump' 'python2-pypump') +pkgver=0.7 +pkgrel=1 +arch=('any') +license=('GPL3') +pkgdesc="Python pump.io library" +url="https://github.com/xray7224/PyPump" +makedepends=('python-setuptools' 'python2-setuptools') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/xray7224/PyPump/archive/v$pkgver.tar.gz") +sha512sums=('3906118f681dd886bd8e3d57a49f66a0bc4236fe526d8137905ea8f7fd9bc9fea61a5646ca6e6617095fab62ab3ce91f2ea7d2c5e150125f399048c2f8831e86') + +prepare() { + mv PyPump-$pkgver pypump-$pkgver + cp -a pypump-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/pypump-$pkgver + python setup.py build + + cd "$srcdir"/pypump-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/pypump-$pkgver + python setup.py test + + cd "$srcdir"/pypump-$pkgver-py2 + python setup.py test +} + +package_python-pypump() { + depends=('python' 'python-requests' 'python-requests-oauthlib' 'python-dateutil') + + cd pypump-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 COPYING "$pkgdir"/usr/share/licenses/python-pypump/LICENSE +} + +package_python2-pypump() { + depends=('python2' 'python2-requests' 'python2-requests-oauthlib' 'python2-dateutil') + + cd pypump-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 COPYING "$pkgdir"/usr/share/licenses/python2-pypump/LICENSE +} |