summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 14ee2887b8e7a1f8c03d3866d24e56dfabab5bfe (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
# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG

pkgname=rott-svn
pkgver=1.1.2.r287
pkgrel=1
pkgdesc='"Rise of the Triad" is a high quality first-person perspective 3D action game (development version)'
arch=('i686' 'x86_64')
license=('GPL2')
makedepends=('svn')
depends=('sdl_mixer')
url="http://icculus.org/rott/"
source=(rott::"svn://svn.icculus.org/rott/trunk")
sha256sums=('SKIP')

pkgver() {
  cd rott
  local ver="$(svnversion)"
  printf "1.1.2.r%s" "${ver//[[:alpha:]]}" # TODO: fix hardcoded version
}

build() {
  cd rott
  autoreconf -fi
  ./configure --enable-suffix=registered
  make

  ./configure --enable-shareware --enable-suffix=shareware
  make
}

package() {
  cd rott
  # copy both editions and launcher
  install -Dm755 rott/rott-registered "$pkgdir"/usr/bin/rott
  install -m755 rott/rott-shareware "$pkgdir"/usr/bin
  install -m755 misc/runrott.sh "$pkgdir"/usr/bin/runrott
  # doc
  install -Dm644 doc/rott.6 "$pkgdir"/usr/share/man/man6/rott.6
  install -d "$pkgdir"/usr/share/doc/$pkgname
  install -m644 doc/*.txt "$pkgdir"/usr/share/doc/$pkgname
  # .desktop entry
  install -Dm644 misc/rott.png "$pkgdir"/usr/share/pixmaps/rott.png
  install -Dm644 misc/rott.desktop "$pkgdir"/usr/share/applications/rott.desktop
}