blob: 75f2d84af9be7c3dabddd755818708a3cf649b84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: Jonian Guveli <https://github.com/jonian/>
pkgname=godot-bin
pkgver=3.3
pkgrel=1
pkgdesc="Godot is an advanced, feature packed, multi-platform 2D and 3D game engine"
arch=("i686" "x86_64")
url="http://www.godotengine.org"
license=("MIT")
provides=("godot")
conflicts=("godot" "godot-git")
source=("godot.desktop" "icons.tar.gz")
source_i686+=("$pkgname-$pkgver::https://downloads.tuxfamily.org/godotengine/"$pkgver"/Godot_v"$pkgver"-stable_x11.32.zip")
source_x86_64+=("$pkgname-$pkgver::https://downloads.tuxfamily.org/godotengine/"$pkgver"/Godot_v"$pkgver"-stable_x11.64.zip")
md5sums=("fa7422332b97ab8430ea7628ec8b0880" "48ee5f4295a45bb61c6223ba83fd1436")
md5sums_i686=("1412d0d38a95cda8e6ff93947c125dc3")
md5sums_x86_64=("07bb08114b1e4c2651856efed89bb647")
package() {
mkdir -p "$pkgdir/opt/$pkgname"
mkdir -p "$pkgdir/usr/bin"
mkdir -p "$pkgdir/usr/share/icons/hicolor"
mkdir -p "$pkgdir/usr/share/applications"
case $CARCH in
"i686")
cp "$srcdir/Godot_v"$pkgver"-stable_x11.32" "$pkgdir/opt/$pkgname/godot"
;;
"x86_64")
cp "$srcdir/Godot_v"$pkgver"-stable_x11.64" "$pkgdir/opt/$pkgname/godot"
;;
esac
cp "$srcdir/godot.desktop" "$pkgdir/usr/share/applications/godot.desktop"
cp -a "$srcdir/icons/." "$pkgdir/usr/share/icons/hicolor"
cp -a "$srcdir/icons/." "$pkgdir/usr/share/icons/gnome"
chmod +x "$pkgdir/opt/$pkgname/godot"
ln -s "/opt/$pkgname/godot" "$pkgdir/usr/bin/godot"
}
|