PKGBUILDs/aur/uwsgi/PKGBUILD
Kevin Mihelich b69706c29d aur updates
2013-05-05 20:15:22 +00:00

33 lines
1.1 KiB
Bash

# Maintainer: Angel Velasquez <angvp@archlinux.org>
# Contributor: Vsevolod Balashov <vsevolod@balashov.name>, Kevin Zuber <uKev@knet.eu>
pkgname=uwsgi
pkgver=1.9.8
pkgrel=3
pkgdesc="a fast (pure C), self-healing, developer-friendly WSGI server"
arch=(i686 x86_64)
url="http://projects.unbit.it/$pkgname"
license=(GPL2)
depends=(python2 libxml2)
conflicts=(python-$pkgname)
makedepends=(gcc python2)
backup=(etc/uwsgi/emperor.ini)
source=(http://projects.unbit.it/downloads/$pkgname-$pkgver.tar.gz
emperor.ini
emperor.uwsgi.service)
md5sums=('f9844674deb5da5565620a53c4b230d1'
'495afaafac6da631a859ab72c5983c36'
'a9788b2f174a7ab38c58c702be4513e8')
build() {
cd $srcdir/$pkgname-$pkgver
python2 uwsgiconfig.py --build
}
package() {
cd $srcdir/$pkgname-$pkgver
mkdir -p $pkgdir/usr/bin
install -Dm755 uwsgi $pkgdir/usr/bin/uwsgi
mkdir -p $pkgdir/etc/uwsgi/apps
install -Dm644 $srcdir/emperor.ini $pkgdir/etc/uwsgi/emperor.ini
install -Dm644 $srcdir/emperor.uwsgi.service $pkgdir/usr/lib/systemd/system/emperor.uwsgi.service
}