




















🛠️ 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.
@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.)
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.
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:
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。
Updated PKGBUILD to build headsetcontrol with both shared and static library. What changed:
staticlibstooptionsto keep both static and shared library.continuoustag is used.-ffat-lto-objectstoCXXFLAGS. Otherwise, the static library is unusable.