Date: Wednesday, June 3, 2015 @ 16:25:46 Author: fyan Revision: 134689
rename python-pathlib -> python2-pathlib Added: python2-pathlib/ Modified: python2-pathlib/trunk/PKGBUILD Deleted: python-pathlib/ ----------+ PKGBUILD | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) Modified: python2-pathlib/trunk/PKGBUILD =================================================================== --- python-pathlib/trunk/PKGBUILD 2015-05-30 14:01:09 UTC (rev 134362) +++ python2-pathlib/trunk/PKGBUILD 2015-06-03 14:25:46 UTC (rev 134689) @@ -2,34 +2,20 @@ # Maintainer: Felix Yan <[email protected]> # Contributor: vae77 <[email protected]> -pkgbase=python-pathlib -pkgname=(python-pathlib python2-pathlib) +pkgname=python2-pathlib pkgver=1.0.1 -pkgrel=2 +pkgrel=3 pkgdesc="This module offers a set of classes featuring all the common operations on paths in an easy, object-oriented way" arch=('any') url="http://pathlib.readthedocs.org/en/${pkgver}/" license=('MIT') -makedepends=('python-setuptools' 'python2-setuptools') +depends=('python2') +makedepends=('python2-setuptools') source=("http://pypi.python.org/packages/source/p/pathlib/pathlib-${pkgver}.tar.gz") md5sums=('5099ed48be9b1ee29b31c82819240537') -prepare() { - cp -a pathlib-$pkgver{,-py2} -} - -package_python-pathlib() { - depends=('python') - +package() { cd "$srcdir/pathlib-$pkgver" - python setup.py install --root="$pkgdir/" --optimize=1 - install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt" -} - -package_python2-pathlib() { - depends=('python2') - - cd "$srcdir/pathlib-$pkgver-py2" python2 setup.py install --root="$pkgdir/" --optimize=1 install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt" }
