commit:     30450cffa21e76fb54548d05f9d8194329a58320
Author:     Kenton Groombridge <concord <AT> gentoo <DOT> org>
AuthorDate: Thu May 29 16:17:23 2025 +0000
Commit:     Kenton Groombridge <concord <AT> gentoo <DOT> org>
CommitDate: Thu May 29 18:04:28 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30450cff

media-sound/headsetcontrol: new package, add 3.1.0

Signed-off-by: Kenton Groombridge <concord <AT> gentoo.org>

 media-sound/headsetcontrol/Manifest                |  1 +
 .../headsetcontrol/headsetcontrol-3.1.0.ebuild     | 40 ++++++++++++++++++++++
 media-sound/headsetcontrol/metadata.xml            | 17 +++++++++
 3 files changed, 58 insertions(+)

diff --git a/media-sound/headsetcontrol/Manifest 
b/media-sound/headsetcontrol/Manifest
new file mode 100644
index 000000000000..db1250404f6e
--- /dev/null
+++ b/media-sound/headsetcontrol/Manifest
@@ -0,0 +1 @@
+DIST headsetcontrol-3.1.0.tar.gz 76475 BLAKE2B 
f5beb65d1d39472266beac0e1dd1d67427bb5a0068d3ac052b3674dde6eaa16488a841c84bbe43a2e95a4353eb822e66a3250e6b68f2e42ea13347dce8ebc994
 SHA512 
fd44163908ef9cf312703c42bfe85784c34c69b39384fb023711728cedda0b2492f9d94b480f573bb9b96adb9a454e8d208f727985691c59ff53620ebfc93fe0

diff --git a/media-sound/headsetcontrol/headsetcontrol-3.1.0.ebuild 
b/media-sound/headsetcontrol/headsetcontrol-3.1.0.ebuild
new file mode 100644
index 000000000000..c496510715ed
--- /dev/null
+++ b/media-sound/headsetcontrol/headsetcontrol-3.1.0.ebuild
@@ -0,0 +1,40 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake udev
+
+MY_PN="HeadsetControl"
+
+DESCRIPTION="A tool to control certain aspects of USB-connected headsets on 
Linux"
+HOMEPAGE="https://github.com/Sapd/HeadsetControl";
+SRC_URI="https://github.com/Sapd/HeadsetControl/archive/refs/tags/${PV}.tar.gz 
-> ${P}.tar.gz"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="udev"
+
+DEPEND="
+       dev-libs/hidapi
+       udev? ( virtual/udev )
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+       default
+       sed -i "s#lib/udev/rules.d/#$(get_udevdir)/rules.d#" CMakeLists.txt || 
die "Failed correcting udev rules directory"
+       cmake_src_prepare
+}
+
+pkg_postinst() {
+       use udev && udev_reload
+}
+
+pkg_postrm() {
+       use udev && udev_reload
+}

diff --git a/media-sound/headsetcontrol/metadata.xml 
b/media-sound/headsetcontrol/metadata.xml
new file mode 100644
index 000000000000..eb57f864df8d
--- /dev/null
+++ b/media-sound/headsetcontrol/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <name>Kenton Groombridge</name>
+               <email>[email protected]</email>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">Sapd/HeadsetControl</remote-id>
+               <bugs-to>https://github.com/Sapd/HeadsetControl/issues</bugs-to>
+       </upstream>
+       <longdescription>
+               A tool to control certain aspects of USB-connected headsets on 
Linux.
+               Currently, support is provided for adjusting sidetone, getting 
battery
+               state, controlling LEDs, and setting the inactive time.
+       </longdescription>
+</pkgmetadata>

Reply via email to