diff options
author | Trygve Aaberge | 2016-02-07 14:41:10 +0100 |
---|---|---|
committer | Trygve Aaberge | 2016-02-13 23:54:01 +0100 |
commit | b5e492ec1f37e5b1d9ab1e3d313309cafae2c968 (patch) | |
tree | 3402f8be288cc19b3b4a04b034dda73db3b60bd9 | |
parent | ccaa2b0c0be13c85f2b7ac3697dc2f02b675a72e (diff) | |
download | aur-b5e492ec1f37e5b1d9ab1e3d313309cafae2c968.tar.gz |
Merge python-tunigo and python2-tunigo packages
Have one split packages instead of two independent.
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 19 |
2 files changed, 25 insertions, 6 deletions
@@ -1,3 +1,5 @@ +# Generated by mksrcinfo v8 +# Sat Feb 13 22:53:53 UTC 2016 pkgbase = python2-tunigo pkgdesc = Python API for the browse feature of Spotify pkgver = 0.1.3 @@ -5,12 +7,18 @@ pkgbase = python2-tunigo url = https://github.com/trygveaa/python-tunigo arch = any license = APACHE + makedepends = python + makedepends = python-setuptools makedepends = python2 makedepends = python2-setuptools - depends = python2 - depends = python2-requests source = https://pypi.python.org/packages/source/t/tunigo/tunigo-0.1.3.tar.gz md5sums = a8724b6964d76782cb7156a8b713fdce +pkgname = python-tunigo + depends = python + depends = python-requests + pkgname = python2-tunigo + depends = python2 + depends = python2-requests @@ -1,6 +1,7 @@ # Maintainer: Trygve Aaberge <trygveaa+aur at gmail dot com> -pkgname=python2-tunigo +pkgbase=python2-tunigo +pkgname=('python-tunigo' 'python2-tunigo') _pypiname=tunigo pkgver=0.1.3 pkgrel=1 @@ -8,12 +9,22 @@ pkgdesc="Python API for the browse feature of Spotify" arch=('any') url="https://github.com/trygveaa/python-tunigo" license=('APACHE') -depends=('python2' 'python2-requests') -makedepends=('python2' 'python2-setuptools') +makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools') source=("https://pypi.python.org/packages/source/t/${_pypiname}/${_pypiname}-${pkgver}.tar.gz") md5sums=('a8724b6964d76782cb7156a8b713fdce') -package() { +package_python-tunigo() { + depends=('python' 'python-requests') + + cd "${srcdir}/${_pypiname}-${pkgver}" + python setup.py install --root="${pkgdir}/" --optimize=1 + + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +package_python2-tunigo() { + depends=('python2' 'python2-requests') + cd "${srcdir}/${_pypiname}-${pkgver}" python2 setup.py install --root="${pkgdir}/" --optimize=1 |