diff options
author | zxp19821005 | 2023-11-14 09:45:48 +0800 |
---|---|---|
committer | zxp19821005 | 2023-11-14 09:45:48 +0800 |
commit | 95316d67602e7ee77135442fd8b6d5e601acf995 (patch) | |
tree | 71a741bf4f4a1c052e250ca4c3d9c3898b5dd841 | |
download | aur-95316d67602e7ee77135442fd8b6d5e601acf995.tar.gz |
update to 2.3.3
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 44 | ||||
-rw-r--r-- | ghost-chat.sh | 11 |
3 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..cb17349aa997 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = ghost-chat + pkgdesc = A standalone, multiplatform Twitch.tv chat as overlay on windowed/windowed fullscreen applications. + pkgver = 2.3.3 + pkgrel = 1 + url = https://github.com/Enubia/ghost-chat + arch = any + license = custom:Zlib + makedepends = pnpm + makedepends = gendesk + makedepends = npm + makedepends = nodejs>=20 + depends = electron26 + depends = hicolor-icon-theme + conflicts = ghost-chat + source = ghost-chat-2.3.3.zip::https://github.com/Enubia/ghost-chat/archive/refs/tags/v2.3.3.zip + source = ghost-chat.sh + sha256sums = 4dfa6419effed09599e1e82f57e761a2636eb3486d94f28d74039f951f0cbfeb + sha256sums = b5235b0b418d6e9a6e90b8689b2ea05280a3fd4b666e94735beae17ae33c3df6 + +pkgname = ghost-chat diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..78255d9313f8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: zxp19821005 <zxp19821005 at 163 dot com> +pkgname=ghost-chat +_pkgname=GhostChat +pkgver=2.3.3 +pkgrel=1 +pkgdesc="A standalone, multiplatform Twitch.tv chat as overlay on windowed/windowed fullscreen applications." +arch=('any') +url="https://github.com/Enubia/ghost-chat" +license=('custom:Zlib') +conflicts=("${pkgname}") +depends=( + 'electron26' + 'hicolor-icon-theme' +) +makedepends=( + 'pnpm' + 'gendesk' + 'npm' + 'nodejs>=20' +) +source=( + "${pkgname}-${pkgver}.zip::${url}/archive/refs/tags/v${pkgver}.zip" + "${pkgname}.sh" +) +sha256sums=('4dfa6419effed09599e1e82f57e761a2636eb3486d94f28d74039f951f0cbfeb' + 'b5235b0b418d6e9a6e90b8689b2ea05280a3fd4b666e94735beae17ae33c3df6') +build() { + gendesk -f -n -q --categories "Utility" --name "${_pkgname}" --exec "${pkgname}" + cd "${srcdir}/${pkgname}-${pkgver}" + sed 's|, "deb"||g' -i electron-builder.json5 + pnpm install --frozen-lockfile + pnpm run build-production + cp "${srcdir}/${pkgname}-${pkgver}/dist/icons/icon-512x125.png" "${srcdir}/${pkgname}-${pkgver}/dist/icons/icon-512x512.png" +} +package() { + install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}" + install -Dm644 "${srcdir}/${pkgname}-${pkgver}/release/${pkgver}/linux-unpacked/resources/app.asar" -t "${pkgdir}/usr/lib/${pkgname%-bin}" + for _icons in 16x16 32x32 64x64 128x128 256x256 512x512;do + install -Dm644 "${srcdir}/${pkgname}-${pkgver}/dist/icons/icon-${_icons}.png" \ + "${pkgdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname}.png" + done + install -Dm644 "${srcdir}/${pkgname}.desktop" -t "${pkgdir}/usr/share/applications" + install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}" +}
\ No newline at end of file diff --git a/ghost-chat.sh b/ghost-chat.sh new file mode 100644 index 000000000000..3f129887015d --- /dev/null +++ b/ghost-chat.sh @@ -0,0 +1,11 @@ +#!/bin/bash +_ELECTRON=/usr/bin/electron26 +APPDIR="/usr/lib/ghost-chat" +export PATH="${APPDIR}:${APPDIR}/usr/sbin:${PATH}" +#export LD_LIBRARY_PATH="${APPDIR}/swiftshader":"${LD_LIBRARY_PATH}" +_ASAR="${APPDIR}/app.asar" +if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then + exec ${_ELECTRON} ${_ASAR} "$@" +else + exec ${_ELECTRON} ${_ASAR} --no-sandbox "$@" +fi
\ No newline at end of file |