first release

This commit is contained in:
zxp19821005 2023-07-18 13:47:06 +08:00
commit b38c619c70
3 changed files with 58 additions and 0 deletions

20
.SRCINFO Normal file
View file

@ -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

30
PKGBUILD Normal file
View file

@ -0,0 +1,30 @@
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
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}"
}

8
postybirb.sh Normal file
View file

@ -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