evemu: New package

Closes #26600

Close: #26623
This commit is contained in:
Nathan Owens 2020-11-22 19:51:27 -06:00 committed by Đoàn Trần Công Danh
parent 1646aaa111
commit d26e66ac57
4 changed files with 56 additions and 0 deletions

View file

@ -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

1
srcpkgs/evemu-devel Symbolic link
View file

@ -0,0 +1 @@
evemu

View file

@ -0,0 +1,25 @@
From c6891596fc4a1f41dae60c5a8bd08dd7a933d625 Mon Sep 17 00:00:00 2001
From: Nathan Owens <ndowens@artixlinux.org>
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 <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
-
+#include <limits.h>
#define DEV_INPUT_EVENT "/dev/input"
#define EVENT_DEV_NAME "event"
--
2.29.2

29
srcpkgs/evemu/template Normal file
View file

@ -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 <ndowens@artixlinux.org>"
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
}
}