1 # Maintainer: Ben Webb <bjwebb67 at googlemail dot com>
2 pkgname="evergreen-ils"
3 true && pkgname=(evergreen-ils evergreen-ils-client)
6 pkgdesc="A highly-scalable software for libraries."
8 url="http://evergreen-ils.org/"
26 perl-business-isbn-data \
28 perl-ole-storage-lite \
29 perl-spreadsheet-writeexcel \
32 perl-business-creditcard \
34 perl-library-callnumber-lc \
39 perl-javascript-spidermonkey \
40 perl-class-dbi-frozen-301 \
44 perl-class-data-inheritable \
45 perl-universal-moniker \
48 install=($pkgname.install)
49 source=(http://evergreen-ils.org/downloads/Evergreen-ILS-$pkgver.tar.gz $pkgname.patch)
50 md5sums=('c766834d23a711404b62f4500c1b8e37' 'b48fd6f58c36d6d62807d14960c64e76')
53 cd "$srcdir/Evergreen-ILS-$pkgver"
54 patch -Np1 -r - -i ../$pkgname.patch
56 ./configure --with-opensrf-headers=/opensrf/include/ \
57 --with-opensrf-libs=/opensrf/lib/ --enable-python
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/
76 mkdir -p $pkgdir/opensrf/lib/
77 for f in `ls $pkgdir/openils/lib`
78 do ln -s /openils/lib/$f $pkgdir/opensrf/lib/
82 package_evergreen-ils-client() {
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"