mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
51 lines
1.3 KiB
Bash
51 lines
1.3 KiB
Bash
|
# $Id$
|
||
|
# Maintainer: Felix Yan <felixonmars@gmail.com>
|
||
|
# Contributor: Thomas Dziedzic < gostrc at gmail >
|
||
|
|
||
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||
|
# - remove when bumped upstream
|
||
|
|
||
|
pkgname=('python-tornado' 'python2-tornado')
|
||
|
pkgver=3.2.0
|
||
|
pkgrel=1
|
||
|
pkgdesc='open source version of the scalable, non-blocking web server and tools'
|
||
|
arch=('i686' 'x86_64')
|
||
|
url='http://www.tornadoweb.org/'
|
||
|
license=('Apache')
|
||
|
makedepends=('python-setuptools' 'python2-setuptools' 'python2-backports.ssl_match_hostname')
|
||
|
source=("https://github.com/facebook/tornado/archive/v${pkgver}.tar.gz")
|
||
|
|
||
|
build() {
|
||
|
cd "$srcdir"
|
||
|
cp -r tornado-${pkgver} python2-tornado-${pkgver}
|
||
|
|
||
|
cd tornado-${pkgver}
|
||
|
|
||
|
python setup.py build
|
||
|
|
||
|
cd ../python2-tornado-${pkgver}
|
||
|
|
||
|
# python -> python2 rename
|
||
|
find -name '*py' -exec sed -e 's_#!/usr/bin/env python_&2_' -i {} \;
|
||
|
|
||
|
python2 setup.py build
|
||
|
}
|
||
|
|
||
|
package_python-tornado() {
|
||
|
depends=('python')
|
||
|
|
||
|
cd "$srcdir/tornado-${pkgver}"
|
||
|
|
||
|
python setup.py install --root="${pkgdir}" --optimize=1
|
||
|
}
|
||
|
|
||
|
package_python2-tornado() {
|
||
|
depends=('python2' 'python2-backports.ssl_match_hostname')
|
||
|
|
||
|
cd "$srcdir/python2-tornado-${pkgver}"
|
||
|
|
||
|
python2 setup.py install --root="${pkgdir}" --optimize=1
|
||
|
}
|
||
|
|
||
|
sha512sums=('1703178be34060a6c36e9e0aa742b87ad905dfb0f565e43a1158edfe5c7800fe35aff9168b60aabd3b831b339af6ef95aaa144a9fb167c5d93f548eb59fc2557')
|