# $Id: PKGBUILD 68040 2010-02-10 15:13:54Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=giblib
pkgver=1.2.4
pkgrel=4
pkgdesc="A library that feh uses as a wrapper to imlib2"
arch=('i686' 'x86_64')
url="http://freshmeat.net/projects/giblib/"
license=('MIT')
depends=('imlib2' 'libxext' 'freetype2')
options=('!libtool')
source=(ftp://ftp.archlinux.org/other/giblib/${pkgname}-${pkgver}.tar.bz2)
md5sums=('ff61760ef73421c5f02d2f6c8d3ac913')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  ./configure --prefix=/usr || return 1
  make || return 1
  make DESTDIR="${pkgdir}" docsdir=/usr/share/doc/giblib install || return 1

  # Install custom license
  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
}