blob: df5964e5e61f05c57a4634c8fc65f3a1294e032e (
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
|
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=sword-svn
pkgver=1.9.0.svnversion.3887
pkgrel=1
epoch=3
pkgdesc="Libraries for Bible programs - svn-version"
arch=('i686' 'x86_64')
url="http://crosswire.org/sword/"
license=('GPL')
depends=('curl' 'clucene' 'xapian-core' 'icu')
makedepends=('subversion')
provides=('sword=1.9.1')
conflicts=('sword')
source=('sword::svn+https://crosswire.org/svn/sword/trunk/')
sha256sums=('SKIP')
pkgver() {
cd "${pkgname%-svn}"
local ver="$(svnversion)"
printf "%s.%s" $(awk '/AC_INIT/ {print $2}' configure.ac | tr -d ,) "${ver//[[:alpha:]]}"
}
build() {
cd "${pkgname%-svn}"
./autogen.sh
CXXFLAGS+=' -DU_USING_ICU_NAMESPACE=1'
./configure --prefix=/usr --libdir=/usr/lib --sysconfdir=/etc
make
}
check() {
cd "${pkgname%-svn}"
export SWORD_PATH=~/.sword
mkdir -p $SWORD_PATH/mods.d
echo yes |installmgr -init
echo yes |installmgr -sc
echo yes |installmgr -r CrossWire
echo yes |installmgr -ri CrossWire KJV
installmgr -l
diatheke -b KJV -k Jn 3:16
}
package() {
cd "${pkgname%-svn}"
make DESTDIR="$pkgdir/" install
make DESTDIR="$pkgdir/" install_config
}
|