# $Id: PKGBUILD 82357 2010-06-10 12:31:08Z jgc $
#Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=libxfixes
pkgver=4.0.5
pkgrel=3
pkgdesc="X11 miscellaneous 'fixes' extension library"
arch=('i686' 'x86_64')
url="http://xorg.freedesktop.org/"
license=('custom')
depends=('libx11>=1.3.4' 'fixesproto>=4.1.1')
makedepends=('pkg-config')
options=('!libtool')
source=(${url}/releases/individual/lib/libXfixes-${pkgver}.tar.bz2)
sha1sums=('255dfb9a8c50d795c60711ec4764f76cd0620cbf')

build() {
  cd "${srcdir}/libXfixes-${pkgver}"
  ./configure --prefix=/usr --sysconfdir=/etc --disable-static || return 1
  make || return 1
}
package() {
  cd "${srcdir}/libXfixes-${pkgver}"
  make DESTDIR="${pkgdir}" install || return 1

  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" || return 1
}