# $Id: PKGBUILD 7103 2010-01-01 04:09:10Z foutrelis $
# Maintainer: Evangelos Foutras <foutrelis@gmail.com>
# Contributor: Rttommy <rttommy@gmail.com>

pkgname=xdotool
pkgver=20091231.03
pkgrel=1
pkgdesc="Command-line X11 automation tool"
arch=('i686' 'x86_64')
url="http://www.semicomplete.com/projects/xdotool/"
license=('BSD')
depends=('libxtst')
source=(http://semicomplete.googlecode.com/files/$pkgname-$pkgver.tar.gz)
md5sums=('6228520608c831f64d13f4129cb4f381')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  make || return 1
  install -d "$pkgdir"/usr/{bin,lib,include,share/man}
  make PREFIX="$pkgdir/usr" INSTALLMAN="$pkgdir/usr/share/man" \
       install || return 1

  # License
  install -D -m644 COPYRIGHT "$pkgdir/usr/share/licenses/xdotool/COPYRIGHT"
}

# vim:set ts=2 sw=2 et: