# $Id: PKGBUILD 87593 2010-08-17 07:49:50Z jgc $
#Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=xextproto
pkgver=7.1.2
pkgrel=1
pkgdesc="X11 various extension wire protocol"
arch=('any')
license=('custom')
makedepends=('xmlto' 'xorg-util-macros' 'docbook-xsl')
url="http://xorg.freedesktop.org/"
source=(${url}/releases/individual/proto/${pkgname}-${pkgver}.tar.bz2)
sha1sums=('be6303a9449277af58f38e1be57e442d98f400fe')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr
  make || return 1
}
package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install || return 1
  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
}