updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / evergreen-ils / PKGBUILD
blobeead3c8614b0522ce9c10471e9505779745609bc
1 # Maintainer: Ben Webb <bjwebb67 at googlemail dot com>
2 pkgname="evergreen-ils"
3 true && pkgname=(evergreen-ils evergreen-ils-client)
4 pkgver=2.0.7
5 pkgrel=3
6 pkgdesc="A highly-scalable software for libraries."
7 arch=('i686' 'x86_64')
8 url="http://evergreen-ils.org/"
9 license=('GPL')
10 depends=(opensrf \
11         aspell \
12         aspell-en \
13         libdbi \
14         libdbi-drivers \
15         libssh2 \
16         ncurses \
17         perl-dbd-pg \
18         perl-email-send \
19         perl-text-csv
20         postgresql \
21         readline \
22         tcp_wrappers \
23         wget \
24         yaz \
25         perl-business-isbn \
26         perl-business-isbn-data \
27         perl-gdgraph-3d \
28         perl-ole-storage-lite \
29         perl-spreadsheet-writeexcel \
30         perl-text-aspell \
31         perl-text-csv-xs \
32         perl-business-creditcard \
33         perl-net-ssh2 \
34         perl-library-callnumber-lc \
35         perl-uuid-tiny \
36         perl-json-xs \
37         perl-marc-record \
38         perl-marc-file-xml \
39         perl-javascript-spidermonkey \
40         perl-class-dbi-frozen-301 \
41         perl-business-edi \
42         perl-class-trigger \
43         perl-net-z3950-zoom \
44         perl-class-data-inheritable \
45         perl-universal-moniker \
46         perl-marc-charset
48 install=($pkgname.install)
49 source=(http://evergreen-ils.org/downloads/Evergreen-ILS-$pkgver.tar.gz $pkgname.patch)
50 md5sums=('c766834d23a711404b62f4500c1b8e37' 'b48fd6f58c36d6d62807d14960c64e76')
52 build() {
53     cd "$srcdir/Evergreen-ILS-$pkgver"
54     patch -Np1 -r - -i ../$pkgname.patch
55     ./autogen.sh
56     ./configure --with-opensrf-headers=/opensrf/include/ \
57     --with-opensrf-libs=/opensrf/lib/ --enable-python
58     make
61 package_evergreen-ils() {
62     cd "$srcdir/Evergreen-ILS-$pkgver"
63     mkdir -p "$pkgdir/etc/httpd/conf/"
64     mkdir -p "$pkgdir/openils/var/run" "$pkgdir/openils/var/lock" "$pkgdir/openils/var/log"
65     chmod a+w "$pkgdir/openils/var/log"
66     ln -s "/opensrf/conf" "$pkgdir/openils/conf"
67     mkdir -p "$pkgdir/var/log"; ln -s "/var/log/httpd" "$pkgdir/var/log/apache2"
68     cp -r Open-ILS/src/support-scripts "$pkgdir/openils"
69     cp -r Open-ILS/src/extras "$pkgdir/openils"
70     cp -r Open-ILS/src/sql "$pkgdir/openils"
71     make STAFF_CLIENT_BUILD_ID=rel_2_0_7 DESTDIR=$pkgdir install
72     install Open-ILS/examples/apache/eg.conf       ${pkgdir}/etc/httpd/conf/
73     install Open-ILS/examples/apache/eg_vhost.conf ${pkgdir}/etc/httpd/
74     install Open-ILS/examples/apache/startup.pl    ${pkgdir}/etc/httpd/
75     
76     mkdir -p $pkgdir/opensrf/lib/
77     for f in `ls $pkgdir/openils/lib`
78         do ln -s /openils/lib/$f $pkgdir/opensrf/lib/
79     done
82 package_evergreen-ils-client() {
83     install=
84     depends=(xulrunner-1.9)
85     mkdir -p "${pkgdir}/openils/"
86     cp -r "${srcdir}/Evergreen-ILS-$pkgver/Open-ILS/xul/staff_client/build" "${pkgdir}/openils/client"