# $Id: PKGBUILD 151170 2012-02-25 06:52:57Z allan $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=xorg-xconsole
pkgver=1.0.4
pkgrel=2
pkgdesc="Monitor system console messages with X"
arch=('i686' 'x86_64')
url="http://xorg.freedesktop.org/"
license=('custom')
depends=('libxaw' 'libxmu' 'libxt' 'libx11')
makedepends=('xorg-util-macros')
source=(http://xorg.freedesktop.org/archive/individual/app/xconsole-${pkgver}.tar.bz2)
sha1sums=('195299d4948ba4c62e961ddd0bd4572283244715')

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

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