[arch-commits] Commit in python-bottle/trunk (PKGBUILD)

Felix Yan fyan at archlinux.org
Mon Dec 29 03:52:59 UTC 2014


    Date: Monday, December 29, 2014 @ 04:52:59
  Author: fyan
Revision: 124804

upgpkg: python-bottle 0.12.8-1

upstream new release

Modified:
  python-bottle/trunk/PKGBUILD

----------+
 PKGBUILD |   21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-12-29 00:36:36 UTC (rev 124803)
+++ PKGBUILD	2014-12-29 03:52:59 UTC (rev 124804)
@@ -6,8 +6,8 @@
 
 pkgbase=python-bottle
 pkgname=("python-bottle" "python2-bottle")
-pkgver=0.12.7
-pkgrel=2
+pkgver=0.12.8
+pkgrel=1
 pkgdesc="A fast and simple micro-framework for small web-applications"
 arch=(any)
 url="http://bottlepy.org"
@@ -19,17 +19,18 @@
               'python2-twisted' 'python-tornado' 'python2-tornado'
               'python2-paste' 'python2-gevent')
 source=("git+https://github.com/defnull/bottle.git#tag=${pkgver}")
+sha512sums=('SKIP')
 
 prepare() {
-  cp -r "bottle" "python2-bottle"
-  sed -i "1s/python/python2/" python2-bottle/bottle.py
+  cp -a bottle{,-py2}
+  sed -i "1s/python/python2/" bottle-py2/bottle.py
 }
 
 check() {
-  cd bottle
+  cd "$srcdir/bottle"
   python test/testall.py
 
-  cd ../python2-bottle
+  cd "$srcdir/bottle-py2"
   python2 test/testall.py
 }
 
@@ -38,18 +39,16 @@
 
   cd bottle
   python3 setup.py install --root="${pkgdir}" --optimize=1
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/python-bottle/LICENSE"
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
 
 package_python2-bottle() {
   depends=('python2')
 
-  cd python2-bottle
+  cd bottle-py2
   python2 setup.py install --root="${pkgdir}" --optimize=1
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/python2-bottle/LICENSE"
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 
   # deal with conflict with python-bottle's /usr/bin/bottle.py
   mv "$pkgdir/usr/bin/bottle.py"{,2}
 }
-
-sha512sums=('SKIP')



More information about the arch-commits mailing list