2013-03-03 09:33:25 +08:00
|
|
|
# maintainer abveritas[at]chakra-project[dot]org>
|
|
|
|
|
|
|
|
pkgname=sword
|
|
|
|
pkgver=1.6.2
|
2013-10-05 23:18:28 +08:00
|
|
|
pkgrel=6
|
2013-03-03 09:33:25 +08:00
|
|
|
pkgdesc="SWORD libraries for Bible programs"
|
|
|
|
arch=('x86_64')
|
|
|
|
url="http://www.crosswire.org/sword/index.jsp"
|
|
|
|
license=('GPL')
|
|
|
|
depends=('curl' 'swig' 'clucene')
|
|
|
|
makedepends=('cmake')
|
|
|
|
backup=('etc/sword.conf')
|
|
|
|
source=("http://www.crosswire.org/ftpmirror/pub/${pkgname}/source/v1.6/${pkgname}-${pkgver}.tar.gz"
|
|
|
|
'curl.patch' 'multimap.patch')
|
|
|
|
md5sums=('a7dc4456e20e915fec46d774b690e305'
|
|
|
|
'e84a226ce3697af33b9fdd9a22884a2a'
|
|
|
|
'bf3f27c9c7adfc6a15100f6db0335f38')
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}"/$pkgname-$pkgver
|
|
|
|
patch -p1 -i $srcdir/curl.patch
|
|
|
|
patch -p1 -i $srcdir/multimap.patch
|
|
|
|
cd $srcdir
|
|
|
|
[[ -d build ]] || mkdir build
|
|
|
|
cd build
|
|
|
|
cmake ../${pkgname}-${pkgver} \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}"/build
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
|
|
|
|
# Ugly workarounds to fix a weird cmakelists.txt
|
|
|
|
install -d "${pkgdir}"/usr/lib/sword
|
|
|
|
mv "${pkgdir}"/usr/lib/1.6.2_icu_* "${pkgdir}"/usr/lib/sword/
|
|
|
|
|
|
|
|
cd "${srcdir}"/${pkgname}-${pkgver}/locales.d/
|
|
|
|
for file in *.conf; do
|
|
|
|
install -Dm644 $file "${pkgdir}"/usr/share/sword/locales.d/$file
|
|
|
|
done
|
|
|
|
|
|
|
|
cd ../include
|
|
|
|
install -d "${pkgdir}"/usr/include/sword
|
|
|
|
install -Dm644 canon_{catholic{,2},synodalp}.h "${pkgdir}"/usr/include/sword
|
|
|
|
|
|
|
|
cd ../samples
|
|
|
|
install -Dm644 mods.d/globals.conf "${pkgdir}"/usr/share/sword/mods.d/globals.conf
|
|
|
|
install -Dm644 recommended/sword.conf "${pkgdir}"/etc/sword.conf
|
|
|
|
}
|
|
|
|
|