blob: 59ca1dd877de0f9df98e15f094dd1a40435501a1 (
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: Kyle Keen <keenerd@gmail.com>
pkgname=primerl
pkgver=2.4a
pkgrel=1
pkgdesc="A sci-fi roguelike, based on ZAPM."
arch=('i686' 'x86_64')
url="http://prime-rogue.net/"
license=('GPL')
depends=('ncurses' 'gcc-libs' 'libsigsegv' 'lua51' 'sdl_net' 'sdl_mixer')
makedepends=('fpc') # whhhhyyyyy
source=("https://pkgbuild.com/~kkeen/sources/prime_src-$pkgver.tar.bz2")
md5sums=('321beb1cff617d41b37ca33968512442')
build()
{
cd "$srcdir/prime"
sed -is 's/-llua /-llua5.1 /g' noteye/Makefile* makefile.base
#sed -i 's/cp help/cp docs/' makefile.std
sed -i 's/cp help/#&/' makefile.std
sed -i 's/cp data/cp user/' makefile.std
#sed -i 's/multi: multi-user /& nogui /' makefile.std
#echo "#define NOGUI" >> config.h
# the FPC stuff seems to be extremely baked-in
# has difficulty linking Noteye, console only for now
make -f makefile.std -j1 multiconsole
}
package()
{
cd "$srcdir/prime"
make PREFIX="$pkgdir" -f makefile.std install
mkdir -p "$pkgdir/usr/bin/"
ln -s /usr/games/bin/prime "$pkgdir/usr/bin/primerl"
chmod -x "$pkgdir/var/games/prime/"*
#install -Dm644 libnoteye.so "$pkgdir/usr/lib/libnoteye.so"
}
|