updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / pygowave / PKGBUILD
blobe0f0d3ebcb68cd3339740341b24a2fed8924e72f
1 # Contributor: Patrick Schneider <patrick.p2k.schneider@gmail.com>
2 pkgname=pygowave
3 pkgver=0.4
4 pkgrel=9
5 pkgdesc="Open source Wave implementation in Python"
6 arch=('i686' 'x86_64')
7 url="http://github.com/p2k/pygowave"
8 license=('APACHE')
9 depends=('twisted>=8.2.0' 'orbited' 'pil' 'django>=1.0' 'django-registration>=0.8' 'python-simplejson' 'demjson' 'python-anyjson' 'python-uuid')
10 optdepends=('python-lxml: For Gadgets support' 'rabbitmq: Scalable message broker' 'rabbitmq-stomp: Allows PyGoWave to use it')
11 makedepends=('setuptools')
12 backup=()
13 options=()
14 install=pygowave.install
15 source=(http://github.com/p2k/$pkgname/tarball/v$pkgver)
16 md5sums=('0748c9f86b1de6f3966c0fc29ea77c1a')
18 build() {
19   cd "$srcdir"/p2k-pygowave-*
21   python setup.py build || return 1
22   python setup.py install --root="$pkgdir" || return 1
24   msg "Installing scripts"
25   install -m 644 -D amqp_rpc_server.py "$pkgdir/srv/http/pygowave/amqp_rpc_server.py"
26   install -m 644 pygowave-web.wsgi "$pkgdir/srv/http/pygowave/pygowave-web.wsgi"
27   install -m 644 pygowave-web.tac "$pkgdir/srv/http/pygowave/pygowave-web.tac"
28   install -m 644 pygowave-rpc.tac "$pkgdir/srv/http/pygowave/pygowave-rpc.tac"
29   install manage.py "$pkgdir/srv/http/pygowave/manage.py"
30   install launch-pygowave-rpc "$pkgdir/srv/http/pygowave/launch-pygowave-rpc"
31   install -D linux_support/rc_script/pygowave-web "$pkgdir/etc/rc.d/pygowave-web"
32   install -D linux_support/rc_script/pygowave-rpc "$pkgdir/etc/rc.d/pygowave-rpc"
34   msg "Installing additional templates, locales, media and others"
35   mkdir -p "$pkgdir/usr/share/pygowave"
36   cp -R templates "$pkgdir/usr/share/pygowave"
37   cp -R locale "$pkgdir/usr/share/pygowave"
38   cp -R media "$pkgdir/usr/share/pygowave"
39   cp urls.py settings-template-development.py settings-template-production.py orbited.cfg "$pkgdir/usr/share/pygowave"