updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / xdotool-git / PKGBUILD
blob22d478e2b542857b20600654b4b7fced172de342
1 # Contributor: Andreas B. Wagner <AndreasBWagner@gmail.com>
2 pkgname=xdotool-git
3 pkgver=20110226
4 pkgrel=1
5 pkgdesc="Command-line X11 automation tool"
6 arch=('i686' 'x86_64')
7 url="http://www.semicomplete.com/projects/xdotool"
8 license=('BSD')
9 depends=('libxtst')
10 makedepends=('git')
11 provides=('xdotool')
12 conflicts=('xdotool')
13 replaces=('xdotool-svn')
15 _gitroot="git://github.com/jordansissel/xdotool.git"
16 _gitname="xdotool"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting make..."
32   rm -rf "$srcdir/$_gitname-build"
33   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34   cd "$srcdir/$_gitname-build"
36   make PREFIX="$pkgdir/usr" INSTALLMAN="$pkgdir/usr/share/man" install
37   install -Dm644 COPYRIGHT "$pkgdir/usr/share/licenses/xdotool/COPYRIGHT"
38
39 md5sums=()