1 #Maintainer: lubosz <lubosz@gmail.com>
3 pkgname=freeimage-qt-git
6 pkgdesc="FreeImage patched to be linkable against Qt"
8 url="http://freeimage.sourceforge.net/"
11 provides=('freeimage')
12 conflicts=('freeimage')
13 _gitroot="git://github.com/lubosz/FreeImage.git"
19 msg "Connecting to the GIT server...."
20 if [[ -d ${srcdir}/${_gitname} ]] ; then
23 msg "The local files are updated..."
28 msg "GIT checkout done."
30 msg "Starting make for: ${pkgname}"
32 if [[ -d ${srcdir}/${_gitname}-build ]]; then
33 msg "Cleaning the previous build directory..."
34 rm -rf ${srcdir}/${_gitname}-build
37 git clone ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
39 cd ${srcdir}/${_gitname}-build
44 make DESTDIR="$pkgdir/" install || return 1
46 make -f Makefile.fip || return 1
47 make -f Makefile.fip DESTDIR="$pkgdir/" install || return 1