summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d74f07db7416121497079f15b16e650adbc51338 (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
# Maintainer:  <reg-archlinux AT klein DOT tuxli DOT ch> 

_pkgname=fallingtime
pkgname=${_pkgname}-git
pkgver=r96.9cc480b
pkgrel=3
pkgdesc="Arcade game inspired by Fall Down. SDL 2, PC or OpenDingux."
arch=('any')
url="https://github.com/cxong/FallingTime"
license=('GPL2')
makedepends=('git' 'cmake')
depends=('sdl2' 'sdl2_image' 'sdl2_mixer' 'sdl2_ttf')
source=("${_pkgname}::git+https://github.com/cxong/FallingTime.git"
        "${_pkgname}.sh"
        "${_pkgname}.desktop")
sha256sums=('SKIP'
          '2213caa4bb13f483b61a6ea57ee0f74394080505720d004a476ed10651150fc7'
          'e7c80c605000bedabb5cd0c415539288f2a3cc01246e84364dbdac2742a81414')
conflicts=(${_pkgname})
provides=(${_pkgname})

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

build() {
  cd "${srcdir}/${_pkgname}"
  cmake .
  make
}

package() {
  install -Dm644 "${srcdir}/${_pkgname}/COPYRIGHT" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
  install "${srcdir}/${_pkgname}/falling_time" -Dm755 "${pkgdir}/opt/${_pkgname}/${_pkgname}"
  cp -r "${srcdir}/${_pkgname}/data" "${pkgdir}/opt/${_pkgname}/"
  install "${startdir}/${_pkgname}.sh" -Dm755 "${pkgdir}/usr/bin/${_pkgname}"
  install -Dm644 "${startdir}/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
}