1 # Maintainer: Matt Lundin <mdl@imapmail.org>
6 pkgdesc="A command line web search client supporting org-mode, markdown, and textile"
8 url="http://gnugol.taht.net/"
10 depends=('jansson' 'curl')
16 _gitroot="git://github.com/dtaht/Gnugol.git"
23 msg "Connecting to GIT server..."
24 if [[ -d $_gitname ]]; then
25 (cd $_gitname && git pull origin)
27 git clone $_gitroot $_gitname
29 msg "GIT checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf $_gitname-build
33 cp -r $_gitname $_gitname-build
36 sed -i -e 's|/var/lib/gnugol|/usr/lib/gnugol|' src/include/gnugol_engines.h
38 SHAREDLIBDIR=/usr/lib/gnugol make
40 if [ -f /usr/bin/emacs ]; then
41 emacs --batch -q --no-site-file -f batch-byte-compile src/lisp/gnugol.el
47 cd "$srcdir/$_gitname-build"
49 install -d $pkgdir/usr/{bin/,lib/gnugol/}
50 install -Dm755 src/engines/*.so $pkgdir/usr/lib/gnugol/
51 install -Dm755 src/clients/gnugol $pkgdir/usr/bin/
53 if [ -f /usr/bin/emacs ]; then
54 install -d $pkgdir/usr/share/emacs/site-lisp/
55 install -Dm644 src/lisp/gnugol.el{,c} $pkgdir/usr/share/emacs/site-lisp/
58 install -d $pkgdir/usr/share/man/man1/
60 install -Dm644 doc/gnugol.1.gz $pkgdir/usr/share/man/man1/