#Mantainer: Matias Hernandez <msdark@archlinux.cl>
#Contributor: Matias Hernandez <msdark@archlinux.cl>
# Remake of July 2010 by Berseker <berseker86@gmail.com>
pkgname=viewnior-git
pkgver=20100702
pkgrel=1
pkgdesc="Simple, fast, elegant and minimalistic image viewer, written in C(GTK+) with a new GtkImageView library. Fullscreen & Slideshow, Rotate,flip,save and delete images, Animation support,Set image as wallpaper.... Simple!!"
arch=('i686' 'x86_64')
url="http://xsisqox.github.com/Viewnior/"
license=('GPL')
depends=()
makedepends=('gnome-common')
provides=('viewnior')
options=('strip')
_gitroot="git://github.com/xsisqox/Viewnior.git"
_gitname="Viewnior"
build() {
msg "Connecting to GIT server..."
if [ -d "${srcdir}/${_gitname}" ] ; then
cd ${_gitname} && git pull --rebase
else
git clone ${_gitroot}
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
rm -rf ${srcdir}/build
cd ${srcdir}/${_gitname}
./autogen.sh
./configure --enable-wallpaper --prefix=/usr
make
make DESTDIR=$pkgdir install
}