diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 19 |
1 files changed, 15 insertions, 4 deletions
@@ -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 |