sdl3-trigger-rumble-hack

LOW
maintainer detian 0 votes scanned 2026-10-31 15:58:34.921556
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1# Maintainer: detiam <dehe_tian at outlook dot com>
2# Contributor: Sven-Hendrik Haase <svenstaro@archlinux.org>
3
4_pkgname=sdl3
5pkgname=sdl3-trigger-rumble-hack
6pkgver=3.4.18
7pkgrel=1
8pkgdesc="A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 3) (with trigger rumble hack)"
9arch=('x86_64')
10url="https://www.libsdl.org"
11license=('Zlib')
12depends=(
13 'glibc'
14 'libxext'
15 'libxrender'
16 'libx11'
17 'libgl'
18 'libxcursor'
19 'hidapi'
20 'libusb'
21)
22makedepends=(
23 'cmake'
24 'ninja'
25 'jack'
26 'wayland-protocols'
27 'alsa-lib'
28 'mesa'
29 'libpulse'
30 'libxrandr'
31 'libxinerama'
32 'wayland'
33 'libxkbcommon'
34 'ibus'
35 'libxss'
36 'pipewire'
37 'libdecor'
38 'vulkan-headers'
39 'sndio'
40)
41optdepends=(
42 'alsa-lib: ALSA audio driver'
43 'libpulse: PulseAudio audio driver'
44 'jack: JACK audio driver'
45 'pipewire: PipeWire audio driver'
46 'vulkan-driver: vulkan renderer'
47 'sndio: sndio audio driver'
48 'libdecor: Wayland client decorations'
49)
50provides=("$_pkgname")
51conflicts=("$_pkgname")
52source=(
53 "https://github.com/libsdl-org/SDL/releases/download/release-${pkgver}/SDL3-${pkgver}.tar.gz"
54 "0001-joystick-enable-the-trigger-rumble-hack-only-for-mod.patch"
55)
56sha512sums=('e59df7c19af3ce567e89b987aaf7852ea680beb52acd97dff0fad0688b20a8e0724a4ce33c655a88095d25dadba0e5615c95297ae6327bec149c902ffd2eb15b'
57 '7dc8b5f1de359a8deb28de6f443d6fc41bc46ee237bc23a7e7af359087cb33850ce07bfa3001bebc011c5cfad48af04dc14dc3c71757443640bcc672e41ea869')
58
59prepare() {
60 cd "SDL3-${pkgver}"
61
62 # Apply patches
63 for patch in "${srcdir}"/0001-*.patch; do
64 echo "Applying patch: ${patch}"
65 patch -p1 < "${patch}"
66 done
67}
68
69build() {
70 CFLAGS+=" -ffat-lto-objects"
71 cmake -S SDL3-${pkgver} \
72 -B build -G Ninja \
73 -D CMAKE_BUILD_TYPE=None \
74 -D CMAKE_INSTALL_PREFIX=/usr \
75 -D SDL_STATIC=OFF \
76 -D SDL_RPATH=OFF
77 cmake --build build
78}
79
80package() {
81 DESTDIR="${pkgdir}" cmake --install build
82 install -Dm755 build/test/testcontroller "$pkgdir/usr/bin/testcontroller"
83 install -Dm644 SDL3-${pkgver}/LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
84}
85
86# vim:set ts=2 sw=2 et:
87

Scan history

Scanned at (UTC)SeverityRules
2026-10-31 15:58:34 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion