Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

defold v1.8.0.r33118cd-1 #117

Merged
merged 1 commit into from
Jun 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 40 additions & 35 deletions packages/defold/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Maintainer: water_lift <0xWATERx0@gmail.com>
# Maintainer: Asakura Mizu <asakuramizu111@gmail.com>
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=()
Expand All @@ -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"
}
Loading