From 9c5e09a01b6d9fe6fe44f257ff3c854e49fbb88c Mon Sep 17 00:00:00 2001 From: Hendrik Boll Date: Thu, 12 Jun 2025 17:00:33 +0200 Subject: [PATCH] New package: oversteer-0.8.3 --- .../patches/python3-required-modules.patch | 22 +++++++++++++++++++ srcpkgs/oversteer/template | 15 +++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 srcpkgs/oversteer/patches/python3-required-modules.patch create mode 100644 srcpkgs/oversteer/template diff --git a/srcpkgs/oversteer/patches/python3-required-modules.patch b/srcpkgs/oversteer/patches/python3-required-modules.patch new file mode 100644 index 00000000000..eb3b1f7a9ff --- /dev/null +++ b/srcpkgs/oversteer/patches/python3-required-modules.patch @@ -0,0 +1,22 @@ +Removes an unnecessary block from meson.build that checks for python +modules and would force python3-* packages into makedepends instead of depends. + +diff --git a/meson.build b/meson.build +index b47c7ed..3d91713 100644 +--- a/meson.build ++++ b/meson.build +@@ -10,14 +10,6 @@ pkgdatadir = join_paths(prefix, get_option('datadir'), meson.project_name()) + py_installation = pymod.find_installation(get_option('python')) + py_path = py_installation.get_install_dir() + +-python3_required_modules = ['gi', 'pyudev', 'xdg', 'evdev', 'gettext', 'matplotlib', 'scipy', 'numpy'] +-foreach p : python3_required_modules +- script = 'import importlib.util; import sys; exit(1) if importlib.util.find_spec(\''+ p +'\') is None else exit(0)' +- if run_command(py_installation, '-c', script, check: true).returncode() != 0 +- error('Required Python3 module \'' + p + '\' not found') +- endif +-endforeach +- + udev_rules_dir = get_option('udev_rules_dir') + if udev_rules_dir == '' + if prefix == '/usr/local' diff --git a/srcpkgs/oversteer/template b/srcpkgs/oversteer/template new file mode 100644 index 00000000000..381fda3951f --- /dev/null +++ b/srcpkgs/oversteer/template @@ -0,0 +1,15 @@ +# Template file for 'oversteer' +pkgname=oversteer +version=0.8.3 +revision=1 +build_style=meson +hostmakedepends="pkg-config gettext desktop-file-utils" +makedepends="eudev-libudev-devel" +depends="python3-gobject python3-pyudev python3-xdg python3-evdev + python3-matplotlib python3-scipy python3-numpy" +short_desc="Graphical Steering Wheel Manager for Linux" +maintainer="Hendrik Boll " +license="GPL-3.0-or-later" +homepage="https://github.com/berarma/oversteer" +distfiles="https://github.com/berarma/oversteer/archive/v${version}.tar.gz" +checksum=becf6ba62a3344037b448c49a543c17de5013829c4514d5fe8b9671c08e8e183