From 775eaa52a7fcd29b22e9395e88ec7a797454377b Mon Sep 17 00:00:00 2001 From: AzPepoze Date: Thu, 15 Jan 2026 17:29:39 +0700 Subject: [PATCH] add go when build --- .SRCINFO | 1 + PKGBUILD | 13 +++++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index f92e4539c8e94..a6be6c5fb97f5 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -7,6 +7,7 @@ pkgbase = linux-wallpaperengine-gui-git license = MIT makedepends = git makedepends = npm + makedepends = go makedepends = python depends = linux-wallpaperengine depends = gtk3 diff --git a/PKGBUILD b/PKGBUILD index ebb03ea4db96b..1be5e44044b0c 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -8,7 +8,7 @@ arch=('x86_64') url="https://github.com/AzPepoze/linux-wallpaperengine-gui" license=('MIT') depends=('linux-wallpaperengine' 'gtk3' 'nss' 'libxss' 'alsa-lib') -makedepends=('git' 'npm' 'python') +makedepends=('git' 'npm' 'go' 'python') provides=("$_pkgname") conflicts=("$_pkgname" "${_pkgname}-bin") source=("git+${url}.git") @@ -26,8 +26,13 @@ prepare() { build() { cd "$srcdir/$_pkgname" + + # Set local caches for Electron and Go to avoid using global user directories export ELECTRON_CACHE="$srcdir/electron-cache" export ELECTRON_BUILDER_CACHE="$srcdir/electron-cache" + export GOPATH="$srcdir/go" + export GOCACHE="$srcdir/go-build" + export GOMODCACHE="$GOPATH/pkg/mod" npm install --verbose npm run build @@ -55,7 +60,7 @@ Type=Application Categories=Utility; EOF - if [ -f "build/icon.png" ]; then - install -Dm644 "build/icon.png" "$pkgdir/usr/share/pixmaps/$_pkgname.png" + if [ -f "build/frontend/icon.png" ]; then + install -Dm644 "build/frontend/icon.png" "$pkgdir/usr/share/pixmaps/$_pkgname.png" fi -} \ No newline at end of file +}