From b3c14f45cd24f4a27fd9f86e594f80d54229e666 Mon Sep 17 00:00:00 2001 From: AzPepoze Date: Mon, 15 Dec 2025 07:05:53 +0700 Subject: [PATCH] init project --- .SRCINFO | 22 ++++++++++++++++++++ PKGBUILD | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000000000..71dd49b0487f3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = linux-wallpaperengine-gui-git + pkgdesc = A GUI for linux-wallpaperengine, powered by Electron (Git version) + pkgver = r1.0000000 + pkgrel = 1 + url = https://github.com/AzPepoze/linux-wallpaperengine-gui + arch = x86_64 + license = MIT + makedepends = git + makedepends = npm + makedepends = python + depends = linux-wallpaperengine + depends = gtk3 + depends = nss + depends = libxss + depends = alsa-lib + provides = linux-wallpaperengine-gui + conflicts = linux-wallpaperengine-gui + conflicts = linux-wallpaperengine-gui-bin + source = git+https://github.com/AzPepoze/linux-wallpaperengine-gui.git + sha256sums = SKIP + +pkgname = linux-wallpaperengine-gui-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000000000..331fa86f5c7f2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,61 @@ +# Maintainer: AzPepoze +pkgname=linux-wallpaperengine-gui-git +_pkgname=linux-wallpaperengine-gui +pkgver=r1.0000000 +pkgrel=1 +pkgdesc="A GUI for linux-wallpaperengine, powered by Electron (Git version)" +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') +provides=("$_pkgname") +conflicts=("$_pkgname" "${_pkgname}-bin") +source=("git+${url}.git") +sha256sums=('SKIP') + +pkgver() { + cd "$srcdir/$_pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "$srcdir/$_pkgname" + mkdir -p "$srcdir/electron-cache" +} + +build() { + cd "$srcdir/$_pkgname" + export ELECTRON_CACHE="$srcdir/electron-cache" + export ELECTRON_BUILDER_CACHE="$srcdir/electron-cache" + + npm install + npm run build +} + +package() { + cd "$srcdir/$_pkgname" + local _build_dir="dist/linux-unpacked" + + install -d "$pkgdir/opt/$_pkgname" + cp -r "$_build_dir/"* "$pkgdir/opt/$_pkgname/" + + install -d "$pkgdir/usr/bin" + ln -s "/opt/$_pkgname/$_pkgname" "$pkgdir/usr/bin/$_pkgname" + + install -d "$pkgdir/usr/share/applications" + cat < "$pkgdir/usr/share/applications/$_pkgname.desktop" +[Desktop Entry] +Name=Linux Wallpaper Engine GUI +Comment=Manage wallpapers for linux-wallpaperengine +Exec=/usr/bin/$_pkgname +Icon=$_pkgname +Terminal=false +Type=Application +Categories=Utility; +EOF + + if [ -f "build/icon.png" ]; then + install -Dm644 "build/icon.png" "$pkgdir/usr/share/pixmaps/$_pkgname.png" + fi +} \ No newline at end of file