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
# Maintainer: bendn <[email protected]> # shellcheck disable=SC2148,SC2034 pkgname="godot2d" pkgver='3.5.stable' _ver_tag=$(echo "$pkgver" | awk -F'.' '{print $1"."$2}') # 3.5 pkgrel=1 pkgdesc="godot builds without all the 3d stuff." arch=('any') url="https://github.com/bend-n/godot-builds" license=('MIT') depends=(glu libxcursor libxinerama alsa-lib freetype2 mesa) conflicts=('godot-headless-export-templates-bin') makedepends=() _base_src_link="https://github.com/bend-n/godot-builds/releases/download/${_ver_tag}/godot-2d_v${_ver_tag}_" noextract=("godot-2d_v${_ver_tag}_export_templates.tpz") source=("${_base_src_link}export_templates.tpz" "${_base_src_link}x11.64") sha256sums=(6c3050a936cac538171961422a8e614c8fe85c2bbbf280ed4059e00453b25c33 7a2ccede0e0e9484923cca22f888177d8fcfa5c287411aa5199dfb2e4d09be00) provides=(godot2d) groups=(godot) _repo="github.com/bend-n/godot-builds" check() { chmod +755 "godot-2d_v${_ver_tag}_x11.64" ./"godot-2d_v${_ver_tag}_x11.64" --no-window -e -q } package() { install -Dm755 "godot-2d_v${_ver_tag}_x11.64" "$pkgdir/usr/bin/godot2d" mkdir -p "$pkgdir/usr/share/godot/templates/${pkgver}" unzip -jo "godot-2d_v${_ver_tag}_export_templates.tpz" -d "$pkgdir/usr/share/godot/templates/${pkgver}" }