Date: Thursday, August 9, 2018 @ 12:03:11 Author: alucryd Revision: 370624
upgpkg: python-pylast 2.4.0-1 Modified: python-pylast/trunk/PKGBUILD ----------+ PKGBUILD | 39 +++++++++++---------------------------- 1 file changed, 11 insertions(+), 28 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-08-09 11:50:01 UTC (rev 370623) +++ PKGBUILD 2018-08-09 12:03:11 UTC (rev 370624) @@ -5,45 +5,28 @@ # Contributor: Wieland Hoffmann <[email protected]> # Contributor: Amr Hassan <[email protected]> -pkgbase=python-pylast -pkgname=('python-pylast' 'python2-pylast') -pkgver=2.3.0 -pkgrel=2 +pkgname=python-pylast +pkgver=2.4.0 +pkgrel=1 pkgdesc='A Python interface to Last.fm and Libre.fm' arch=('any') url='https://github.com/pylast/pylast' license=('Apache') -makedepends=('python-setuptools' 'python2-setuptools') -source=("python-pylast-${pkgver}.tar.gz::https://github.com/pylast/pylast/archive/${pkgver}.tar.gz") -sha256sums=('d82f57c7d1ecccfe6ab8137cae7bee7bb591b4d9f829704eea2a11271e200a94') +depends=('python-six') +makedepends=('git' 'python-setuptools') +source=("git+https://github.com/pylast/pylast.git#tag=${pkgver}") +sha256sums=('SKIP') -prepare() { - cp -r {,python-}pylast-${pkgver} - mv {,python2-}pylast-${pkgver} -} +build() { + cd pylast -build() { - for py in python{,2}; do - pushd ${py}-pylast-${pkgver} - ${py} setup.py build - popd - done + python setup.py build } package_python-pylast() { - depends=('python-six') + cd pylast - cd python-pylast-${pkgver} - python setup.py install --root="${pkgdir}" --optimize='1' --skip-build } -package_python2-pylast() { - depends=('python2-six') - - cd python2-pylast-${pkgver} - - python2 setup.py install --root="${pkgdir}" --optimize='1' --skip-build -} - # vim: ts=2 sw=2 et:
