linux-qubasis
linux oasis port as a qubes template
git clone https://9o.is/git/linux-qubasis.git
commit 6e7bfc5b10446c3c611020524b0be0c6ec653064 parent 14c4d01939416978479df43e6898e81c27846d4b Author: Jul <jul@9o.is> Date: Thu, 27 Nov 2025 12:01:55 -0500 add libinput Diffstat:
| M | .gitmodules | | | 4 | ++++ |
| M | pkg/gen.sh | | | 1 | + |
| A | pkg/libinput/config.h | | | 6 | ++++++ |
| A | pkg/libinput/gen.sh | | | 101 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| A | pkg/libinput/libinput-version.h | | | 32 | ++++++++++++++++++++++++++++++++ |
| M | qubes/example/gen.sh | | | 1 | + |
6 files changed, 145 insertions(+), 0 deletions(-)
diff --git a/.gitmodules b/.gitmodules @@ -42,6 +42,10 @@ path = pkg/libevdev/src url = https://gitlab.freedesktop.org/libevdev/libevdev.git ignore = all +[submodule "libinput"] + path = pkg/libinput/src + url = https://github.com/oasislinux/libinput + ignore = all [submodule "libpng"] path = pkg/libpng/src url = https://github.com/glennrp/libpng diff --git a/pkg/gen.sh b/pkg/gen.sh @@ -26,6 +26,7 @@ pkg fspec-sync pkg fzy pkg less pkg libevdev +pkg libinput pkg libpng pkg libtermkey pkg libtls-bearssl diff --git a/pkg/libinput/config.h b/pkg/libinput/config.h @@ -0,0 +1,6 @@ +#define HAVE_LIBWACOM 0 +#define HAVE_VERSIONSORT 1 +#define HTTP_DOC_LINK "https://wayland.freedesktop.org/libinput/doc/1.19.3/" +#define LIBINPUT_QUIRKS_DIR "/share/libinput" +#define LIBINPUT_QUIRKS_OVERRIDE_FILE "/etc/libinput/local-overrides.quirks" +#define _GNU_SOURCE 1 diff --git a/pkg/libinput/gen.sh b/pkg/libinput/gen.sh @@ -0,0 +1,101 @@ +git 702610d + +cflags " + -std=c11 + -I$dir + -I$srcdir/include + -isystem $pkgdir/libevdev/include + -isystem $pkgdir/linux-headers/include + -isystem $pkgdir/mtdev/include + -Wno-pedantic + -Wno-unused-parameter +" + +dep " + libevdev/headers + linux-headers/headers + mtdev/headers +" + +include src/libinput.h + +lib libinput.a --src-prefix src " + evdev-debounce.c + evdev-fallback.c + evdev-middle-button.c + evdev-mt-touchpad-buttons.c + evdev-mt-touchpad-edge-scroll.c + evdev-mt-touchpad-gestures.c + evdev-mt-touchpad-tap.c + evdev-mt-touchpad-thumb.c + evdev-mt-touchpad.c + evdev-tablet-pad-leds.c + evdev-tablet-pad.c + evdev-tablet.c + evdev-totem.c + evdev.c + filter-flat.c + filter-low-dpi.c + filter-mouse.c + filter-tablet.c + filter-touchpad-flat.c + filter-touchpad-x230.c + filter-touchpad.c + filter-trackpoint.c + filter.c + libinput.c + netlink-seat.c + path-seat.c + quirks.c + timer.c + util-list.c + util-prop-parsers.c + util-ratelimit.c + util-strings.c + $pkgdir/libevdev/libevdev.a + $pkgdir/mtdev/libmtdev.a +" + +share --prefix libinput --src-prefix quirks " + 10-generic-keyboard.quirks + 10-generic-lid.quirks + 10-generic-mouse.quirks + 10-generic-trackball.quirks + 30-vendor-a4tech.quirks + 30-vendor-aiptek.quirks + 30-vendor-alps.quirks + 30-vendor-contour.quirks + 30-vendor-cypress.quirks + 30-vendor-elantech.quirks + 30-vendor-ibm.quirks + 30-vendor-kensington.quirks + 30-vendor-logitech.quirks + 30-vendor-madcatz.quirks + 30-vendor-microsoft.quirks + 30-vendor-razer.quirks + 30-vendor-starlabs.quirks + 30-vendor-synaptics.quirks + 30-vendor-trust.quirks + 30-vendor-vmware.quirks + 30-vendor-wacom.quirks + 50-framework.quirks + 50-system-acer.quirks + 50-system-apple.quirks + 50-system-asus.quirks + 50-system-chicony.quirks + 50-system-chuwi.quirks + 50-system-cyborg.quirks + 50-system-dell.quirks + 50-system-gigabyte.quirks + 50-system-google.quirks + 50-system-gpd.quirks + 50-system-hp.quirks + 50-system-huawei.quirks + 50-system-lenovo.quirks + 50-system-pine64.quirks + 50-system-prestigio.quirks + 50-system-purism.quirks + 50-system-sony.quirks + 50-system-system76.quirks + 50-system-toshiba.quirks +" diff --git a/pkg/libinput/libinput-version.h b/pkg/libinput/libinput-version.h @@ -0,0 +1,32 @@ +/* + * Copyright © 2013 Jonas Ådahl + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice (including the next + * paragraph) shall be included in all copies or substantial portions of the + * Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +#ifndef LIBINPUT_VERSION_H +#define LIBINPUT_VERSION_H + +#define LIBINPUT_VERSION_MAJOR 1 +#define LIBINPUT_VERSION_MINOR 19 +#define LIBINPUT_VERSION_MICRO 3 +#define LIBINPUT_VERSION "1.19.3" + +#endif diff --git a/qubes/example/gen.sh b/qubes/example/gen.sh @@ -18,6 +18,7 @@ pkg e2fsprogs pkg fspec-sync pkg fzy pkg less +pkg libinput pkg mandoc pkg netbsd-curses pkg oksh