blob: 3908c9d5d7bd7b37f0a19fec63c0dfc259baa590 (
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
|
# $Id: PKGBUILD 52657 2011-07-26 22:56:39Z shusmann $
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: TripleE <eric1548@yahoo.com>
pkgname=sword
pkgver=1.6.2
pkgrel=5
pkgdesc="Libraries for Bible programs"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.crosswire.org/sword/index.jsp"
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)
md5sums=('a7dc4456e20e915fec46d774b690e305'
'e84a226ce3697af33b9fdd9a22884a2a')
build() {
cd "${srcdir}"/$pkgname-$pkgver
patch -p1 < $srcdir/curl.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_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
}
|