summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ea2376add778344d49e5863bdeb6673a1d8c3a44 (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
# Maintainer: Viachaslau Khalikin <viachaslavic'at'outlook'dot'com>

pkgname='freedroidrpg-git'
pkgver=1.0.r9.g85156e288
pkgrel=1
pkgdesc="Isometric 3D role playing game taking place in the future, on Earth (git version)"
url="http://www.freedroid.org"
arch=('x86_64')
license=('GPL-2.0-or-later')
depends=(
  glew
  glibc
  hicolor-icon-theme
  libgl
  libpng
  lua53
  python
  sdl12-compat
  sdl_gfx
  sdl_image
  sdl_mixer
  zlib
)
makedepends=('git' 'mesa')
optdepends=('espeak-ng-espeak: to generate the robot taunts')
provides=(${pkgname%-git})
conflicts=(${pkgname%-git})
source=("$pkgname::git+https://gitlab.com/freedroid/freedroid-src.git")
sha256sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe --long | sed 's/-/.r/;s/-/./'
}

build() {
  cd $pkgname
  ./autogen.sh
  ./configure --prefix=/usr
  make
}

package() {
  make DESTDIR="${pkgdir}" -C "${pkgname}" install
}