1 # Contributor: Andreas B. Wagner <AndreasBWagner@gmail.com>
5 pkgdesc="Command-line X11 automation tool"
7 url="http://www.semicomplete.com/projects/xdotool"
13 replaces=('xdotool-svn')
15 _gitroot="git://github.com/jordansissel/xdotool.git"
20 msg "Connecting to GIT server...."
22 if [ -d $_gitname ] ; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
26 git clone $_gitroot $_gitname
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"