1 # Maintainer: Alessio Sergi <asergi at archlinux dot us>
5 _commit=137471f2b8777743d87f5ce79dd4e2cc2b29f8dc
7 pkgdesc="A GdkPixbuf loader for the XCF (The Gimp) file format"
9 url="http://gitorious.org/xcf-pixbuf-loader"
11 depends=('bzip2' 'gdk-pixbuf2')
14 install=${pkgname}.install
16 __gitroot="git://gitorious.org/xcf-pixbuf-loader/mainline.git"
17 __gitname="${pkgname}"
22 msg "Connecting to GIT server...."
24 if [ -d ${__gitname} ] ; then
25 cd ${__gitname} && git pull origin
26 msg "The local files are updated."
28 git clone ${__gitroot} ${__gitname}
31 msg "GIT checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf "${srcdir}/${__gitname}-build"
35 git clone "${srcdir}/${__gitname}" "${srcdir}/${__gitname}-build"
36 cd "${srcdir}/${__gitname}-build"
37 git checkout "${_commit}"
40 ./configure --prefix=/usr
45 cd "${srcdir}/${__gitname}-build"
47 install -d -m755 ${pkgdir}/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders
48 install -m644 .libs/libioxcf.so ${pkgdir}/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/