linuwu-sense-dkms-git

LOW
maintainer CPT_Dawn 0 votes scanned 2026-10-28 09:50:05.638525
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: CPT_Dawn <dev@cptdawn.dev>
2#
3# Tracks Linuwu-Sense main. See docs/adr/0002-own-linuwu-sense-dkms-git.md.
4_pkgname=linuwu-sense
5pkgname=linuwu-sense-dkms-git
6pkgver=r169.4483b6c
7pkgrel=1
8pkgdesc='Linuwu-Sense kernel module for Acer Predator/Nitro laptops (DKMS, git, clang-aware)'
9arch=('any')
10url='https://github.com/0x7375646F/Linuwu-Sense'
11license=('GPL-2.0-or-later')
12depends=('dkms')
13makedepends=('git')
14optdepends=(
15 'linux-headers: build the module for the stock Arch kernel (use your kernel'\''s headers package)'
16 'clang: build the module for clang-built kernels (CachyOS and friends)'
17 'lld: build the module for clang-built kernels (CachyOS and friends)'
18 'llvm: build the module for clang-built kernels (CachyOS and friends)'
19)
20provides=('linuwu-sense-dkms')
21conflicts=('linuwu-sense-dkms')
22install=linuwu-sense-dkms-git.install
23# Temporary: upstream main lost the PH16-71 (Linuwu-Sense#103). Drop this and its
24# prepare() step once https://github.com/0x7375646F/Linuwu-Sense/pull/152 merges.
25_ph16_71_patch=0001-restore-predator-ph16-71-dmi-entry.patch
26source=(
27 "$_pkgname::git+$url.git"
28 'dkms.conf.in'
29 'Kbuild'
30 'linuwu-sense.modprobe.conf'
31 'linuwu-sense.modules-load.conf'
32 "$_ph16_71_patch"
33)
34sha256sums=('SKIP'
35 '60847063de1bc013b0c426cdab46e08ba8d4e5a6844528674c2820b4b6ada48c'
36 '5a77a374f071164ce51b4b50d5fdff2c3cdc52ae435b3317c6aa951f546cdffc'
37 'f4a17978d732f3c74cae8eade7bba21aab9cb54af0cd47c92b6239cf58946d8f'
38 'b98f144b07ec367c2ac334ef3abcf6634200ccb23ea2884c9eff95bd18bcd6e1'
39 '0c1f66d5f52aa60e9f437da2068b58d2685a1327ac12fa6f04c3188f4274894f')
40
41pkgver() {
42 cd "$_pkgname"
43 printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
44}
45
46prepare() {
47 cd "$_pkgname"
48 if grep -Eq 'DMI_PRODUCT_NAME, *"Predator PH16-71"' src/linuwu_sense.c; then
49 echo "Upstream has the PH16-71 DMI entry; skipping $_ph16_71_patch (time to drop it)"
50 return 0
51 fi
52 # git apply refuses fuzz: a patch that no longer fits fails the build loudly.
53 if ! git apply --verbose "$srcdir/$_ph16_71_patch"; then
54 echo "$_ph16_71_patch no longer applies to upstream; refresh it from Linuwu-Sense#152" >&2
55 return 1
56 fi
57}
58
59package() {
60 local dest="$pkgdir/usr/src/$_pkgname-$pkgver"
61
62 # DKMS source tree: our own dkms.conf and Kbuild (upstream's Makefile has a
63 # sudo-based signing block that has no business inside a DKMS build).
64 install -dm755 "$dest/src"
65 install -m644 "$_pkgname/src/linuwu_sense.c" "$dest/src/"
66 install -m644 Kbuild "$dest/Kbuild"
67 sed "s/@PKGVER@/$pkgver/" dkms.conf.in >"$dest/dkms.conf"
68 chmod 644 "$dest/dkms.conf"
69
70 # acer_wmi claims the same WMI GUIDs; keep it out of the way.
71 install -Dm644 linuwu-sense.modprobe.conf "$pkgdir/usr/lib/modprobe.d/linuwu-sense.conf"
72 install -Dm644 linuwu-sense.modules-load.conf "$pkgdir/usr/lib/modules-load.d/linuwu-sense.conf"
73
74 install -Dm644 "$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
75}
76

Scan history

Scanned at (UTC)SeverityRules
2026-10-28 09:50:05 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