# $Id: PKGBUILD 160907 2012-06-06 16:56:36Z andyrtr $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=xorg-docs
pkgver=1.7
pkgrel=1
pkgdesc="X.org documentations"
arch=(any)
url="http://xorg.freedesktop.org/"
license=('custom')
depends=('man-db')
groups=('xorg')
source=(${url}/archive/individual/doc/${pkgname}-${pkgver}.tar.bz2)
sha256sums=('b9b1918bd365e9eb29c325e76bb8c4d774d37be707e433fb0af94da35683375f')

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

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  cd "${pkgdir}/usr/share/licenses/${pkgname}"
  ln -vsf /usr/share/doc/xorg-docs/License.xml .
}