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

推荐订阅源

L
LangChain Blog
有赞技术团队
有赞技术团队
博客园_首页
IT之家
IT之家
爱范儿
爱范儿
量子位
小众软件
小众软件
Jina AI
Jina AI
WordPress大学
WordPress大学
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 聂微东
The Cloudflare Blog
博客园 - 司徒正美
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
大猫的无限游戏
大猫的无限游戏
月光博客
月光博客
雷峰网
雷峰网
V
Visual Studio Blog
博客园 - Franky
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
美团技术团队
Last Week in AI
Last Week in AI
S
SegmentFault 最新的问题

AUR Newest Packages

AUR (en) - linuxqq-clipsync-git AUR (en) - libtslitex-git AUR (en) - libtslitex-git AUR (en) - carton-appimage AUR (en) - veila-git AUR (en) - veila-bin AUR (en) - vigil-baseline AUR (en) - byedroid AUR (en) - neovim-base16-git AUR (en) - pirata AUR (en) - rpi-imager-git-non-root AUR (en) - python-fastapi-sso AUR (en) - tmux-ai-titles AUR (en) - zeed-bin AUR (en) - bclone-bin AUR (en) - dwl-git-azerty AUR (en) - auggie-bin AUR (en) - libspatialaudio-git AUR (en) - libspatialaudio AUR (en) - miniupnpd-iptables-legacy AUR (en) - miniupnpd-nft AUR (en) - jeeves-bin AUR (en) - opennow AUR (en) - rotki AUR (en) - kapi-bin AUR (en) - classfi-bin AUR (en) - classfi-git AUR (en) - classfi AUR (en) - giff-git AUR (en) - budget-tracker-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: