4 pkgdesc="Prolog environment"
6 url="http://www.swi-prolog.org/"
7 depends=('gmp' 'readline')
10 makedepends=('libxft' 'libjpeg' 'unixodbc' 'openssl' 'libxpm' 'libxinerama')
11 options=('!makeflags')
15 _gitroot="git://prolog.cs.vu.nl/home/pl/git/pl.git"
21 msg "Connecting to swi-prolog GIT server...."
23 if [[ -d $startdir/src/$_gitname ]] ; then
24 cd $startdir/src/$_gitname
25 git pull origin || return 1
26 git submodule update || return 1
27 msg "The local files are updated."
30 git clone $_gitroot || return 1
31 cd $startdir/src/$_gitname
32 git submodule init || return 1
33 git submodule update || return 1
36 msg "GIT checkout done"
37 msg "Starting make..."
42 rm -rf $startdir/src/$_gitname-build
44 cp -r $startdir/src/$_gitname $startdir/src/$_gitname-build
45 cd $startdir/src/$_gitname-build
47 # don't download documentation
48 echo "warn" > .doc-action
51 ./configure --with-world --prefix=/usr --enable-gmp
53 make DESTDIR=$startdir/pkg || return 1
54 make DESTDIR=$startdir/pkg install || return 1
57 rm -rf $startdir/src/$_gitname-build