summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 01e22188bea4cb770cdf14b5ecdb494971dafe43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#Maintainer: ParadoxSpiral <skullduggery@riseup.net>
#Contributor: David Campbell <davekong@archlinux.us>
#Contributor: Cilyan Olowen <gaknar@gmail.com>
#Contributor: AXilleas Pipinellis <axilleas archlinux.gr>
pkgname=python2-pylons
pkgver=1.0.3
pkgrel=1
pkgdesc='A lightweight web framework emphasizing flexibility and rapid development.'
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=(https://pypi.python.org/packages/source/P/Pylons/Pylons-${pkgver}.tar.gz)
replaces=('python-pylons')
sha512sums=('2f774a99203f80226a95afe2240bfbc833fae71a6273df9225938741cf494ada2d676c80a43bba21fb616b9ab53ee15cfd895a394b092b287774f648f8336b84')

package() {
  cd $srcdir/Pylons-${pkgver}
  python2 setup.py install --root=$pkgdir/ --optimize=1
  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')
}