# $Id: PKGBUILD 150392 2012-02-17 11:26:19Z allan $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=libxdamage
pkgver=1.1.3
pkgrel=2
pkgdesc="X11 damaged region extension library"
arch=('i686' 'x86_64')
url="http://xorg.freedesktop.org/"
license=('custom')
depends=('libxfixes>=4.0.4' 'damageproto>=1.2.0')
makedepends=('pkg-config')
options=('!libtool')
source=(${url}/releases/individual/lib/libXdamage-${pkgver}.tar.bz2)
sha1sums=('7d96e8de107fede16951cb47d5e147630fbc7dee')

build() {
  cd "${srcdir}/libXdamage-${pkgver}"
  ./configure --prefix=/usr --sysconfdir=/etc --disable-static
  make
}

package() {
  cd "${srcdir}/libXdamage-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}