From d55a26ea7387e43f3adf31ee502df9e0fe522b9e Mon Sep 17 00:00:00 2001 From: MLM-stuff Date: Fri, 14 Nov 2025 14:42:48 +0000 Subject: [PATCH] Update to v0.6.1-1 --- .SRCINFO | 19 +++++++++++++++ PKGBUILD | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000000000..e577ba0c667c7 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = mages-bin + pkgdesc = Mages desktop (early testing) + pkgver = 0.6.1 + pkgrel = 1 + url = https://github.com/mlm-games/mages + arch = x86_64 + arch = aarch64 + license = GPL3 + depends = fuse2 + depends = zlib + provides = mages + conflicts = mages + options = !strip + source_x86_64 = mages-0.6.1-x86_64.AppImage::https://github.com/mlm-games/mages/releases/download/0.6.1/mages-0.6.1-x86_64.AppImage + sha256sums_x86_64 = 9cb1518d1b04eb8b1bac2f0f637361581a174c5a40c1cbff5df67d19c805357a + source_aarch64 = mages-0.6.1-aarch64.AppImage::https://github.com/mlm-games/mages/releases/download/0.6.1/mages-0.6.1-aarch64.AppImage + sha256sums_aarch64 = b8585a3410043faa1f36a5ee0977c117f2239cd3e4f8ff6f9f6c541e1233185e + +pkgname = mages-bin diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000000000..e115e26b9b77b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,73 @@ +# Maintainer: MLM-stuff +pkgname=mages-bin +_pkgname=mages +pkgver=0.6.1 +pkgrel=1 +pkgdesc="Mages desktop (early testing)" +arch=('x86_64' 'aarch64') +url="https://github.com/mlm-games/mages" +license=('GPL3') +depends=('fuse2' 'zlib') +provides=('mages') +conflicts=('mages') +options=('!strip') + +source_x86_64=("${_pkgname}-${pkgver}-x86_64.AppImage::https://github.com/mlm-games/mages/releases/download/${pkgver}/mages-${pkgver}-x86_64.AppImage") +source_aarch64=("${_pkgname}-${pkgver}-aarch64.AppImage::https://github.com/mlm-games/mages/releases/download/${pkgver}/mages-${pkgver}-aarch64.AppImage") + +sha256sums_x86_64=('9cb1518d1b04eb8b1bac2f0f637361581a174c5a40c1cbff5df67d19c805357a') +sha256sums_aarch64=('b8585a3410043faa1f36a5ee0977c117f2239cd3e4f8ff6f9f6c541e1233185e') + +prepare() { + chmod +x "${_pkgname}-${pkgver}-${CARCH}.AppImage" + + # Extract .desktop file and icons from AppImage + "./${_pkgname}-${pkgver}-${CARCH}.AppImage" --appimage-extract "${_pkgname}.desktop" 2>/dev/null || true + "./${_pkgname}-${pkgver}-${CARCH}.AppImage" --appimage-extract "usr/share/icons" 2>/dev/null || true + "./${_pkgname}-${pkgver}-${CARCH}.AppImage" --appimage-extract "*.png" 2>/dev/null || true +} + +package() { + # Install AppImage + install -Dm755 "${srcdir}/${_pkgname}-${pkgver}-${CARCH}.AppImage" \ + "${pkgdir}/opt/${_pkgname}/${_pkgname}.AppImage" + + # Create wrapper script + install -dm755 "${pkgdir}/usr/bin" + cat > "${pkgdir}/usr/bin/${_pkgname}" << 'WRAPPER' +#!/bin/sh +exec /opt/mages/mages.AppImage "$@" +WRAPPER + chmod 755 "${pkgdir}/usr/bin/${_pkgname}" + + # Install .desktop file + if [ -f "squashfs-root/${_pkgname}.desktop" ]; then + install -Dm644 "squashfs-root/${_pkgname}.desktop" \ + "${pkgdir}/usr/share/applications/${_pkgname}.desktop" + # Fix Exec path in desktop file + sed -i 's|Exec=Mages|Exec=mages|g' "${pkgdir}/usr/share/applications/${_pkgname}.desktop" + else + # Fallback desktop entry if extraction failed + install -Dm644 /dev/stdin "${pkgdir}/usr/share/applications/${_pkgname}.desktop" << DESKTOP_EOF +[Desktop Entry] +Name=Mages +Comment=Mages matrix client (desktop) +MimeType=x-scheme-handler/matrix; +Exec=mages %U +Icon=mages +Terminal=false +Type=Application +Categories=Network;InstantMessaging; +StartupNotify=true +DESKTOP_EOF + fi + + # Install icons + if [ -d "squashfs-root/usr/share/icons" ]; then + cp -r squashfs-root/usr/share/icons "${pkgdir}/usr/share/" + elif [ -f "squashfs-root/${_pkgname}.png" ]; then + # Fallback: install single icon + install -Dm644 "squashfs-root/${_pkgname}.png" \ + "${pkgdir}/usr/share/pixmaps/${_pkgname}.png" + fi +}