updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / opensrf / PKGBUILD
blob08546d4838925f81512e8fb47fa8a8a4bb62cc41
1 # Maintainer: Ben Webb <bjwebb67 at googlemail dot com>
2 pkgname=opensrf
3 pkgver=2.0.0
4 pkgrel=4
5 pkgdesc="A message routing network that offers scalability and failover support."
6 arch=('i686' 'x86_64')
7 url="http://evergreen-ils.org/opensrf.php"
8 license=('GPL')
9 depends=(autoconf \
10         automake \
11         ejabberd \
12         expat \
13         gcc \
14         gdbm \
15         apache \
16         less \
17         libgcrypt \
18         libmemcached \
19         libtool \
20         libxml2 \
21         python-lxml \
22         libxslt \
23         make \
24         memcached \
25         mod_perl \
26         ntp \
27         perl-cache-memcached \
28         perl-dbd-sqlite \
29         perl-datetime-format-builder \
30         perl-datetime-format-iso8601 \
31         perl-datetime-format-mail \
32         perl-datetime-set \
33         perl-error \
34         perl-freezethaw \
35         perl-json-xs \
36         perl-libwww \
37         perl-log-log4perl \
38         perl-module-build \
39         perl-net-jabber \
40         perl-net-server \
41         perl-template-toolkit \
42         perl-test-deep \
43         perl-test-exception \
44         perl-test-pod \
45         perl-tie-ixhash \
46         perl-xml-libxml \
47         perl-xml-libxslt \
48         perl-xml-simple \
49         psmisc \
50         python2 \
51         python-dnspython \
52         python-memcached \
53         python-simplejson \
54         readline \
55         perl-file-find-rule \
56         perl-rpc-xml \
57         perl-sql-abstract-limit \
58         perl-unix-syslog \
59         perl-universal-require )
60 install=($pkgname.install)
61 source=(http://evergreen-ils.org/downloads/$pkgname-$pkgver.tar.gz $pkgname.patch ejabberd.patch)
62 md5sums=('26e58f327142490c3e779dd108d81d6f' '484032a74fb1adcbb00f896f818e219c'
63     'af29caeb4a55fe2ca7a583ce12412074')
65 build() {
66     cd $pkgname-$pkgver
67     patch -Np1 -r - -i ../$pkgname.patch
68     ./configure --prefix=/opensrf --sysconfdir=/opensrf/conf --enable-python
69     make
72 package(){
73     cd $srcdir/$pkgname-$pkgver
74     make DESTDIR=$pkgdir install
75     mkdir -p "$pkgdir/opensrf/var/log" "$pkgdir/opensrf/var/run" "$pkgdir/opensrf/var/lock"
76     install -Dm644 ../ejabberd.patch ${pkgdir}/etc/ejabberd/opensrf.patch