# $Id: PKGBUILD 151186 2012-02-25 07:05:52Z allan $
#Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=xineramaproto
pkgver=1.2.1
pkgrel=2
pkgdesc="X11 Xinerama extension wire protocol"
arch=('any')
url="http://xorg.freedesktop.org/"
license=('custom')
makedepends=('xorg-util-macros')
source=(${url}/releases/individual/proto/${pkgname}-${pkgver}.tar.bz2)
sha1sums=('818bffc16139d6e3de4344c83f00c495d3536753')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr
  make
}

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