updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gliv-git / PKGBUILD
blobb80f7720350a8872a5df58c7bb5b48ca30568c37
1 # Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
3 pkgname=gliv-git
4 pkgver=20111026
5 pkgrel=1
6 pkgdesc="OpenGL image viewer."
7 url="http://guichaz.free.fr/gliv/"
8 arch=('i686' 'x86_64')
9 license=('GPL')
10 depends=('gtkglext')
11 makedepends=('git')
12 provides=('gliv')
13 conflicts=('gliv')
15 source=()
16 md5sums=()
18 _gitroot="git://repo.or.cz/gliv.git"
19 _gitname="gliv"
21 build() {
22   cd "${srcdir}"
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."
28   else
29     git clone $_gitroot
30   fi
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
37   fi
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
44   make
47 package() {
48   cd ${srcdir}/$_gitname-build
50   make prefix="$pkgdir/usr" install