New package: xrick-021212

This commit is contained in:
Michael Aldridge 2017-06-02 21:10:34 -05:00
parent 4ed3fa217f
commit 18d7e48a76
3 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,4 @@
#!/bin/sh
cd /usr/share/xrick
exec xrick

View File

@ -0,0 +1,15 @@
--- Makefile.orig 2017-06-02 21:17:59.554162598 -0500
+++ Makefile 2017-06-02 21:18:27.781905157 -0500
@@ -71,10 +71,8 @@
all:
@echo "ROOTDIR=$(ROOTDIR)" > Makefile.global
@echo "XOBJ=$(XOBJ)" >> Makefile.global
- @echo "CFLAGS=-g -ansi -pedantic -Wall -W -O2 -I $(ROOTDIR)/include $(shell sdl-config --cflags)" >> Makefile.global
- @echo "LDFLAGS=-lz $(shell sdl-config --libs)" >> Makefile.global
- @echo "CC=gcc" >> Makefile.global
- @echo "CPP=gcc -E" >> Makefile.global
+ @echo "CFLAGS+=-g -ansi -pedantic -Wall -W -O2 -I $(ROOTDIR)/include $(shell sdl-config --cflags)" >> Makefile.global
+ @echo "LDFLAGS+=-lz $(shell sdl-config --libs)" >> Makefile.global
$(MAKE) -C src all
clean:

22
srcpkgs/xrick/template Normal file
View File

@ -0,0 +1,22 @@
# Template file for 'xrick'
pkgname=xrick
version=021212
revision=1
build_style=gnu-makefile
make_use_env=1
makedepends="SDL-devel zlib-devel"
short_desc="Clone of Rick Dangerous"
maintainer="Michael Aldridge <aldridge.mac@gmail.com>"
license="GPL-ish"
restricted=yes
homepage="http://www.bigorno.net/xrick/"
distfiles="https://www.bigorno.net/xrick/xrick-${version}.tgz"
checksum=aa8542120bec97a730258027a294bd16196eb8b3d66134483d085f698588fc2b
do_install() {
vmkdir usr/share/$pkgname
vinstall data.zip 0644 usr/share/$pkgname
vbin xrick
vbin ${FILESDIR}/xrick-launcher
vlicense README
}