diff options
author | Nathaniel Cook | 2020-12-18 15:32:54 -0700 |
---|---|---|
committer | Nathaniel Cook | 2020-12-18 15:32:54 -0700 |
commit | a37fc11a76ba82e86e863dd66841a8be700e875f (patch) | |
tree | 8e6c74425c36952bfd6c957ca90dfcc17e9a94de | |
download | aur-a37fc11a76ba82e86e863dd66841a8be700e875f.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 54 | ||||
-rw-r--r-- | sdl.patch | 21 |
3 files changed, 97 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..129bac448f66 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = pmars-sdl-git + pkgdesc = Reference implementation of Corewar game with SDL support + pkgver = v0.9.2.r17.ge7e8d08 + pkgrel = 1 + url = http://sourceforge.net/projects/corewar/ + arch = i686 + arch = x86_64 + arch = armv7hf + license = GPL2 + makedepends = gcc + makedepends = make + depends = libx11 + depends = sdl + depends = ncurses + conflicts = pmars + source = git+http://github.com/nathanielc/pMARS.git + source = sdl.patch + sha1sums = SKIP + sha1sums = b519084387385351223dedb3f69efbbc666a9b22 + +pkgname = pmars-sdl-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..96da03e8c89a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,54 @@ +# Contributor: Nathaniel Cook <nvcook42 /at/ gmail.com> + +pkgname=pmars-sdl-git +_pkgname=pMARS +pkgver=v0.9.2.r17.ge7e8d08 +pkgrel=1 +pkgdesc="Reference implementation of Corewar game with SDL support" +arch=('i686' 'x86_64' 'armv7hf') +url="http://sourceforge.net/projects/corewar/" +license=('GPL2') +conflicts=(pmars) +depends=(libx11 sdl ncurses) +makedepends=(gcc make) +source=(git+http://github.com/nathanielc/pMARS.git + sdl.patch + ) +sha1sums=('SKIP' + 'b519084387385351223dedb3f69efbbc666a9b22') + +pkgver() { + cd "$_pkgname" + git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd $_pkgname/src + make + cp pmars pmars-server + patch -p2 < ../../sdl.patch + make +} + +package() { + cd $_pkgname + # install binaries + install -D -m 0755 src/pmars-server "$pkgdir/usr/bin/pmars-server" + install -D -m 0755 src/pmars "$pkgdir/usr/bin/pmars" + + # install docs + install -D -m 0644 doc/pmars.6 "$pkgdir/usr/share/man/man6/pmars.6" + install -D -m 0644 doc/corewar-faq.html "$pkgdir/usr/share/pmars/doc/corewar-faq.html" + install -D -m 0644 doc/primer.94 "$pkgdir/usr/share/pmars/doc/primer.94" + install -D -m 0644 doc/primer.cdb "$pkgdir/usr/share/pmars/doc/primer.cdb" + install -D -m 0644 doc/redcode.ref "$pkgdir/usr/share/pmars/doc/redcode.ref" + install -D -m 0644 doc/whatsnew.080 "$pkgdir/usr/share/pmars/doc/whatsnew.080" + + # install example configs + install -D -m 0644 config/94x.opt "$pkgdir/usr/share/pmars/config/94x.opt" + install -D -m 0644 config/icws.opt "$pkgdir/usr/share/pmars/config/icws.opt" + install -D -m 0644 config/mw.mac "$pkgdir/usr/share/pmars/config/mw.mac" + install -D -m 0644 config/pmars.mac "$pkgdir/usr/share/pmars/config/pmars.mac" + install -D -m 0644 config/x.opt "$pkgdir/usr/share/pmars/config/x.opt" + +} diff --git a/sdl.patch b/sdl.patch new file mode 100644 index 000000000000..0b4c31d6151a --- /dev/null +++ b/sdl.patch @@ -0,0 +1,21 @@ +diff --git a/src/Makefile b/src/Makefile +index b62cada..3b642a8 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -18,13 +18,13 @@ CC = gcc # req. for linux + # (8) -DSDLGRAPHX 1 SDL graphics (generic) + + #DBG = -g -W -Wall -pg +-CFLAGS = -O4 -fomit-frame-pointer $(DBG) -DSERVER -DEXT94 -DPERMUTATE $(INC) ++CFLAGS = -O4 -fomit-frame-pointer $(DBG) -DSDLGRAPHX -DEXT94 -DPERMUTATE $(INC) + LFLAGS = -x + # LIB = -lcurses -ltermlib # enable this one for curses display + # LIB = -lvgagl -lvga # enable this one for Linux/SVGA + # LIB = -L/usr/X11R6/lib -lX11 # enable this one for X11 +-# INC = `sdl-config --cflags` # enable this one for SDL graphics +-# LIB = `sdl-config --libs` # enable this one for SDL graphics ++INC = `sdl-config --cflags` # enable this one for SDL graphics ++LIB = `sdl-config --libs` # enable this one for SDL graphics + + EXESUFFIX= + .SUFFIXES: .o .c .c~ .man .doc .6 |