summarylogtreecommitdiffstats
path: root/header.patch
diff options
context:
space:
mode:
authorBrian Bidulock2016-05-31 18:33:21 -0600
committerBrian Bidulock2016-05-31 18:33:21 -0600
commit071931106aa9ba03f08d472d8c0a8bc50921f1f5 (patch)
treeee914cc9556767d13385012df8d670b8773d709e /header.patch
parent8192418eda3f2bec388f09098e4b3b0ca1d2e05a (diff)
downloadaur-071931106aa9ba03f08d472d8c0a8bc50921f1f5.tar.gz
version 0.5.15-2
Diffstat (limited to 'header.patch')
-rw-r--r--header.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/header.patch b/header.patch
new file mode 100644
index 00000000000..a5e3da8f0ec
--- /dev/null
+++ b/header.patch
@@ -0,0 +1,12 @@
+diff -up src/hal-0.5.15/tools/Makefile.in.orig src/hal-0.5.15/tools/Makefile.in
+--- src/hal-0.5.15/tools/Makefile.in.orig 2015-08-13 18:09:13.000000000 -0600
++++ src/hal-0.5.15/tools/Makefile.in 2016-05-31 18:30:15.000000000 -0600
+@@ -1345,7 +1345,7 @@ uninstall-am: uninstall-binPROGRAMS unin
+
+
+ @BUILD_KEYMAPS_TRUE@@HAVE_GPERF_TRUE@hal-setup-keymap-keys.txt: @LINUX_INPUT_H@
+-@BUILD_KEYMAPS_TRUE@@HAVE_GPERF_TRUE@ awk '/^#define.*KEY_/ { if ($$2 != "KEY_MAX") { print substr($$2, 5) } }' < $< > $@
++@BUILD_KEYMAPS_TRUE@@HAVE_GPERF_TRUE@ cpp -fdirectives-only $< | awk '/^#define.*KEY_/ { if ($$2 != "KEY_MAX" && $$2 != "__KEY_T_TYPE") { print substr($$2, 5) } }' > $@
+
+ @BUILD_KEYMAPS_TRUE@@HAVE_GPERF_TRUE@hal-setup-keymap-hash-name.gperf: hal-setup-keymap-keys.txt
+ @BUILD_KEYMAPS_TRUE@@HAVE_GPERF_TRUE@ awk 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print $$1 ", KEY_" $$1 }' < $< > $@