1 # Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
6 pkgdesc="OpenGL image viewer."
7 url="http://guichaz.free.fr/gliv/"
18 _gitroot="git://repo.or.cz/gliv.git"
23 msg "Connecting to GIT server...."
25 if [ -d ${srcdir}/$_gitname ] ; then
26 cd $_gitname && git pull origin
27 msg "The local files are updated."
32 msg "GIT checkout done or server timeout"
33 msg "Starting make..."
35 if [ -d ${srcdir}/$_gitname-build ]; then
36 rm -rf ${srcdir}/$_gitname-build
38 cp -r ${srcdir}/$_gitname ${srcdir}/$_gitname-build
40 cd ${srcdir}/$_gitname-build
42 ./configure --prefix=/usr
43 sed -i 's:pixmaps |:pixmaps $(datadir)/applications |:;s:vendor=gnome:vendor=gnome --dir=$(datadir)/applications:' Makefile
48 cd ${srcdir}/$_gitname-build
50 make prefix="$pkgdir/usr" install