1 # Maintainer: Baptiste Jonglez <zerstorer at free dot fr>
5 pkgdesc="jbofihe is a command-line program designed to perform various operations on Lojban text: checking grammatical correctness, displaying grammatical structure, approximate English translation. Comes with the 'cmafihe', 'smujajgau', 'jvocuhadju' and 'vlatai' tools."
7 url="https://github.com/lojban/jbofihe"
15 # TODO: provide the dictionary (/usr/lib/jbofihe/smujmaji.dat) in a separate package to ease upgrading?
17 _gitroot=https://github.com/lojban/jbofihe
22 msg "Connecting to GIT server...."
24 if [[ -d "$_gitname" ]]; then
25 cd "$_gitname" && git pull origin
26 msg "The local files are updated."
28 git clone "$_gitroot" "$_gitname"
31 msg "GIT checkout done or server timeout"
32 msg "Starting build..."
34 rm -rf "$srcdir/$_gitname-build"
35 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36 cd "$srcdir/$_gitname-build"
38 msg "Launching config.pl..."
40 perl config.pl --prefix=/usr
42 msg "Launching make..."
44 # MAKEFLAGS: the Makefile doesn't seem to support more than one thread...
45 make MAKEFLAGS="-j1" all
49 cd "$srcdir/$_gitname-build"
50 make DESTDIR="$pkgdir/" install
53 # vim:set ts=2 sw=2 et: