Package Details: galaxybudsclient-git r1797.e2ffd828-1

Git Clone URL: https://aur.archlinux.org/galaxybudsclient-git.git (read-only, click to copy)
Package Base: galaxybudsclient-git
Description: Unofficial manager for the Samsung Galaxy Buds, Buds+, Buds Live and Buds Pro. Master branch.
Upstream URL: https://github.com/ThePBone/GalaxyBudsClient
Licenses: GPL-3.0-only
Conflicts: galaxybudsclient-bin
Provides: galaxybudsclient-git
Submitter: ecetin
Maintainer: ecetin
Last Packager: ecetin
Votes: 0
Popularity: 0.000000
First Submitted: 2024-03-11 01:24 (UTC)
Last Updated: 2024-06-28 10:23 (UTC)

Latest Comments

gmoben commented on 2025-12-20 04:40 (UTC)

I was able to get it to build by requiring at least dotnet 10.0 and updating to the installed patch revision in global.json, adding missing framework flags, and adding Generators.csproj in a separate restore. Patch below:

--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,14 +2,14 @@

 _pkgname="galaxybudsclient"
 pkgname="${_pkgname}-git"
-pkgver=r1797.e2ffd828
+pkgver=r2028.2bae0446
 pkgrel=1
 pkgdesc="Unofficial manager for the Samsung Galaxy Buds, Buds+, Buds Live and Buds Pro. Master branch."
 arch=('x86_64' 'armv7h' 'aarch64')
 url="https://github.com/ThePBone/GalaxyBudsClient"
 license=('GPL-3.0-only')
 depends=('gcc-libs' 'zlib' 'bluez')
-makedepends=('git' 'dotnet-sdk>=8.0')
+makedepends=('git' 'dotnet-sdk>=10.0')
 provides=("${pkgname}")
 conflicts=("${_pkgname}-bin")
 options=('!strip')
@@ -32,7 +32,7 @@

 prepare() {
    cd "$srcdir/${pkgname}"
-  
+
   # Detect architecture
   if [ $CARCH == "x86_64" ]; then
     DOTNETARCH="linux-x64"
@@ -42,15 +42,38 @@
     DOTNETARCH="linux-arm64"
   fi

-  # Restore dependencies
-  dotnet restore -r $DOTNETARCH --configfile "$srcdir/${pkgname}/GalaxyBudsClient/nuget.config" "$srcdir/${pkgname}/GalaxyBudsClient/GalaxyBudsClient.csproj"
+  # Fix SDK version to match installed dotnet-sdk
+  local installed_sdk=$(dotnet --version)
+  local required_sdk=$(grep -oP '"version":\s*"\K[^"]+' global.json)
+  local installed_minor="${installed_sdk%.*}"
+  local required_minor="${required_sdk%.*}"
+
+  if [ "$installed_minor" != "$required_minor" ]; then
+    echo "Error: Installed SDK minor version ($installed_minor) doesn't match required ($required_minor)"
+    return 1
+  fi
+
+  sed -i "s/\"version\": \"$required_sdk\"/\"version\": \"$installed_sdk\"/" global.json
+
+  # Restore dependencies (main project for net10.0, generators for netstandard2.0)
+  dotnet restore -r $DOTNETARCH -p:TargetFramework=net10.0 --configfile "$srcdir/${pkgname}/GalaxyBudsClient/nuget.config" "$srcdir/${pkgname}/GalaxyBudsClient/GalaxyBudsClient.csproj"
+  dotnet restore "$srcdir/${pkgname}/GalaxyBudsClient.Generators/GalaxyBudsClient.Generators.csproj"
 }

 build() {
    cd "$srcdir/${pkgname}"
-  
+
+  # Detect architecture
+  if [ $CARCH == "x86_64" ]; then
+    DOTNETARCH="linux-x64"
+  elif [ $CARCH == "armv7h" ]; then
+    DOTNETARCH="linux-arm"
+  elif [ $CARCH == "aarch64" ]; then
+    DOTNETARCH="linux-arm64"
+  fi
+
   # Build
-  dotnet publish -r $DOTNETARCH -o "$srcdir/${pkgname}/bin" -c Release -p:PublishSingleFile=true --self-contained true --no-restore "$srcdir/${pkgname}/GalaxyBudsClient/GalaxyBudsClient.csproj"
+  dotnet publish -r $DOTNETARCH -f net10.0 -o "$srcdir/${pkgname}/bin" -c Release -p:PublishSingleFile=true --self-contained true --no-restore "$srcdir/${pkgname}/GalaxyBudsClient/GalaxyBudsClient.csproj"

   # Set exectuable bit
   cd bin

Niinu commented on 2025-07-28 10:25 (UTC)

Build is failing with:

MSBUILD : error MSB1008: Only one project can be specified.
    Full command line: '/usr/share/dotnet/sdk/9.0.108/MSBuild.dll -maxcpucount -verbosity:m -tlp:default=auto -nologo -target:Publish --property:_IsPublishing=true --property:PublishSingleFile=true -property:SelfContained=True -property:_CommandLineDefinedSelfContained=true -property:RuntimeIdentifier=-o -property:_CommandLineDefinedRuntimeIdentifier=true -property:Configuration=Release -restore:false -property:DOTNET_CLI_DISABLE_PUBLISH_AND_PACK_RELEASE=true /home/olivia/.cache/yay/galaxybudsclient-git/src/galaxybudsclient-git/bin /home/olivia/.cache/yay/galaxybudsclient-git/src/galaxybudsclient-git/GalaxyBudsClient/GalaxyBudsClient.csproj'
  Switches appended by response files:
Switch: /home/olivia/.cache/yay/galaxybudsclient-git/src/galaxybudsclient-git/GalaxyBudsClient/GalaxyBudsClient.csproj

For switch syntax, type "MSBuild -help"
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: galaxybudsclient-git-exit status 4