From 5fee5d06cb2943a6240d8002a333b9691cbecfc9 Mon Sep 17 00:00:00 2001 From: parzival-space Date: Fri, 6 Feb 2026 14:36:58 +0000 Subject: [PATCH] Version bump to 0.4.7-1 Latest commit message: Update AUR Pipeline and Readme (#2) --- .SRCINFO | 18 ++++++++++++++++++ PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9da5f2ab51ca --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = wooting-bg-service + pkgdesc = Wooting Background Service for Wootility + pkgver = 0.4.7 + pkgrel = 1 + url = https://wooting.io/wootility + arch = x86_64 + license = unknown + depends = glibc + depends = fuse2 + depends = hicolor-icon-theme + depends = zlib + provides = wooting-bg-service + noextract = wooting-bg-service-0.4.7.AppImage + options = !strip + source = wooting-bg-service-0.4.7.AppImage::https://api.wooting.io/public/bg-service/download-installer?target=linux&version=0.4.7 + sha256sums = e93a19712a37b75d8ca2315c088a0066fa7dbf84cccddb0265d191c228ef9e62 + +pkgname = wooting-bg-service diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2dd14e8d8fde --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,52 @@ +# Maintainer: Malte Linke + +pkgname=wooting-bg-service +pkgdesc='Wooting Background Service for Wootility' +pkgver=0.4.7 +pkgrel=1 +arch=('x86_64') +url="https://wooting.io/wootility" +license=(unknown) +provides=('wooting-bg-service') +depends=(glibc fuse2 hicolor-icon-theme zlib) +options=(!strip) + +_appImageFile="${pkgname}-${pkgver}.AppImage" +_desktopFile="Wooting Background Service.desktop" + +noextract=("${_appImageFile}") +source=("${_appImageFile}::https://api.wooting.io/public/bg-service/download-installer?target=linux&version=${pkgver}") +sha256sums=("e93a19712a37b75d8ca2315c088a0066fa7dbf84cccddb0265d191c228ef9e62") + +prepare() { + # create copy of appimage file in case the build dir is mounted with noexec + cp "${_appImageFile}" "${_appImageFile}.copy" + chmod +x "${_appImageFile}.copy" + + # extract the appimage + ./${_appImageFile}.copy --appimage-extract "usr/share/applications" + ./${_appImageFile}.copy --appimage-extract "usr/share/icons" + rm ${_appImageFile}.copy +} + +build() { + # Adjust .desktop so it will work outside of AppImage container, add Utility category + sed -i -E "s|Exec=AppRun|Exec=env DESKTOPINTEGRATION=false /usr/bin/${pkgname}|" "squashfs-root/usr/share/applications/${_desktopFile}" + echo "Categories=Utility;" >> "squashfs-root/usr/share/applications/${_desktopFile}" + + # Fix permissions; .AppImage permissions are 700 for all directories + chmod -R a-x+rX squashfs-root/usr +} + +package() { + install -Dm755 ${_appImageFile} -t "${pkgdir}/opt/${pkgname}" + + # Symlink executable + install -d "${pkgdir}/usr/bin/" + ln -s /opt/${pkgname}/${_appImageFile} "${pkgdir}/usr/bin/${pkgname}" + + # Install desktop entry and icons + install -Dm644 "squashfs-root/usr/share/applications/${_desktopFile}" -t "${pkgdir}/usr/share/applications" + install -d "${pkgdir}/usr/share/" + cp -a squashfs-root/usr/share/icons "${pkgdir}/usr/share/" +}