From 17dec629d8a13d1981d734ddc703efb5382ca309 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 21 Jun 2011 23:04:10 +0000 Subject: Tue Jun 21 23:04:10 UTC 2011 --- community/sword/PKGBUILD | 40 +++++++++++++++++++++++++++++++--------- 1 file changed, 31 insertions(+), 9 deletions(-) (limited to 'community/sword') diff --git a/community/sword/PKGBUILD b/community/sword/PKGBUILD index 0ad02180e..a101bb01d 100644 --- a/community/sword/PKGBUILD +++ b/community/sword/PKGBUILD @@ -1,26 +1,48 @@ +# $Id: PKGBUILD 49750 2011-06-20 22:08:06Z andrea $ # Maintainer: Stefan Husmann # Contributor: TripleE pkgname=sword pkgver=1.6.2 -pkgrel=3 +pkgrel=4 pkgdesc="SWORD libraries for Bible programs" arch=('i686' 'x86_64') url="http://www.crosswire.org/sword/index.jsp" license=('GPL') -depends=('curl' 'icu' 'clucene') -source=(http://www.crosswire.org/ftpmirror/pub/${pkgname}/source/v1.6/${pkgname}-${pkgver}.tar.gz) -md5sums=('a7dc4456e20e915fec46d774b690e305') +depends=('curl' 'icu' 'clucene' 'swig') +makedepends=('cmake') backup=('etc/sword.conf') +source=("http://www.crosswire.org/ftpmirror/pub/${pkgname}/source/v1.6/${pkgname}-${pkgver}.tar.gz") +md5sums=('a7dc4456e20e915fec46d774b690e305') build() { - cd "${srcdir}/${pkgname}-${pkgver}" - ./configure --prefix=/usr --sysconfdir=/etc --with-icu + cd "${srcdir}" + mkdir build + cd build + cmake ../${pkgname}-${pkgver} \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release make } + package() { - cd "${srcdir}/${pkgname}-${pkgver}" + cd "${srcdir}"/build make DESTDIR="${pkgdir}" install - make DESTDIR="${pkgdir}" install_config -} + # Ugly workarounds to fix a weird cmakelists.txt + install -d "${pkgdir}"/usr/lib/sword + mv "${pkgdir}"/usr/lib/1.6.2_icu_4.8 "${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 +} -- cgit v1.2.3-54-g00ecf