summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2019-02-27 11:32:36 +0100
committerAndreas Grapentin <andreas@grapentin.org>2019-02-27 11:33:40 +0100
commitb29be84b1b8830c5153cfd89f21e754f634642b1 (patch)
treea7d3602d29dda0719302f795322b964385c2e820 /pcr
parent8b1889b2d6d43698be4a9ec2b081ed7ee5ae57e4 (diff)
pcr/python-pylons: updated to 1.0.3
Diffstat (limited to 'pcr')
-rw-r--r--pcr/python2-pylons/PKGBUILD46
1 files changed, 23 insertions, 23 deletions
diff --git a/pcr/python2-pylons/PKGBUILD b/pcr/python2-pylons/PKGBUILD
index e8016fcb9..39e2180c2 100644
--- a/pcr/python2-pylons/PKGBUILD
+++ b/pcr/python2-pylons/PKGBUILD
@@ -1,31 +1,31 @@
-#Maintainer (Arch): ParadoxSpiral <skullduggery@riseup.net>
-#Contributor (Arch): David Campbell <davekong@archlinux.us>
-#Contributor (Arch): Cilyan Olowen <gaknar@gmail.com>
-#Contributor (Arch): AXilleas Pipinellis <axilleas archlinux.gr>
#Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
-pkgname=python2-pylons
-pkgver=1.0.1
-pkgrel=2
+
+_pkgname=Pylons
+pkgname=(python-${_pkgname,,})
+pkgver=1.0.3
+pkgrel=1
pkgdesc='A lightweight web framework emphasizing flexibility and rapid development.'
-arch=('any')
+arch=(any)
url='http://pylonsproject.com/'
license=('BSD')
-depends=('python2' 'python2-routes>=1.12' 'python2-webhelpers>=0.6.4'
- 'python2-beaker>=1.3' 'python2-paste>=1.7.2' 'python2-paste-deploy>=1.3.3'
- 'python2-paste-script>=1.7.3' 'python2-formencode>=1.2.1'
- 'python2-simplejson>=2.0.8' 'python2-decorator>=2.3.2' 'python2-nose>=0.10.4'
- 'python2-mako>=0.2.4' 'python2-webob>=0.9.6.1' 'python2-weberror>=0.10.1'
- 'python2-webtest>=1.1' 'python2-tempita>=0.2')
-makedepends=('python2-distribute')
-source=(http://pypi.python.org/packages/source/P/Pylons/Pylons-${pkgver}.tar.gz)
-replaces=('python-pylons')
-md5sums=('6cb880d75fa81213192142b07a6e4915')
-package() {
- cd $srcdir/Pylons-${pkgver}
- python2 setup.py install --root=$pkgdir/ --optimize=1
- install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+_depends=(routes webhelpers beaker paste paste-deploy paste-script formencode
+ simplejson decorator nose mako webob weborror webtest tempita)
+makedepends=(python{,2}-setuptools)
+source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
+sha256sums=('49291401cef1bea680499dd5e3b5906cfdfe52d65f6f396f6f6b90842ff70da8')
+
+_package() {
+ depends=("$1" "${_depends[@]/#/$1-}")
+ cd "$srcdir"/$_pkgname-$pkgver
+ $1 setup.py install --root="$pkgdir"
+
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
-e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
- $(find $pkgdir -name '*.py')
+ $(find "$pkgdir" -name '*.py')
}
+
+for _pkg in "${pkgname[@]}"; do
+ eval "package_$_pkg () { _package ${_pkg%%-*}; }"
+done