pkgname=xdotool
pkgver=20090126
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=('a520d6a3175c3b55582998cbeef81688')

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

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

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

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