updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / pygowave-erlang-rpc / PKGBUILD
blob4126c56cf9607caf474c8bfc27cc7df994e37ce8
1 # Contributor: Patrick Schneider <patrick.p2k.schneider@gmail.com>
2 pkgname=pygowave-erlang-rpc
3 pkgver=0.4.1
4 pkgrel=1
5 pkgdesc="PyGoWave RPC Server written in Erlang"
6 arch=('i686' 'x86_64')
7 url="http://github.com/p2k/pygowave"
8 license=('APACHE')
9 depends=('erlang' 'mysql')
10 optdepends=('rabbitmq: Scalable message broker' 'rabbitmq-stomp: Allows PyGoWave Erlang RPC to use it')
11 backup=(etc/pygowave-erlang-rpc.conf)
12 options=()
13 source=(http://github.com/p2k/pygowave/tarball/v$pkgver pygowave-erlang-rpc.conf)
14 md5sums=('8e35814dcf245c1db61739c12fc636e0'
15          '86bd59d8e69e8bdd2ce1807c4e751c7f')
17 build() {
18   cd "$srcdir"/p2k-pygowave-*
20   cd pygowave_erlang_rpc
21   msg "Compiling application..."
22   make || return 1
24   msg "Installing application..."
25   make DESTDIR="$pkgdir/usr" install || return 1
26   cd ..
28   msg "Installing rc script & config..."
29   install -Dm 755 linux_support/rc_script/pygowave-erlang-rpc "$pkgdir/etc/rc.d/pygowave-erlang-rpc"
30   install -m 644 "$srcdir/pygowave-erlang-rpc.conf" "$pkgdir/etc/pygowave-erlang-rpc.conf"