1 # Maintainer: Tobias T. <OldShatterhand at gmx-topmail dot de>
6 pkgdesc="Libraries for Bible programs"
8 url="http://www.crosswire.org/sword/index.jsp"
10 depends=('curl' 'clucene-old' 'swig')
13 provides=('sword=1.6.2')
14 backup=('etc/sword.conf')
15 source=("http://www.crosswire.org/ftpmirror/pub/sword/source/v1.6/sword-${pkgver}.tar.gz" curl.patch)
16 md5sums=('a7dc4456e20e915fec46d774b690e305'
17 'e84a226ce3697af33b9fdd9a22884a2a')
20 cd "${srcdir}"/sword-$pkgver
21 patch -p1 < $srcdir/curl.patch
23 [[ -d build ]] || mkdir build
25 cmake ../sword-${pkgver} \
26 -DCMAKE_INSTALL_PREFIX=/usr \
27 -DCMAKE_BUILD_TYPE=Release
33 make DESTDIR="${pkgdir}" install
35 # Ugly workarounds to fix a weird cmakelists.txt
36 install -d "${pkgdir}"/usr/lib/sword
37 #mv "${pkgdir}"/usr/lib/1.6.2_icu_4.8 "${pkgdir}"/usr/lib/sword/
39 cd "${srcdir}"/sword-${pkgver}/locales.d/
40 for file in *.conf; do
41 install -Dm644 $file "${pkgdir}"/usr/share/sword/locales.d/$file
45 install -d "${pkgdir}"/usr/include/sword
46 install -Dm644 canon_{catholic{,2},synodalp}.h "${pkgdir}"/usr/include/sword
49 install -Dm644 mods.d/globals.conf "${pkgdir}"/usr/share/sword/mods.d/globals.conf
50 install -Dm644 recommended/sword.conf "${pkgdir}"/etc/sword.conf