updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / uwsgi / PKGBUILD
blobb5c72fd254c9a01c2b0567cc2ee47ea89bc0ae43
1 # Maintainer: Angel Velasquez <angvp@archlinux.org>  
2 # Contributor: Vsevolod Balashov <vsevolod@balashov.name>, Kevin Zuber <uKev@knet.eu>
3 pkgname=uwsgi
4 pkgver=1.0.1
5 pkgrel=3
6 pkgdesc="a fast (pure C), self-healing, developer-friendly WSGI server"
7 arch=(i686 x86_64)
8 url="http://projects.unbit.it/$pkgname"
9 license=(GPL2)
10 depends=(python2 libxml2)
11 conflicts=(python-$pkgname)
12 makedepends=(gcc python2)
13 backup=(etc/conf.d/uwsgid etc/uwsgi/uwsgi.ini)
14 source=(http://projects.unbit.it/downloads/$pkgname-$pkgver.tar.gz
15         uwsgid.sh
16         uwsgi.ini
17         uwsgid.conf)
18 md5sums=('6f0a92bc148c1e359638e1ea45199d3b'
19          '3dd03dce734b50910b3a5e12da0fc062'
20          '495afaafac6da631a859ab72c5983c36'
21          '5db37c7dbfd432623883d125d7127fbf')
23 build() {
24   cd $srcdir/$pkgname-$pkgver
25   CFLAGS='' make -f Makefile.Py27
28 package() {
29   cd $srcdir/$pkgname-$pkgver
30   mkdir -p $pkgdir/usr/bin
31   install -Dm755 uwsgi $pkgdir/usr/bin/uwsgi
32   mkdir -p $pkgdir/etc/rc.d
33   install -Dm755 $srcdir/uwsgid.sh $pkgdir/etc/rc.d/uwsgid
34   mkdir -p $pkgdir/etc/conf.d
35   install -Dm644 $srcdir/uwsgid.conf $pkgdir/etc/conf.d/uwsgid
36   mkdir -p $pkgdir/etc/uwsgi/apps
37   install -Dm644 $srcdir/uwsgi.ini $pkgdir/etc/uwsgi/uwsgi.ini