diff options
author | zxp19821005 | 2024-01-12 10:58:25 +0800 |
---|---|---|
committer | zxp19821005 | 2024-01-12 10:58:25 +0800 |
commit | 6922451921d62bc3d76f0276beeacbebbbecf90f (patch) | |
tree | a82d1536fa494474e9fc31774f60303200c6af2b | |
download | aur-6922451921d62bc3d76f0276beeacbebbbecf90f.tar.gz |
update to 3.3.2
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 51 | ||||
-rw-r--r-- | altitude-metrix-wallet.sh | 15 |
3 files changed, 89 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b4807406cf24 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = altitude-metrix-wallet-bin + pkgdesc = The Metrix wallet https://metrixcoin.com. + pkgver = 3.3.2 + pkgrel = 1 + url = https://github.com/TheLindaProjectInc/Altitude + arch = x86_64 + license = GPL3 + makedepends = squashfuse + depends = hicolor-icon-theme + depends = electron25 + depends = dbus-glib + depends = libdbusmenu-glib + depends = gtk2 + depends = java-runtime + depends = nodejs + provides = altitude-metrix-wallet=3.3.2 + conflicts = altitude-metrix-wallet + source = altitude-metrix-wallet-3.3.2.AppImage::https://github.com/TheLindaProjectInc/Altitude/releases/download/3.3.2/Altitude-Metrix-Wallet-linux-x64.AppImage + source = altitude-metrix-wallet.sh + sha256sums = 1dd43d34b0c4e8870d099dbcaacfe09b8121f16453e336f446aeae1e79871301 + sha256sums = d4272fed78cdcacd9edfb019134ac485d65b43f4d8c7a4179edbaed56af9b231 + +pkgname = altitude-metrix-wallet-bin diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a4272e95e9f4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: zxp19821005 <zxp19821005 at 163 dot com> +pkgname=altitude-metrix-wallet-bin +_appname=Altitude-Metrix-Wallet +pkgver=3.3.2 +_electronversion=25 +pkgrel=1 +pkgdesc="The Metrix wallet https://metrixcoin.com." +arch=('x86_64') +url="https://github.com/TheLindaProjectInc/Altitude" +license=('GPL3') +provides=("${pkgname%-bin}=${pkgver}") +conflicts=("${pkgname%-bin}") +depends=( + 'hicolor-icon-theme' + "electron${_electronversion}" + 'dbus-glib' + 'libdbusmenu-glib' + 'gtk2' + 'java-runtime' + 'nodejs' +) +makedepends=( + 'squashfuse' +) +source=( + "${pkgname%-bin}-${pkgver}.AppImage::${url}/releases/download/${pkgver}/${_appname}-linux-x64.AppImage" + "${pkgname%-bin}.sh" +) +sha256sums=('1dd43d34b0c4e8870d099dbcaacfe09b8121f16453e336f446aeae1e79871301' + 'd4272fed78cdcacd9edfb019134ac485d65b43f4d8c7a4179edbaed56af9b231') +build() { + sed -e "s|@electronversion@|${_electronversion}|g" \ + -e "s|@appname@|${pkgname%-bin}|g" \ + -e "s|@appasar@|app.asar|g" \ + -i "${srcdir}/${pkgname%-bin}.sh" + chmod a+x "${srcdir}/${pkgname%-bin}-${pkgver}.AppImage" + "${srcdir}/${pkgname%-bin}-${pkgver}.AppImage" --appimage-extract > /dev/null + sed "s|AppRun --no-sandbox|${pkgname%-bin}|g" -i "${srcdir}/squashfs-root/${pkgname%-bin}.desktop" + find "${srcdir}/squashfs-root/resources" -type d -exec chmod 755 {} \; +} +package() { + install -Dm755 "${srcdir}/${pkgname%-bin}.sh" -t "${pkgdir}/usr/bin/${pkgname%-bin}" + install -Dm644 "${srcdir}/squashfs-root/resources/app.asar" -t "${pkgdir}/usr/lib/${pkgname%-bin}" + cp -r "${srcdir}/squashfs-root/resources/app.asar.unpacked" "${pkgdir}/usr/lib/${pkgname%-bin}" + install -Dm644 "${srcdir}/squashfs-root/usr/lib/"* -t "${pkgdir}/usr/lib/${pkgname%-bin}/lib" + install -Dm644 "${srcdir}/squashfs-root/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications" + for _icons in 16x16 24x24 32x32 48x48 64x64 128x128 256x256 512x512 1024x1024;do + install -Dm644 "${srcdir}/squashfs-root/usr/share/icons/hicolor/${_icons}/apps/${pkgname%-bin}.png" \ + -t "${pkgdir}/usr/share/icons/hicolor/${_icons}/apps" + done +}
\ No newline at end of file diff --git a/altitude-metrix-wallet.sh b/altitude-metrix-wallet.sh new file mode 100644 index 000000000000..aacd8f895847 --- /dev/null +++ b/altitude-metrix-wallet.sh @@ -0,0 +1,15 @@ +#!/bin/sh +set -e +_APPDIR="/usr/lib/@appname@" +_ASAR="${_APPDIR}/@appasar@" +export PATH="${_APPDIR}:${PATH}" +export LD_LIBRARY_PATH="${_APPDIR}/swiftshader:${_APPDIR}/lib:${LD_LIBRARY_PATH}" +export ELECTRON_IS_DEV=0 +export NODE_ENV=production +cd "${_APPDIR}" +if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then + exec electron@electronversion@ "${_ASAR}" "$@" +else + exec electron@electronversion@ "${_ASAR}" --no-sandbox "$@" +fi +exit
\ No newline at end of file |