diff options
author | zxp19821005 | 2023-07-05 15:41:49 +0800 |
---|---|---|
committer | zxp19821005 | 2023-07-05 15:41:49 +0800 |
commit | 81983da21b1e3294caa0b8df47e8d5fe61181dc9 (patch) | |
tree | f46c88cd7057955b83bf9972c9c835bd7fa3c672 | |
download | aur-81983da21b1e3294caa0b8df47e8d5fe61181dc9.tar.gz |
first release
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 31 | ||||
-rw-r--r-- | lyricistant.sh | 6 |
3 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..14f17d54eebd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = lyricistant-bin + pkgdesc = A helpful writing assistant for lyricists! + pkgver = 3.1.2 + pkgrel = 1 + url = https://github.com/wardellbagby/lyricistant + arch = aarch64 + arch = x86_64 + license = GPL3 + depends = electron + depends = hicolor-icon-theme + conflicts = lyricistant + source = lyricistant.sh + sha256sums = 4ab50fa1f95feb88249477630af8c2db71bb2c1973a2b5ffd8cb1f7d27db065a + source_aarch64 = lyricistant-3.1.2-aarch64.AppImage::https://github.com/wardellbagby/lyricistant/releases/download/v3.1.2/lyricistant-linux_arm64.AppImage + sha256sums_aarch64 = 4ba62c85dcf87b0ccf3571b21aa28723578160b5bddbab3126d45ab584b65482 + source_x86_64 = lyricistant-3.1.2-x86_64.AppImage::https://github.com/wardellbagby/lyricistant/releases/download/v3.1.2/lyricistant-linux_x86_64.AppImage + sha256sums_x86_64 = 47a31990083e48cc76a5fddd5d61c89ee75f169bde6b3b73c02e71ec749b80c2 + +pkgname = lyricistant-bin diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9189d8cb8b7e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: zxp19821005 <zxp19821005 at 163 dot com> +pkgname=lyricistant-bin +pkgver=3.1.2 +pkgrel=1 +pkgdesc="A helpful writing assistant for lyricists!" +arch=('aarch64' 'x86_64') +url="https://github.com/wardellbagby/lyricistant" +license=('GPL3') +depends=('electron' 'hicolor-icon-theme') +conflicts=("${pkgname%-bin}") +_install_path="/opt/appimages" +source_aarch64=("${pkgname%-bin}-${pkgver}-aarch64.AppImage::${url}/releases/download/v${pkgver}/${pkgname%-bin}-linux_arm64.AppImage") +source_x86_64=("${pkgname%-bin}-${pkgver}-x86_64.AppImage::${url}/releases/download/v${pkgver}/${pkgname%-bin}-linux_x86_64.AppImage") +source=("${pkgname%-bin}.sh") +sha256sums=('4ab50fa1f95feb88249477630af8c2db71bb2c1973a2b5ffd8cb1f7d27db065a') +sha256sums_aarch64=('4ba62c85dcf87b0ccf3571b21aa28723578160b5bddbab3126d45ab584b65482') +sha256sums_x86_64=('47a31990083e48cc76a5fddd5d61c89ee75f169bde6b3b73c02e71ec749b80c2') +prepare() { + chmod a+x "${srcdir}/${pkgname%-bin}-${pkgver}-${CARCH}.AppImage" + "${srcdir}/${pkgname%-bin}-${pkgver}-${CARCH}.AppImage" --appimage-extract > /dev/null +} +package() { + install -Dm644 "${srcdir}/squashfs-root/resources/app.asar" "${pkgdir}/opt/${pkgname%-bin}/${pkgname%-bin}.asar" + install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/opt/${pkgname%-bin}/${pkgname%-bin}" + sed "s|Exec=AppRun --no-sandbox %U|Exec=/opt/${pkgname%-bin}/${pkgname%-bin}|g" -i "${srcdir}/squashfs-root/${pkgname%-bin}.desktop" + install -Dm644 "${srcdir}/squashfs-root/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop" + for _icons in 16x16 32x32 48x48 64x64 128x128 256x256 512x512;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/lyricistant.sh b/lyricistant.sh new file mode 100644 index 000000000000..0ffd5161b6cc --- /dev/null +++ b/lyricistant.sh @@ -0,0 +1,6 @@ +#!/bin/bash +if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then + exec electron /opt/lyricistant/lyricistant.asar "$@" +else + exec electron --no-sandbox /opt/lyricistant/lyricistant.asar "$@" +fi
\ No newline at end of file |