summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 011c8fed44103a04205e4d4e64a10bbc3359413b (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
41
42
43
44
45
46
# Maintainer:  <reg-archlinux AT klein DOT tuxli DOT ch> 

_pkgname=spacenet
pkgname=${_pkgname}-git
pkgver=r98.a115018
pkgrel=1
pkgdesc="spacenet is_a non-linear retro sci-fi adventure."
arch=('any')
url='https://sonejostudios.github.io/SpaceNET/'
license=('GPL3')
depends=('renpy-sdk')
makedepends=('git') 
source=(
  ${pkgname}::git+https://github.com/sonejostudios/SpaceNET.git
  "${_pkgname}"
  "${_pkgname}.desktop"
  "${_pkgname}.png"
)
sha256sums=(
  'SKIP'
  '34ca6100f834cf29756eaa0890d3149d052a80d560dd90fda8573f0a44fb38cd'
  '3893354e76daa10ed537089230bfd5e82f75ff09654b11ccbd70b5d5028bb694'
  '1b62266a4cfef3dce256744c694aca60b652a6cd08bdf956c182332fb2857aea'
)

pkgver() {
	cd "${pkgname}"
 	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  # copy main files
  cd "${srcdir}/${pkgname}"
  install -dm755 "${pkgdir}/usr/share/${_pkgname}"
  cp -r game/* "${pkgdir}/usr/share/${_pkgname}"

  # copy license
  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"

  # copy bash script
  install -D -m755 "${srcdir}/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"

  # install desktop entry file
  install -D -m644 "${srcdir}/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
  install -D -m644 "${srcdir}/${_pkgname}.png" "${pkgdir}/usr/share/pixmaps/${_pkgname}.png"
}