blob: 72661ee094e87f5e1da18799e18ac24e2f9fd470 (
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.17
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=('2c0ba007fb3d84875ee972cbe1b02976')
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:
|