From 5e60e91aca4fdf4e178f999a73e1b197c89795db Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Tue, 9 Jan 2018 15:55:27 +0000
Subject: xdotool: update to 3.20160805.1

---
 abs/core/xdotool/PKGBUILD | 26 ++++++++++++++++----------
 1 file changed, 16 insertions(+), 10 deletions(-)

diff --git a/abs/core/xdotool/PKGBUILD b/abs/core/xdotool/PKGBUILD
index 0ce58a3..f8f1236 100644
--- a/abs/core/xdotool/PKGBUILD
+++ b/abs/core/xdotool/PKGBUILD
@@ -1,26 +1,32 @@
-# $Id: PKGBUILD 48265 2011-05-30 19:01:31Z foutrelis $
-# Maintainer: Evangelos Foutras <foutrelis@gmail.com>
+# $Id$
+# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
 # Contributor: Rttommy <rttommy@gmail.com>
 
 pkgname=xdotool
-pkgver=2.20110530.1
+pkgver=3.20160805.1
 pkgrel=1
 pkgdesc="Command-line X11 automation tool"
-arch=('i686' 'x86_64')
+arch=('x86_64')
 url="http://www.semicomplete.com/projects/xdotool/"
 license=('BSD')
-depends=('libxtst' 'libxinerama')
-source=(http://semicomplete.googlecode.com/files/$pkgname-$pkgver.tar.gz)
-sha1sums=('bf8372b2e76e8ee3884763cee6e8b3f66bf29aa6')
+depends=('libxtst' 'libxinerama' 'libxkbcommon')
+source=(https://github.com/jordansissel/xdotool/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('35be5ff6edf0c620a0e16f09ea5e101d5173280161772fca18657d83f20fcca8')
 
 build() {
   cd "$srcdir/$pkgname-$pkgver"
+  make WITHOUT_RPATH_FIX=1
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
 
-  make
   make PREFIX="$pkgdir/usr" INSTALLMAN="$pkgdir/usr/share/man" install
 
-  # License
-  install -Dm644 COPYRIGHT "$pkgdir/usr/share/licenses/xdotool/COPYRIGHT"
+  # Remove execute bit from header file
+  chmod -x "$pkgdir/usr/include/xdo.h"
+
+  install -Dm644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT"
 }
 
 # vim:set ts=2 sw=2 et:
-- 
cgit v0.12

