summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e4d74756a76e7a7f4e585b24be488e3ccdc98fdf (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
# Maintainer: Mikhail f. Shiryaev <mr dot felixoid at gmail dot com>
# Some of the code is nicely borrowed from godot-export-templates-git

pkgname=godot3-export-templates
pkgver=3.5.3
pkgrel=2
pkgdesc='Godot export templates for version 3'
url='https://godotengine.org/'
license=('MIT')
arch=('i686' 'x86_64')
optdepends=(
  'godot3-bin: use the templates'
  'godot3: use the templates'
  'godot3-mono: use the templates'
)

source=(
  "https://github.com/godotengine/godot/releases/download/${pkgver}-stable/Godot_v${pkgver}-stable_export_templates.tpz"
  "LICENSE::https://raw.githubusercontent.com/godotengine/godot/3.5/LICENSE.txt"
)
sha256sums=(
  ae3c1f6fbd431b9e3b67c1f9e42539a6d270a0ccc35558f13072f04b968312d1
  b0435e3b3e4e55238f05f4b306f30524a1b2e20147810d436eaa554fa6855c80
)

package() {
  cd "${srcdir}"
  mkdir -p "${pkgdir}/usr/share/godot/templates/${pkgver}.stable"
  # make templates working with both godot and godot3
  mkdir -p "${pkgdir}/usr/share/godot3/templates/"
  ln -sf --no-dereference "../../godot/templates/${pkgver}.stable" "${pkgdir}/usr/share/godot3/templates/${pkgver}.stable"

  install -Dm755 templates/linux_x11_64_debug "${pkgdir}/usr/share/godot/templates/${pkgver}.stable"
  install -Dm755 templates/linux_x11_64_release "${pkgdir}/usr/share/godot/templates/${pkgver}.stable"

  install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
}