mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
Update to v0.6.1-1
This commit is contained in:
commit
d55a26ea73
2 changed files with 92 additions and 0 deletions
19
.SRCINFO
Normal file
19
.SRCINFO
Normal file
|
|
@ -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
|
||||
73
PKGBUILD
Normal file
73
PKGBUILD
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
# Maintainer: MLM-stuff <gfxoxinzh@mozmail.com>
|
||||
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
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue