games-util/linuxtrack-qt6-wayland: new package, add 1.4.1, 9999

Signed-off-by: Erica Nebula <EricaNebula@Proton.me>
This commit is contained in:
Erica Nebula
2026-03-28 15:59:50 -05:00
parent 8cb9bb7076
commit b586c05fd6
4 changed files with 130 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST linuxtrack-qt6-wayland-1.4.1.tar.gz 245613144 BLAKE2B 2163322e75415076150a8a6db287f4a12fbd94ccee4f633658514ae97042340d1fc72a0d565fab1c97c2420e0cb082428b9b7ef24e50237517d01f447ec25877 SHA512 21dda90a505229e03d5c6429282be10fd959daa6d352345f5c8f179ad2ad94a968be12e995a9e8d0b415399fbfb2fc3599e898f757bf128b8714bb327b798b66

View File

@@ -0,0 +1,57 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake udev xdg
DESCRIPTION="Modernized fork of Linuxtrack headtracking software"
HOMEPAGE="https://github.com/StarTuz/linuxtrack-Qt6-Wayland"
MY_PN="linuxtrack-Qt6-Wayland"
SRC_URI="https://github.com/StarTuz/${MY_PN}/archive/v${PV}.tar.gz -> ${PN}-${PV}.tar.gz"
S="${WORKDIR}/${MY_PN}-${PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+winebridge"
RDEPEND="
dev-qt/qtbase:6
dev-libs/libusb
dev-libs/mxml
media-libs/liblo
media-libs/opencv
virtual/opengl
winebridge? ( virtual/wine )
"
DEPEND="${RDEPEND}"
src_configure() {
local mycmakeargs=(
-DBUILD_WINE_BRIDGE=$(usex winebridge)
)
cmake_src_configure
}
src_install() {
cmake_src_install
# Fix rpaths - These three have DT_RUNPATH='-Wl:/usr/lib' otherwise.
patchelf --set-rpath '$ORIGIN' "${ED}/usr/lib/linuxtrack/NPClient64.dll.so" || die 'Could not fix rpath'
patchelf --set-rpath '$ORIGIN' "${ED}/usr/lib/linuxtrack/NPClient64UDP.dll.so" || die 'Could not fix rpath'
patchelf --set-rpath '$ORIGIN' "${ED}/usr/lib/linuxtrack/Tester64.exe.so" || die 'Could not fix rpath'
# Move docs to corret location (CMakeLists.txt hard-codes /usr/share/doc/linuxtrack)
mv "${ED}/usr/share/doc/linuxtrack" "${ED}/usr/share/doc/${PN}-${PV}"
}
pkg_postinst() {
udev_reload
}
pkg_postrm() {
udev_reload
}

View File

@@ -0,0 +1,56 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake udev xdg git-r3
DESCRIPTION="Modernized fork of Linuxtrack headtracking software"
HOMEPAGE="https://github.com/StarTuz/linuxtrack-Qt6-Wayland"
MY_PN="linuxtrack-Qt6-Wayland"
EGIT_REPO_URI="https://github.com/StarTuz/${MY_PN}.git"
LICENSE="MIT"
SLOT="0"
KEYWORDS=""
IUSE="+winebridge"
RDEPEND="
dev-qt/qtbase:6
dev-libs/libusb
dev-libs/mxml
media-libs/liblo
media-libs/opencv
virtual/opengl
winebridge? ( virtual/wine )
"
DEPEND="${RDEPEND}"
src_configure() {
local mycmakeargs=(
-DBUILD_WINE_BRIDGE=$(usex winebridge)
)
cmake_src_configure
}
src_install() {
cmake_src_install
# Fix rpaths - These three have DT_RUNPATH='-Wl:/usr/lib' otherwise.
patchelf --set-rpath '$ORIGIN' "${ED}/usr/lib/linuxtrack/NPClient64.dll.so" || die 'Could not fix rpath'
patchelf --set-rpath '$ORIGIN' "${ED}/usr/lib/linuxtrack/NPClient64UDP.dll.so" || die 'Could not fix rpath'
patchelf --set-rpath '$ORIGIN' "${ED}/usr/lib/linuxtrack/Tester64.exe.so" || die 'Could not fix rpath'
# Move docs to corret location (CMakeLists.txt hard-codes /usr/share/doc/linuxtrack)
mv "${ED}/usr/share/doc/linuxtrack" "${ED}/usr/share/doc/${PN}-${PV}"
}
pkg_postinst() {
udev_reload
}
pkg_postrm() {
udev_reload
}

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM 'https://www.gentoo.org/dtd/metadata.dtd'>
<pkgmetadata>
<maintainer type="person">
<email>ericanebula@proton.me</email>
<name>Erica Nebula</name>
</maintainer>
<upstream>
<bugs-to>https://github.com/StarTuz/linuxtrack-Qt6-Wayland/issues</bugs-to>
<changelog>https://github.com/StarTuz/linuxtrack-Qt6-Wayland/releases</changelog>
<remote-id type="github">StarTuz/linuxtrack-Qt6-Wayland</remote-id>
</upstream>
<use>
<flag name="winebridge">Build with Wine bridge support (for use with non-native games running under wine/proton)</flag>
</use>
</pkgmetadata>