Date: Monday, October 20, 2014 @ 00:45:36 Author: eric Revision: 224843
upgpkg: pycups 1.9.68-1 Upstream update, Add python 3 support Modified: pycups/trunk/PKGBUILD ----------+ PKGBUILD | 38 +++++++++++++++++++++++++------------- 1 file changed, 25 insertions(+), 13 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2014-10-19 22:26:43 UTC (rev 224842) +++ PKGBUILD 2014-10-19 22:45:36 UTC (rev 224843) @@ -3,28 +3,40 @@ # Contributor: nesl247 <nesl...@gmail.com> pkgbase=pycups -pkgname=python2-pycups -_pypiname=pycups -pkgver=1.9.66 -pkgrel=2 -pkgdesc="Python CUPS Bindings" +pkgname=('python2-pycups' 'python-pycups') +pkgver=1.9.68 +pkgrel=1 arch=('i686' 'x86_64') url="http://cyberelk.net/tim/software/pycups/" license=('GPL') -depends=('libcups' 'python2') -provides=('pycups') -conflicts=('pycups') -replaces=('pycups') -source=(http://cyberelk.net/tim/data/${_pypiname}/${_pypiname}-${pkgver}.tar.bz2{,.asc}) -md5sums=('a6cc4d40ac908dd9182ed93739b4bb79' +makedepends=('libcups' 'python2' 'python') +source=(http://cyberelk.net/tim/data/${pkgbase}/${pkgbase}-${pkgver}.tar.bz2{,.asc}) +md5sums=('eae8a0a3cb0925eb6b1db8cb4645f3a3' 'SKIP') +prepare() { + cp -r ${pkgbase}-${pkgver} ${pkgbase}-${pkgver}-python2 +} + build() { - cd ${_pypiname}-${pkgver} + cd ${pkgbase}-${pkgver} + python setup.py build + cd "${srcdir}"/${pkgbase}-${pkgver}-python2 python2 setup.py build } package_python2-pycups() { - cd ${_pypiname}-${pkgver} + pkgdesc="Python 2 CUPS Bindings" + depends=('libcups' 'python2') + + cd ${pkgbase}-${pkgver}-python2 python2 setup.py install --root="${pkgdir}" --optimize=1 } + +package_python-pycups() { + pkgdesc="Python 3 CUPS Bindings" + depends=('libcups' 'python') + + cd ${pkgbase}-${pkgver} + python setup.py install --root="${pkgdir}" --optimize=1 +}