[arch-commits] Commit in keynav/trunk (PKGBUILD)

Kyle Keen kkeen at archlinux.org
Sat May 2 07:34:14 UTC 2020


    Date: Saturday, May 2, 2020 @ 07:34:14
  Author: kkeen
Revision: 624321

upgpkg: keynav 0.20180821.0-1

Modified:
  keynav/trunk/PKGBUILD

----------+
 PKGBUILD |   37 +++++++++++++------------------------
 1 file changed, 13 insertions(+), 24 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-02 07:07:55 UTC (rev 624320)
+++ PKGBUILD	2020-05-02 07:34:14 UTC (rev 624321)
@@ -1,44 +1,33 @@
 # Maintainer: Kyle Keen <keenerd at gmail.com>
 # Contributor: Jan Fader <jan.fader at web.de>
 pkgname=keynav
-pkgver=0.20110708.0
-pkgrel=3
+pkgver=0.20180821.0
+# author hasn't done any releases in years
+_commit="78f9e076"
+pkgrel=1
 pkgdesc="Ingenious and fast way to move the mouse pointer on the screen with keystrokes."
 url="https://www.semicomplete.com/projects/keynav/"
 license=('BSD')
 arch=('x86_64')
-depends=('cairo' 'xdotool')
-source=("https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/semicomplete/keynav-$pkgver.tar.gz")
+depends=('cairo' 'xdotool' 'libxrandr')
+makedepends=('git' 'perl')
+#source=("https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/semicomplete/keynav-$pkgver.tar.gz")
 #source=("http://http.debian.net/debian/pool/main/k/keynav/keynav_$pkgver.orig.tar.gz")
-md5sums=('d1b273d72b15fc9c28270c28f644e7c6')
+source=("git+https://github.com/jordansissel/keynav#commit=$_commit")
+md5sums=('SKIP')
 
-prepare() {
-  cd "$srcdir/$pkgname-$pkgver"
-  sed -e 's/xdo_symbol_map/xdo_get_symbol_map/' \
-      -e 's/xdo_window_setclass/xdo_set_window_class/' \
-      -e 's/xdo_window_get_active/xdo_get_window_at_mouse/' \
-      -e 's/xdo_click/xdo_click_window/' \
-      -e 's/xdo_mouseup/xdo_mouse_up/' \
-      -e 's/xdo_mousedown/xdo_mouse_down/' \
-      -e 's/xdo_mousemove/xdo_move_mouse/' \
-      -e 's/xdo_mousemove_relative/xdo_move_mouse_relative/' \
-      -e 's/xdo_mouselocation/xdo_get_mouse_location/' \
-      -e 's/xdo_mouse_wait_for_move_to/xdo_wait_for_mouse_move_to/' \
-      -e 's/xdo_keysequence_up/xdo_send_keysequence_window_up/' \
-      -e 's/xdo_keysequence_down/xdo_send_keysequence_window_down/' \
-      -i keynav.c
-}
-
 build() {
-  cd "$srcdir/$pkgname-$pkgver"
+  cd "$srcdir/$pkgname"
   make keynav
+  make keynav.1
 }
 
 package() {
-  cd "$srcdir/$pkgname-$pkgver"
+  cd "$srcdir/$pkgname"
   install -Dm755 keynav    "$pkgdir/usr/bin/keynav"
   install -Dm644 keynavrc  "$pkgdir/etc/keynavrc"
   install -Dm644 COPYRIGHT "$pkgdir/usr/share/licenses/keynav/COPYRIGHT"
+  install -Dm755 keynav.1  "$pkgdir/usr/share/man/man1/keynav.1"
 }
 
 # vim:set ts=2 sw=2 et:


More information about the arch-commits mailing list