summaryrefslogtreecommitdiff
path: root/community/sword
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-03-30 10:35:40 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2012-03-30 10:35:40 +0200
commit1addb62992395c33a9762e6b68259c59fa0c96f4 (patch)
tree00d001e3a93cfb3a3b1f27f9cd52fcb58bb70999 /community/sword
parent2d0e587bd1c7ac060a95a0e20cfe00ab19db7e14 (diff)
parent263884f95012e159a0be10444ef96bbf56e70545 (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/sword/PKGBUILD extra/imagemagick/PKGBUILD gnome-unstable/empathy/PKGBUILD gnome-unstable/gcr/PKGBUILD gnome-unstable/gnome-dictionary/PKGBUILD gnome-unstable/gnome-keyring/PKGBUILD gnome-unstable/gnome-screenshot/PKGBUILD gnome-unstable/gnome-terminal/PKGBUILD gnome-unstable/gucharmap/PKGBUILD gnome-unstable/gucharmap/gucharmap.install gnome-unstable/libgnome-keyring/PKGBUILD gnome-unstable/librsvg/PKGBUILD gnome-unstable/mousetweaks/PKGBUILD gnome-unstable/pygobject/PKGBUILD gnome-unstable/seahorse/PKGBUILD testing/gcc/PKGBUILD
Diffstat (limited to 'community/sword')
-rw-r--r--community/sword/PKGBUILD37
1 files changed, 22 insertions, 15 deletions
diff --git a/community/sword/PKGBUILD b/community/sword/PKGBUILD
index 950c35862..bdb8cbb72 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' 'mips64el')
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: