diff --git a/common/shlibs b/common/shlibs index ff2f4a9b234..7ee098e51fd 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3998,3 +3998,4 @@ libsonic.so.0 libsonic-0.2.0_1 libtickit.so.3 libtickit-0.4.1_1 libnotcurses.so.2 notcurses-2.0.4_1 libnotcurses++.so.2 notcurses-2.0.4_1 +libevemu.so.3 evemu-2.7.0_1 diff --git a/srcpkgs/evemu-devel b/srcpkgs/evemu-devel new file mode 120000 index 00000000000..d36a5501675 --- /dev/null +++ b/srcpkgs/evemu-devel @@ -0,0 +1 @@ +evemu \ No newline at end of file diff --git a/srcpkgs/evemu/patches/musl.patch b/srcpkgs/evemu/patches/musl.patch new file mode 100644 index 00000000000..c620fd629f0 --- /dev/null +++ b/srcpkgs/evemu/patches/musl.patch @@ -0,0 +1,25 @@ +From c6891596fc4a1f41dae60c5a8bd08dd7a933d625 Mon Sep 17 00:00:00 2001 +From: Nathan Owens +Date: Sun, 22 Nov 2020 19:56:11 -0600 +Subject: [PATCH] musl build fix + +--- + tools/find_event_devices.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git tools/find_event_devices.c tools/find_event_devices.c +index 2a43d54..70314e8 100644 +--- tools/find_event_devices.c ++++ tools/find_event_devices.c +@@ -32,7 +32,7 @@ + #include + #include + #include +- ++#include + + #define DEV_INPUT_EVENT "/dev/input" + #define EVENT_DEV_NAME "event" +-- +2.29.2 + diff --git a/srcpkgs/evemu/template b/srcpkgs/evemu/template new file mode 100644 index 00000000000..e65f2f63ac9 --- /dev/null +++ b/srcpkgs/evemu/template @@ -0,0 +1,29 @@ +# Template file for 'evemu' +pkgname=evemu +version=2.7.0 +revision=1 +build_style=gnu-configure +hostmakedepends="pkg-config python3 asciidoc xmlto" +makedepends="libevdev-devel" +short_desc="Kernel device emulation" +maintainer="Nathan Owens " +license="LGPL-3.0-only, MIT" +homepage="https://freedesktop.org/wiki/Evemu/" +distfiles=${FREEDESKTOP_SITE}/evemu/evemu-$version.tar.xz +checksum=78c9400d55eeeb5ab75161360543f9376438c4da4934cb34cdda5b46021ae379 + +post_install() { + sed -n '/Copyright/,/IN THE SOFTWARE/p' src/evemu.c >LICENSE + vlicense LICENSE +} + +evemu-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + vmove usr/lib/pkgconfig + } +}