blob: 0efbbe9c166cc413c6d9badbc4981e0019b693b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# $Id: PKGBUILD 68457 2012-03-25 01:46:00Z 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=7
pkgdesc="Library for Bible study programs"
arch=('x86_64' 'i686')
url="http://www.crosswire.org/sword/"
license=('GPL')
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")
sha256sums=('af76c7d54135c444b09eeaafb49229ef5201a4e1d44539d9341dceaeb60a87b9'
'3c2676b6dc1d56b08b2532f46af32c54e91ea71ed92a5d7a30ee29ed7ff09124')
build() {
cd "$srcdir/$pkgname-$pkgver"
patch -p1 -i ../curl.patch
mkdir ../build
cd ../build
CXXFLAGS=-fpermissive cmake "../$pkgname-$pkgver" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
make
}
package() {
cd "$srcdir/build"
make DESTDIR="$pkgdir" install
install -d "$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"
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"
}
# vim:set ts=2 sw=2 et:
|