commit b38c619c70868cada3d4322e2d274adc7d21dc06 Author: zxp19821005 Date: Tue Jul 18 13:47:06 2023 +0800 first release diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..be12665a8bf8 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = postybirb-bin + pkgdesc = An application that helps artists post art and other multimedia to multiple websites more quickly. + pkgver = 2.3.44 + pkgrel = 1 + url = https://www.postybirb.com/ + arch = x86_64 + license = BSD + depends = bash + depends = electron13 + provides = postybirb + conflicts = postybirb + conflicts = postybirb-plus + source = postybirb-2.3.44.AppImage::https://github.com/mvdicarlo/postybirb/releases/download/v2.3.44/PostyBirb-2.3.44.AppImage + source = LICENSE::https://raw.githubusercontent.com/mvdicarlo/postybirb/master/LICENSE.md + source = postybirb.sh + sha256sums = 45dc119851f148344b3601f5a00de67e00d2575f9dd616bcbd82d4eeda97b49d + sha256sums = 12e65eb62d705f4cf38eb2f7b382206fb3155fbdbff559f87c702a5e1c1c2207 + sha256sums = 775e68d3761226d5efce6b525b1a2cce1d492e77ef31aa9721b9181489274712 + +pkgname = postybirb-bin diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..428f9806f1f0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: zxp19821005 +pkgname=postybirb-bin +pkgver=2.3.44 +pkgrel=1 +pkgdesc="An application that helps artists post art and other multimedia to multiple websites more quickly." +arch=('x86_64') +url="https://www.postybirb.com/" +_githuburl="https://github.com/mvdicarlo/postybirb" +license=('BSD') +depends=('bash' 'electron13') +provides=("${pkgname%-bin}") +conflicts=("${pkgname%-bin}" "${pkgname%-bin}-plus") +source=("${pkgname%-bin}-${pkgver}.AppImage::${_githuburl}/releases/download/v${pkgver}/PostyBirb-${pkgver}.AppImage" + "LICENSE::https://raw.githubusercontent.com/mvdicarlo/postybirb/master/LICENSE.md" + "${pkgname%-bin}.sh") +sha256sums=('45dc119851f148344b3601f5a00de67e00d2575f9dd616bcbd82d4eeda97b49d' + '12e65eb62d705f4cf38eb2f7b382206fb3155fbdbff559f87c702a5e1c1c2207' + '775e68d3761226d5efce6b525b1a2cce1d492e77ef31aa9721b9181489274712') +prepare() { + chmod a+x "${pkgname%-bin}-${pkgver}.AppImage" + "./${pkgname%-bin}-${pkgver}.AppImage" --appimage-extract > /dev/null +} +package() { + install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/opt/${pkgname%-bin}/${pkgname%-bin}" + install -Dm644 "${srcdir}/squashfs-root/resources/app.asar" "${pkgdir}/opt/${pkgname%-bin}/${pkgname%-bin}.asar" + install -Dm644 "${srcdir}/squashfs-root/usr/share/icons/hicolor/0x0/apps/${pkgname%-bin}.png" -t "${pkgdir}/usr/share/pixmaps" + sed "s|AppRun --no-sandbox %U|/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" + install -Dm644 "${srcdir}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}" +} \ No newline at end of file diff --git a/postybirb.sh b/postybirb.sh new file mode 100644 index 000000000000..fddbff715412 --- /dev/null +++ b/postybirb.sh @@ -0,0 +1,8 @@ +#!/bin/bash +_ELECTRON=/usr/bin/electron13 +_ASAR="/opt/postybirb/postybirb.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