Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions anda/lib/inputtino/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "inputtino.spec"
}
}
13 changes: 13 additions & 0 deletions anda/lib/inputtino/fix-pkgconfig-install-location.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2546b78..c6ca674 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -174,7 +174,7 @@ if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
@ONLY
)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libinputtino.pc
- DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/pkgconfig)
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
endif ()
endif ()

48 changes: 48 additions & 0 deletions anda/lib/inputtino/inputtino.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
%global commit 504f0abc7da8ebc351f8300fb2ed98db5438ee48
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global commitdate 20250816

Name: inputtino
Version: 0^%{commitdate}.%{shortcommit}
Release: 1%{?dist}
License: MIT
URL: https://github.com/games-on-whales/%{name}
Source: %{url}/archive/%{commit}.tar.gz
Patch0: fix-pkgconfig-install-location.patch
Summary: A virtual input library: supports mouse, keyboard, joypad, trackpad and more
Packager: metcya <metcya@gmail.com>

BuildRequires: gcc-c++
BuildRequires: cmake
BuildRequires: pkgconfig(libevdev)
BuildRequires: pkgconfig(libinput)
BuildRequires: pkgconfig(sdl2)

%description
An easy to use virtual input library for Linux built on top of uinput, evdev
and uhid.

%package devel
%pkg_devel_files

%prep
%autosetup -n %{name}-%{commit} -p1

%build
%cmake -DBUILD_TESTING=OFF \
-DLIBINPUTTINO_INSTALL=ON
%cmake_build

%install
%cmake_install

%files
%doc README.md
%license LICENSE
# huh?
%{_libdir}/liblib%{name}.so.*

%changelog
* Mon Jan 05 2026 metcya <metcya@gmail.com> - 0^20250816.504f0ab
- Initial package

5 changes: 5 additions & 0 deletions anda/lib/inputtino/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
rpm.global("commit", gh_commit("games-on-whales/inputtino"));
if rpm.changed() {
rpm.release();
rpm.global("commit_date", date());
}
Loading