[arch-commits] Commit in python-bottle/repos (2 files)
Felix Yan
fyan at nymeria.archlinux.org
Mon Mar 17 04:28:48 UTC 2014
Date: Monday, March 17, 2014 @ 05:28:48
Author: fyan
Revision: 107325
archrelease: copy trunk to community-staging-any
Added:
python-bottle/repos/community-staging-any/
python-bottle/repos/community-staging-any/PKGBUILD
(from rev 107324, python-bottle/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: python-bottle/repos/community-staging-any/PKGBUILD (from rev 107324, python-bottle/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2014-03-17 04:28:48 UTC (rev 107325)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Contributor: Richard Murri <admin at richardmurri.com>
+# Contributor: Farhad Shahbazi <farhad at enthusiasm.cc>
+# Contributor: Felix Kaiser <felix.kaiser at fxkr.net>
+
+pkgbase=python-bottle
+pkgname=("python-bottle" "python2-bottle")
+pkgver=0.12.5
+pkgrel=2
+pkgdesc="A fast and simple micro-framework for small web-applications"
+arch=(any)
+url="http://bottlepy.org"
+license=('MIT')
+options=(!emptydirs)
+makedepends=('python3' 'python2' 'git')
+source=("git+https://github.com/defnull/bottle.git#tag=${pkgver}")
+
+prepare() {
+ cp -r "bottle" "python2-bottle"
+ sed -i "1s/python/python2/" python2-bottle/bottle.py
+}
+
+package_python-bottle() {
+ depends=('python3')
+
+ cd bottle
+ python3 setup.py install --root="${pkgdir}" --optimize=1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/python-bottle/LICENSE"
+}
+
+package_python2-bottle() {
+ depends=('python2')
+
+ cd python2-bottle
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/python2-bottle/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