# $Id: PKGBUILD 88385 2010-08-23 08:11:58Z jgc $
#Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=kbproto
pkgver=1.0.5
pkgrel=1
pkgdesc="X11 XKB extension wire protocol"
arch=(any)
url="http://xorg.freedesktop.org/"
license=('custom')
source=(${url}/releases/individual/proto/${pkgname}-${pkgver}.tar.bz2)
sha1sums=('d95fada09399568c434729b436e1a09503e15b7a')

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}/"
}