diff options
Diffstat (limited to 'community/sword')
-rw-r--r-- | community/sword/PKGBUILD | 37 |
1 files changed, 22 insertions, 15 deletions
diff --git a/community/sword/PKGBUILD b/community/sword/PKGBUILD index 70d7a4ca4..8b018f58a 100644 --- a/community/sword/PKGBUILD +++ b/community/sword/PKGBUILD @@ -1,11 +1,13 @@ -# $Id: PKGBUILD 60193 2011-12-07 12:16:33Z arodseth $ +# $Id: PKGBUILD 68590 2012-03-28 20:56:27Z arodseth $ # Maintainer: Alexander Rødseth +# Contributor: Andrea Scarpino # Contributor: Stefan Husmann <stefan-husmann@t-online.de> # Contributor: TripleE <eric1548@yahoo.com> + pkgname=sword pkgver=1.6.2 -pkgrel=6 -pkgdesc="Libraries for Bible programs" +pkgrel=8 +pkgdesc="Library for Bible study programs" arch=('x86_64' 'i686') url="http://www.crosswire.org/sword/" license=('GPL') @@ -13,9 +15,9 @@ depends=('curl' 'clucene' 'swig') makedepends=('cmake') backup=('etc/sword.conf') source=("http://www.crosswire.org/ftpmirror/pub/$pkgname/source/v1.6/$pkgname-$pkgver.tar.gz" - curl.patch) -md5sums=('a7dc4456e20e915fec46d774b690e305' - 'e84a226ce3697af33b9fdd9a22884a2a') + "curl.patch") +sha256sums=('af76c7d54135c444b09eeaafb49229ef5201a4e1d44539d9341dceaeb60a87b9' + '3c2676b6dc1d56b08b2532f46af32c54e91ea71ed92a5d7a30ee29ed7ff09124') build() { cd "$srcdir/$pkgname-$pkgver" @@ -25,11 +27,11 @@ build() { mkdir ../build cd ../build - cmake "../$pkgname-$pkgver" \ + CXXFLAGS=-fpermissive cmake "../$pkgname-$pkgver" \ -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_BUILD_TYPE=Release - - make + -DCMAKE_BUILD_TYPE=Release \ + -DSWORD_GLOBAL_CONF_DIR=/etc + make } package() { @@ -38,20 +40,25 @@ package() { make DESTDIR="$pkgdir" install install -d "$pkgdir/usr/lib/sword" - mv "$pkgdir"/usr/lib/1.6.2_icu_4.8* "$pkgdir/usr/lib/sword/" + mv "$pkgdir"/usr/lib/${pkgver}_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" + 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" + 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" + install -Dm644 mods.d/globals.conf \ + "$pkgdir/usr/share/sword/mods.d/globals.conf" + install -Dm644 recommended/sword.conf \ + "$pkgdir/etc/sword.conf" } # vim:set ts=2 sw=2 et: |