summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fff8bd928d536d0acd129922b1fcc1764bc328ae (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: Kyle Keen <keenerd@gmail.com>
# Contributor: Michael Fellinger <m.fellinger@gmail.com>

pkgname=vms-empire
pkgver=1.14
pkgrel=1
pkgdesc="Empire is a simulation of a full-scale war between two emperors, the computer and you."
arch=('i686' 'x86_64')
url="http://www.catb.org/~esr/vms-empire/"
license=('GPL')
depends=('ncurses')
makedepends=('xmlto')
source=("http://www.catb.org/~esr/$pkgname/$pkgname-$pkgver.tar.gz")
md5sums=('9defc2be52380171f293b5bfb4c5fa28')

prepare() {
  cd "$srcdir/$pkgname-$pkgver"
  sed -i 's/^install: empire.6 uninstall/install: empire.6/' Makefile

  # gcc10 tweaks
  sed -i 's/^.*user_obj.*$/static &/' extern.h
  sed -i 's/^.*comp_obj.*$/static &/' extern.h
  sed -i 's/^.*automove.*$/static &/' extern.h
  sed -i 's/^view_map_t .*$/static &/' extern.h
  sed -i 's/^real_map_t .*$/static &/' extern.h
  sed -i 's/^int [^(]*$/static &/' extern.h
  sed -i 's/^long [^(]*$/static &/' extern.h
  sed -i 's/^bool [^(]*$/static &/' extern.h
  sed -i 's/^char [^(]*$/static &/' extern.h
  sed -i 's/^piece_info_t [^(]*$/static &/' extern.h
  sed -i 's/^city_info_t [^(]*$/static &/' extern.h
}

build() {
  cd "$srcdir/$pkgname-$pkgver"
  make PREFIX="/usr"
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir/" install
}

# vim:set ts=2 sw=2 et: