惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Security Archives - TechRepublic
C
Cyber Attacks, Cyber Crime and Cyber Security
P
Proofpoint News Feed
Cisco Talos Blog
Cisco Talos Blog
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
CERT Recently Published Vulnerability Notes
S
Secure Thoughts
H
Hacker News: Front Page
I
Intezer
Cyberwarzone
Cyberwarzone
T
Tor Project blog
The Last Watchdog
The Last Watchdog
Google DeepMind News
Google DeepMind News
T
Threatpost
T
Tenable Blog
NISL@THU
NISL@THU
AWS News Blog
AWS News Blog
阮一峰的网络日志
阮一峰的网络日志
T
Troy Hunt's Blog
E
Exploit-DB.com RSS Feed
V
Visual Studio Blog
W
WeLiveSecurity
腾讯CDC
The GitHub Blog
The GitHub Blog
T
The Exploit Database - CXSecurity.com
Engineering at Meta
Engineering at Meta
H
Hackread – Cybersecurity News, Data Breaches, AI and More
V
V2EX - 技术
A
Arctic Wolf
N
Netflix TechBlog - Medium
S
Securelist
WordPress大学
WordPress大学
Schneier on Security
Schneier on Security
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Vercel News
Vercel News
Recent Commits to openclaw:main
Recent Commits to openclaw:main
AI
AI
N
News | PayPal Newsroom
T
The Blog of Author Tim Ferriss
B
Blog
Apple Machine Learning Research
Apple Machine Learning Research
Help Net Security
Help Net Security
Google Online Security Blog
Google Online Security Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
G
Google Developers Blog
小众软件
小众软件
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Cloudbric
Cloudbric
P
Palo Alto Networks Blog

AUR Newest Packages

AUR (en) - llvm-bolt-bin AUR (en) - unbill-tui-bin AUR (en) - unbill-cli-bin AUR (en) - omarchy-prayer AUR (en) - pi-ext-subagents AUR (en) - pgxcli-bin AUR (en) - octra-wallet AUR (en) - bambu-studio AUR (en) - graphify-bin AUR (en) - word-snatchers-cli AUR (en) - typing-game-cli AUR (en) - agent-deck-bin AUR (en) - fconvert AUR (en) - sd-boot AUR (en) - mutui AUR (en) - vapor-openvr-git AUR (en) - pi-ext-awsdocs AUR (en) - omniroute-bin AUR (en) - ddnsto-bin AUR (en) - herdr-bin AUR (en) - superset-bin AUR (en) - dabradio-bin openaquaero AUR (en) - fmradio-bin AUR (en) - luna-translator AUR (en) - braincup-bin AUR (en) - ioruba-desktop-bin AUR (en) - ioruba-desktop AUR (en) - deadsync-bin AUR (en) - deadsync AUR (en) - claurst-bin AUR (en) - festival-bin AUR (en) - awesomenes AUR (en) - tofi-rs-git AUR (en) - wallrift AUR (en) - smolvm-bin AUR (en) - smolvm AUR (en) - uac-launch-control-bin AUR (en) - openclaw AUR (en) - runex-bin AUR (en) - sing-box-ref1nd-beta-bin AUR (en) - netscan-tui AUR (en) - koharu-appimage AUR (en) - pulsedb AUR (en) - clashmi-bin AUR (en) - viper-py AUR (en) - netwatch-tui-bin AUR (en) - scran AUR (en) - snapdog-client AUR (en) - snapdog AUR (en) - opentubex AUR (en) - fafind-bin AUR (en) - smosummary AUR (en) - cardwire AUR (en) - clawx-appimage AUR (en) - echomusic-appimage AUR (en) - vermouth AUR (en) - clawd-on-desk-bin AUR (en) - oxideterm-bin AUR (en) - shed-sh AUR (en) - haus-bin AUR (en) - stably-orca-bin AUR (en) - emerald-legacy-launcher-git AUR (en) - kwim AUR (en) - carton-appimage AUR (en) - veila-git AUR (en) - veila-bin AUR (en) - byedroid AUR (en) - zeed-bin AUR (en) - dwl-git-azerty AUR (en) - opennow AUR (en) - budget-tracker-bin AUR (en) - budget-tracker AUR (en) - tasks-bin AUR (en) - gitmun-bin AUR (en) - drop-bin AUR (en) - solidc-git AUR (en) - paseo-desktop-bin AUR (en) - yt-dvr AUR (en) - enneagram AUR (en) - openring-rs AUR (en) - openring-rs-bin AUR (en) - whisper.cpp-cuda-bin AUR (en) - libggml-cuda-bin AUR (en) - revdiff AUR (en) - tdesktop-nolimit AUR (en) - cert-checker AUR (en) - goosestation-libretro AUR (en) - kei AUR (en) - hyprlogin-git AUR (en) - kebiki AUR (en) - runex AUR (en) - ikuai-cli AUR (en) - cosmic-ext-connected-git AUR (en) - ter-music-cn elio-bin AUR (en) - qtkeychain-qt5 AUR (en) - gesturecontrol AUR (en) - ouijit-bin AUR (en) - usque-bin
AUR (en) - headsetcontrol-git
2026-06-15 · via AUR Newest Packages

Latest Comments

TheBill2001 commented on 2026-01-10 00:19 (UTC) (edited on 2026-01-10 00:36 (UTC) by TheBill2001)

Updated PKGBUILD to build headsetcontrol with both shared and static library. What changed:

  • Add staticlibs to options to keep both static and shared library.
  • Switch to use annotated tag instead. Otherwise, the continuous tag is used.
  • Add -ffat-lto-objects to CXXFLAGS. Otherwise, the static library is unusable.
  • No need to manually generate udev rules anymore.
diff --git a/.SRCINFO b/.SRCINFO
index 081f0a5..28a5871 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,16 @@
 pkgbase = headsetcontrol-git
    pkgdesc = Sidetone and Battery status for Logitech G930, G533, G633, G933 SteelSeries Arctis 7/PRO 2019 and Corsair VOID (Pro)
-   pkgver = 2.7.0.r1.gbd8aed3
-   pkgrel = 2
+   pkgver = 3.1.0.r45.g689115a
+   pkgrel = 1
    url = https://github.com/Sapd/HeadsetControl
    arch = x86_64
-   license = GPL3
+   license = GPL-3.0-only
    makedepends = cmake
    makedepends = git
    depends = hidapi
-   provides = headsetcontrol=2.7.0.r1.gbd8aed3
+   provides = headsetcontrol=3.1.0.r45.g689115a
    conflicts = headsetcontrol
+   options = staticlibs
    source = headsetcontrol::git+https://github.com/Sapd/HeadsetControl.git
    sha256sums = SKIP

diff --git a/PKGBUILD b/PKGBUILD
index b84cf09..8f3e4d2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,42 +1,42 @@
 # Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz>
 # Contributor: Lucas Saliés Brum <lucas@archlinux.com.br>
 # Contributor: s3lph <aur-hsdquy@s3lph.me>
+# Contributor: Trần Nam Tuấn <tuantran1632001@gmail.com>

 _pkgname='headsetcontrol'
 pkgname="${_pkgname}-git"
-pkgver=2.7.0.r1.gbd8aed3
-pkgrel=2
+pkgver=3.1.0.r45.g689115a
+pkgrel=1
 pkgdesc='Sidetone and Battery status for Logitech G930, G533, G633, G933 SteelSeries Arctis 7/PRO 2019 and Corsair VOID (Pro)'
 arch=('x86_64')
 url='https://github.com/Sapd/HeadsetControl'
-license=('GPL3')
+license=('GPL-3.0-only')
 depends=('hidapi')
 makedepends=('cmake' 'git')
 provides=("${_pkgname}=${pkgver}")
 conflicts=("${_pkgname}")
 source=("${_pkgname}::git+${url}.git")
 sha256sums=('SKIP')
+options=(staticlibs)

 pkgver() {
   cd "${_pkgname}"
-  git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+  git describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
 }

 build() {
-  export CFLAGS+=" ${CPPFLAGS}"
-  export CXXFLAGS+=" ${CPPFLAGS}"
+  export CXXFLAGS+=" ${CPPFLAGS} -ffat-lto-objects"
   cmake -B 'build' -S "${_pkgname}" \
     -DCMAKE_BUILD_TYPE='None' \
     -DCMAKE_INSTALL_PREFIX='/usr' \
-    -Wno-dev
-  make -C 'build'
+    -Wno-dev \
+    -DBUILD_SHARED_LIBRARY=ON
+  cmake --build build
 }

 package() {
-  make DESTDIR="${pkgdir}" PREFIX='/usr' -C 'build' install
+  DESTDIR="$pkgdir" cmake --install build
   install -Dvm644 "${_pkgname}/README.md" -t "${pkgdir}/usr/share/doc/${_pkgname}"
-  install -dvm755 "${pkgdir}/usr/lib/udev/rules.d/"
-  "${pkgdir}/usr/bin/headsetcontrol" -u > "${pkgdir}/usr/lib/udev/rules.d/70-headsets.rules"
 }

 # vim: ts=2 sw=2 et:

TheBill2001 commented on 2026-01-07 19:33 (UTC)

TwistedXenos commented on 2025-05-15 23:02 (UTC)

🛠️ After running paru -Syu --devel, the update to headsetcontrol-git (2.7.0.r1.gbd8aed3-2) appears in the AUR helper GUI, but when building, the version reverts to continuous.r0.g12d8483-1.

This seems to happen because the Git repository hasn't actually advanced — pkgver() resolves to the same commit as before (g12d8483), so the installed version doesn’t change.

s3lph commented on 2023-07-03 20:24 (UTC)

@MarsSeed I've updated the package to include your proposed changes.

(I have to say, I was quite surprised to be notified here and and just found out I'm now listed as maintainer of this package for some reason.)

MarsSeed commented on 2023-07-02 02:00 (UTC)

jomority commented on 2021-05-20 18:09 (UTC)

Thanks to @s3lph for the solution. It works!

However, I would suggest using /usr/lib/udev/rules.d/ instead of /etc/udev/rules.d/ since packages should place their rules there.

s3lph commented on 2021-05-18 20:17 (UTC)

The upstream recently changed their approach to udev rules: Previously they shipped a precomiled list of rules, now they are generated dynamically. Please update the PKGBUILD accordingly. E.g. something like this:

--- a/PKGBUILD  2021-05-18 21:54:34.588270559 +0200
+++ b/PKGBUILD  2021-05-18 22:04:48.154982524 +0200
@@ -33,6 +33,8 @@
 package() {
   make DESTDIR="${pkgdir}" PREFIX='/usr' -C 'build' install
   install -Dvm644 "${_pkgname}/README.md" -t "${pkgdir}/usr/share/doc/${_pkgname}"
+  install -dvm755 "${pkgdir}/etc/udev/rules.d/"
+  "${pkgdir}/usr/bin/headsetcontrol" -u > "${pkgdir}/etc/udev/rules.d/70-headsets.rules"
 }

 # vim: ts=2 sw=2 et: