Date: Sunday, March 14, 2021 @ 20:22:33 Author: jelle Revision: 891298
Drop python2-bottle Modified: python-bottle/trunk/PKGBUILD ----------+ PKGBUILD | 29 +++++------------------------ 1 file changed, 5 insertions(+), 24 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2021-03-14 20:16:50 UTC (rev 891297) +++ PKGBUILD 2021-03-14 20:22:33 UTC (rev 891298) @@ -3,26 +3,21 @@ # Contributor: Farhad Shahbazi <far...@enthusiasm.cc> # Contributor: Felix Kaiser <felix.kai...@fxkr.net> -pkgbase=python-bottle -pkgname=("python-bottle" "python2-bottle") +pkgname=python-bottle pkgver=0.12.19 -pkgrel=2 +pkgrel=3 pkgdesc="A fast and simple micro-framework for small web-applications" arch=(any) url="https://bottlepy.org" license=('MIT') options=(!emptydirs) -makedepends=('python-setuptools' 'python2-setuptools' 'git') +depends=('python') +makedepends=('python-setuptools' 'git') checkdepends=('python-mako' 'python-jinja' 'python-cherrypy' 'python-twisted' 'python-tornado' 'python-paste' 'python-gevent' 'python-eventlet') source=("$pkgname-$pkgver.tar.gz::https://github.com/defnull/bottle/archive/$pkgver.tar.gz") sha512sums=('58f2510c9982867b4a8aec217a3aefd7784e2384176b13ab3d2558a838e9af88563ceaa5bdbad675c5086a995d034c20146b146b6bd35505357fd8557dc3dd09') -prepare() { - cp -a bottle-$pkgver{,-py2} - sed -i "1s/python/python2/" bottle-$pkgver-py2/bottle.py -} - check() { cd "$srcdir"/bottle-$pkgver # https://github.com/bottlepy/bottle/issues/791 @@ -32,26 +27,12 @@ build() { cd "$srcdir"/bottle-$pkgver python setup.py build - cd "$srcdir"/bottle-$pkgver-py2 - python2 setup.py build } -package_python-bottle() { - depends=('python') - +package() { cd bottle-$pkgver python setup.py install --root="$pkgdir" --optimize=1 --skip-build install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } -package_python2-bottle() { - depends=('python2') - - cd bottle-$pkgver-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE - - mv "$pkgdir"/usr/bin/bottle.py{,2} -} - # vim: ts=2 sw=2 et: