2012-03-12 21:04:39 +00:00
|
|
|
# Maintainer: Angel Velasquez <angvp@archlinux.org>
|
2011-03-27 16:11:24 +00:00
|
|
|
# Contributor: Vsevolod Balashov <vsevolod@balashov.name>, Kevin Zuber <uKev@knet.eu>
|
2012-03-12 21:04:39 +00:00
|
|
|
pkgname=uwsgi
|
2013-03-17 21:07:51 +00:00
|
|
|
pkgver=1.4.5
|
2011-02-16 15:12:59 +00:00
|
|
|
pkgrel=1
|
2011-03-27 16:11:24 +00:00
|
|
|
pkgdesc="a fast (pure C), self-healing, developer-friendly WSGI server"
|
2012-03-12 21:04:39 +00:00
|
|
|
arch=(i686 x86_64)
|
|
|
|
url="http://projects.unbit.it/$pkgname"
|
2011-02-16 15:12:59 +00:00
|
|
|
license=(GPL2)
|
2012-03-12 21:04:39 +00:00
|
|
|
depends=(python2 libxml2)
|
|
|
|
conflicts=(python-$pkgname)
|
|
|
|
makedepends=(gcc python2)
|
2012-10-13 22:34:39 +00:00
|
|
|
backup=(etc/conf.d/uwsgid etc/uwsgi/emperor.ini)
|
2012-03-12 21:04:39 +00:00
|
|
|
source=(http://projects.unbit.it/downloads/$pkgname-$pkgver.tar.gz
|
|
|
|
uwsgid.sh
|
2012-10-13 22:34:39 +00:00
|
|
|
emperor.ini
|
|
|
|
emperor.uwsgi.service
|
2012-03-12 21:04:39 +00:00
|
|
|
uwsgid.conf)
|
2013-03-17 21:07:51 +00:00
|
|
|
md5sums=('391ff016fe8d8dbd83e62e9b86e2406f'
|
2012-03-12 21:04:39 +00:00
|
|
|
'3dd03dce734b50910b3a5e12da0fc062'
|
|
|
|
'495afaafac6da631a859ab72c5983c36'
|
2012-10-13 22:34:39 +00:00
|
|
|
'85a7401c62dc4834259fc27d9c0703ee'
|
|
|
|
'a3ae324e43ba841aacd917542bd7e878')
|
2011-02-16 15:12:59 +00:00
|
|
|
|
|
|
|
build() {
|
2012-03-12 21:04:39 +00:00
|
|
|
cd $srcdir/$pkgname-$pkgver
|
2012-04-15 17:12:37 +00:00
|
|
|
python2 uwsgiconfig.py --build
|
2012-03-12 21:04:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $srcdir/$pkgname-$pkgver
|
2011-03-27 16:11:24 +00:00
|
|
|
mkdir -p $pkgdir/usr/bin
|
|
|
|
install -Dm755 uwsgi $pkgdir/usr/bin/uwsgi
|
2012-03-12 21:04:39 +00:00
|
|
|
mkdir -p $pkgdir/etc/rc.d
|
|
|
|
install -Dm755 $srcdir/uwsgid.sh $pkgdir/etc/rc.d/uwsgid
|
|
|
|
mkdir -p $pkgdir/etc/conf.d
|
|
|
|
install -Dm644 $srcdir/uwsgid.conf $pkgdir/etc/conf.d/uwsgid
|
|
|
|
mkdir -p $pkgdir/etc/uwsgi/apps
|
2012-10-13 22:34:39 +00:00
|
|
|
install -Dm644 $srcdir/emperor.ini $pkgdir/etc/uwsgi/emperor.ini
|
|
|
|
install -Dm644 $srcdir/emperor.uwsgi.service $pkgdir/etc/systemd/system/emperor.uwsgi.service
|
2011-02-16 15:12:59 +00:00
|
|
|
}
|