From 1143746b775ec787e9637bed20fc0256ad3a60cd Mon Sep 17 00:00:00 2001 From: mortyr45 <22072709+mortyr45@users.noreply.github.com> Date: Sun, 2 Jun 2024 08:09:24 +0000 Subject: [PATCH] defold v1.8.0.r33118cd-1 --- packages/defold/PKGBUILD | 75 +++++++++++++++++++++------------------- 1 file changed, 40 insertions(+), 35 deletions(-) diff --git a/packages/defold/PKGBUILD b/packages/defold/PKGBUILD index 654a882..41d1793 100644 --- a/packages/defold/PKGBUILD +++ b/packages/defold/PKGBUILD @@ -1,15 +1,15 @@ -# Maintainer: water_lift <0xWATERx0@gmail.com> +# Maintainer: Asakura Mizu pkgname=defold -pkgver=1.6.4 +pkgver=1.8.0.r33118cd pkgrel=1 epoch= -pkgdesc="Defold is a completely free to use game engine for development of desktop, mobile and web games." -arch=(x86_64) -url="https://defold.com/" -license=("custom") +pkgdesc='Defold is a completely free to use game engine for development of desktop, mobile and web games.' +arch=('x86_64') +url='https://defold.com/' +license=('custom') groups=() -depends=("glu") -makedepends=() +depends=('glu') +makedepends=('gendesk' 'curl' 'jq') checkdepends=() optdepends=() provides=() @@ -19,35 +19,40 @@ backup=() options=() install= changelog= -source=("http://d.defold.com/archive/editor-alpha/4689e4033ebfc982176b92545900302d0fcb03b3/editor-alpha/editor2/Defold-x86_64-linux.zip" - "http://d.defold.com/archive/stable/4689e4033ebfc982176b92545900302d0fcb03b3/engine/defoldsdk.zip" - "http://d.defold.com/archive/stable/4689e4033ebfc982176b92545900302d0fcb03b3/bob/bob.jar" - "Defold.desktop" - "LICENSE" - "logo.zip") -noextract=("bob.jar") -md5sums=("f774e8a5259e208574c8648dfb18bd18" - "ee724bfe82bff4d4f950d428f572fde4" - "4315081b6116c19d05c1efffe47fae72" - "9510a5ccb9310a95e80452330b0c4de8" - "12ddd6bdaaf6397931608af50492f005" - "2e220c9bf4a7e2f5aa3b81cfd7b8c8fe") validpgpkeys=() +source=('LICENSE' + 'logo.zip') +sha256sums=('be6e9921ba01445d200ba3dc09b5cab149a58d57a76ca98376b52af87d817a7a' + '3b8caea5c51ed35d0b192b621e55102c7336904d5bc096d801cbbe700ebf17ca') + +prepare() { + cd "$srcdir" + + curl -O https://d.defold.com/editor-alpha/info.json + _sha1=$(cat info.json | jq -r '.sha1') + curl -O "https://d.defold.com/archive/editor-alpha/${_sha1}/editor-alpha/editor2/Defold-x86_64-linux.zip" + + gendesk -f -n --pkgname "$pkgname" --pkgdesc "$pkgdesc" --path /opt/Defold --name Defold --exec /opt/Defold/Defold --categories "Game;Development;Utility" +} + +pkgver() { + cd "$srcdir" + + _version=$(cat info.json | jq -r '.version') + _sha1=$(cat info.json | jq -r '.sha1') + echo "${_version}.r${_sha1:0:7}" +} package() { - cd "$srcdir" + cd "$srcdir" - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" - install -Dm644 Defold.desktop "$pkgdir/usr/share/applications/Defold.desktop" - install -Dm644 "logo/64.png" "$pkgdir/usr/share/icons/hicolor/64x64/apps/defold.png" - install -Dm644 "logo/128.png" "$pkgdir/usr/share/icons/hicolor/128x128/apps/defold.png" - install -Dm644 "logo/150.png" "$pkgdir/usr/share/icons/hicolor/150x150/apps/defold.png" - install -Dm644 "logo/310.png" "$pkgdir/usr/share/icons/hicolor/310x310/apps/defold.png" - install -Dm644 "logo/1024.png" "$pkgdir/usr/share/icons/hicolor/1024x1024/apps/defold.png" - mkdir -p "$pkgdir/opt/Defold" - cp -r Defold "$pkgdir/opt" - cp -r defoldsdk "$pkgdir/opt/Defold" - mkdir -p "$pkgdir/usr/include/dmsdk" - ln -s "$pkgdir/opt/Defold/defoldsdk/sdk/include/dmsdk" "$pkgdir/usr/include/dmsdk" - install -Dm644 bob.jar "$pkgdir/opt/Defold" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 defold.desktop "$pkgdir/usr/share/applications/defold.desktop" + install -Dm644 "logo/64.png" "$pkgdir/usr/share/icons/hicolor/64x64/apps/defold.png" + install -Dm644 "logo/128.png" "$pkgdir/usr/share/icons/hicolor/128x128/apps/defold.png" + install -Dm644 "logo/150.png" "$pkgdir/usr/share/icons/hicolor/150x150/apps/defold.png" + install -Dm644 "logo/310.png" "$pkgdir/usr/share/icons/hicolor/310x310/apps/defold.png" + install -Dm644 "logo/1024.png" "$pkgdir/usr/share/icons/hicolor/1024x1024/apps/defold.png" + mkdir -p "$pkgdir/opt" + bsdtar -xf Defold-x86_64-linux.zip -C "$pkgdir/opt" }