diff options
author | zxp19821005 | 2024-04-19 17:44:56 +0800 |
---|---|---|
committer | zxp19821005 | 2024-04-19 17:44:56 +0800 |
commit | 31fbf850830d29a3c78c2bdd2241b30a3db0d27d (patch) | |
tree | ec09cc480bf6c5e7334271f16732038de578566f | |
parent | 209c5f1fdf196bac3f7d12129e1a10e8de21fad2 (diff) | |
download | aur-31fbf850830d29a3c78c2bdd2241b30a3db0d27d.tar.gz |
update to 5.3.199
-rw-r--r-- | .SRCINFO | 28 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 82 | ||||
-rw-r--r-- | gdevelop.desktop | 7 | ||||
-rw-r--r-- | gdevelop.sh | 16 |
5 files changed, 91 insertions, 47 deletions
@@ -1,20 +1,24 @@ pkgbase = gdevelop-bin - pkgdesc = Open-source, cross-platform game creator designed to be used by everyone - no programming skills required. - pkgver = 5.1.164 + pkgdesc = A full-featured, no-code, open-source game development software. + pkgver = 5.3.199 pkgrel = 1 - url = https://gdevelop-app.com/ + url = https://gdevelop.io/ + arch = aarch64 arch = x86_64 - license = GPL license = MIT - license = zlib/png - provides = gdevelop + makedepends = fuse2 + makedepends = asar + depends = electron18 + provides = gdevelop=5.3.199 conflicts = gdevelop options = !strip - source = https://github.com/4ian/GDevelop/releases/download/v5.1.164/GDevelop-5-5.1.164.AppImage - source = https://github.com/4ian/GDevelop/raw/master/Core/docs/images/glogo.png - source = gdevelop.desktop - sha256sums = 3cf687d1288614b6e0335fe1cc7f53bf182bcd4ead19ee44a29829f58dd00456 - sha256sums = 6ec8974d1c073442e1e653ac75d8ab4c1ed1cc1c2d14c6d73d6c50543a4f4b5f - sha256sums = d6074b92d0e5896a33cc007fa59eb35759569047b3a31d35108134beb538e039 + source = LICENSE-5.3.199.md::https://raw.githubusercontent.com/4ian/GDevelop/v5.3.199/LICENSE.md + source = gdevelop.sh + sha256sums = 0620d885ddbc88e952f99090d767de08671b6a81e5c10900ef5b949531460b92 + sha256sums = dc0c5ca385ad81a08315a91655c7c064b5bf110eada55e61265633ae198b39f8 + source_aarch64 = gdevelop-5.3.199-aarch64.AppImage::https://github.com/4ian/GDevelop/releases/download/v5.3.199/GDevelop-5-5.3.199-arm64.AppImage + sha256sums_aarch64 = 051c4d053371d96b86fbc86034a5b6381ae873fc3485fa33babe0d1a3216e7fe + source_x86_64 = gdevelop-5.3.199-x86_64.AppImage::https://github.com/4ian/GDevelop/releases/download/v5.3.199/GDevelop-5-5.3.199.AppImage + sha256sums_x86_64 = d32f855a5f67be0794e92edcd1a40451a24109629d8b8e2ab8b287ce68a01676 pkgname = gdevelop-bin diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 8628fef6d56c..000000000000 --- a/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -* -!PKGBUILD -!.SRCINFO -!.gitignore -!gdevelop.desktop @@ -1,28 +1,64 @@ -# Maintainer: Kevin Puertas <kevinpr@jkanetwork.com> -# Co-Maintainer: Eric Engestrom <arch.aur@engestrom.ch> +# Maintainer: zxp19821005 <zxp19821005 at 163 dot com> +# Contributor: Kevin Puertas <kevinpr@jkanetwork.com> +# Contributor: Eric Engestrom <arch.aur@engestrom.ch> # Helper: paulequilibrio pkgname=gdevelop-bin -_pkgname=gdevelop -pkgver=5.1.164 +_pkgname=GDevelop +pkgver=5.3.199 +_electronversion=18 pkgrel=1 -pkgdesc="Open-source, cross-platform game creator designed to be used by everyone - no programming skills required." -arch=('x86_64') -url='https://gdevelop-app.com/' -license=('GPL' 'MIT' 'zlib/png') -groups=() -provides=('gdevelop') -conflicts=('gdevelop') -source=("https://github.com/4ian/GDevelop/releases/download/v${pkgver//.b/-b}/GDevelop-${pkgver%%.*}-${pkgver//.b/-b}.AppImage" - 'https://github.com/4ian/GDevelop/raw/master/Core/docs/images/glogo.png' - 'gdevelop.desktop') -sha256sums=('3cf687d1288614b6e0335fe1cc7f53bf182bcd4ead19ee44a29829f58dd00456' - '6ec8974d1c073442e1e653ac75d8ab4c1ed1cc1c2d14c6d73d6c50543a4f4b5f' - 'd6074b92d0e5896a33cc007fa59eb35759569047b3a31d35108134beb538e039') +pkgdesc="A full-featured, no-code, open-source game development software." +arch=( + 'aarch64' + 'x86_64' +) +url='https://gdevelop.io/' +_ghurl="https://github.com/4ian/GDevelop" +license=('MIT') +provides=("${pkgname%-bin}=${pkgver}") +conflicts=("${pkgname%-bin}") +depends=( + "electron${_electronversion}" +) +makedepends=( + 'fuse2' + 'asar' +) options=('!strip') - -package() { - install -dm 755 "$pkgdir"/usr/{bin,share/{applications,pixmaps}} - install -m755 *.AppImage "$pkgdir/usr/bin/$_pkgname" - install -D -m 644 "${srcdir}/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop" - install -D -m 644 "${srcdir}/glogo.png" "${pkgdir}/usr/share/pixmaps/${_pkgname}.png" +source=( + "LICENSE-${pkgver}.md::https://raw.githubusercontent.com/4ian/GDevelop/v${pkgver}/LICENSE.md" + "${pkgname%-bin}.sh" +) +source_aarch64=("${pkgname%-bin}-${pkgver}-aarch64.AppImage::${_ghurl}/releases/download/v${pkgver}/${_pkgname}-5-${pkgver}-arm64.AppImage") +source_x86_64=("${pkgname%-bin}-${pkgver}-x86_64.AppImage::${_ghurl}/releases/download/v${pkgver}/${_pkgname}-5-${pkgver}.AppImage") +sha256sums=('0620d885ddbc88e952f99090d767de08671b6a81e5c10900ef5b949531460b92' + 'dc0c5ca385ad81a08315a91655c7c064b5bf110eada55e61265633ae198b39f8') +sha256sums_aarch64=('051c4d053371d96b86fbc86034a5b6381ae873fc3485fa33babe0d1a3216e7fe') +sha256sums_x86_64=('d32f855a5f67be0794e92edcd1a40451a24109629d8b8e2ab8b287ce68a01676') +build() { + sed -e "s|@electronversion@|${_electronversion}|g" \ + -e "s|@appname@|${pkgname%-bin}|g" \ + -e "s|@runname@|app.asar|g" \ + -e "s|@options@||g" \ + -i "${srcdir}/${pkgname%-bin}.sh" + chmod a+x "${srcdir}/${pkgname%-bin}-${pkgver}-${CARCH}.AppImage" + "${srcdir}/${pkgname%-bin}-${pkgver}-${CARCH}.AppImage" --appimage-extract > /dev/null + sed "s|AppRun --no-sandbox|${pkgname%-bin}|g" -i "${srcdir}/squashfs-root/${pkgname%-bin}.desktop" + asar e "${srcdir}/squashfs-root/resources/app.asar" "${srcdir}/app.asar.unpacked" + sed "s|if (isDev)|if (!isDev)|g;s|isDev,|\/\/isDev,|g;s|devTools,|\/\/devTools,|g" -i "${srcdir}/app.asar.unpacked/main.js" + asar p "${srcdir}/app.asar.unpacked" "${srcdir}/app.asar" + find "${srcdir}/squashfs-root/resources" -type d -exec chmod 755 {} \; } +package() { + install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}" + install -Dm644 "${srcdir}/app.asar" -t "${pkgdir}/usr/lib/${pkgname%-bin}" + cp -r "${srcdir}/squashfs-root/resources/"{app.asar.unpacked,GDJS,preview_node_modules} "${pkgdir}/usr/lib/${pkgname%-bin}" + install -Dm644 "${srcdir}/squashfs-root/swiftshader/"* -t "${pkgdir}/usr/lib/${pkgname%-bin}/swiftshader" + install -Dm644 "${srcdir}/squashfs-root/usr/lib/"* -t "${pkgdir}/usr/lib/${pkgname%-bin}/lib" + for _icons in 16x16 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 + install -Dm644 "${srcdir}/squashfs-root/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications" + install -Dm644 "${srcdir}/squashfs-root/LICENSE"* -t "${pkgdir}/usr/share/licenses/${pkgname}" +}
\ No newline at end of file diff --git a/gdevelop.desktop b/gdevelop.desktop deleted file mode 100644 index 6f075b190d7c..000000000000 --- a/gdevelop.desktop +++ /dev/null @@ -1,7 +0,0 @@ -[Desktop Entry] -Name=GDevelop -Comment=GDevelop -Exec=gdevelop -Icon=gdevelop -Categories=Development -Type=Application diff --git a/gdevelop.sh b/gdevelop.sh new file mode 100644 index 000000000000..7ddcaab8d734 --- /dev/null +++ b/gdevelop.sh @@ -0,0 +1,16 @@ +#!/bin/bash +set -e +_APPDIR="/usr/lib/@appname@" +_RUNNAME="${_APPDIR}/@runname@" +_OPTIONS="@options@" +export PATH="${_APPDIR}:${PATH}" +export LD_LIBRARY_PATH="${_APPDIR}/swiftshader:${_APPDIR}/lib:${LD_LIBRARY_PATH}" +export ELECTRON_IS_DEV=0 +export ELECTRON_FORCE_IS_PACKAGED=true +export NODE_ENV=production +cd "${_APPDIR}" +if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then + exec electron@electronversion@ "${_RUNNAME}" "${_OPTIONS}" "$@" || exit $? +else + exec electron@electronversion@ "${_RUNNAME}" "${_OPTIONS}" --no-sandbox "$@" || exit $? +fi
\ No newline at end of file |