New package: XorCurses-0.2.2
This commit is contained in:
parent
0daaf42c22
commit
7329b43fa9
1 changed files with 38 additions and 0 deletions
38
srcpkgs/XorCurses/template
Normal file
38
srcpkgs/XorCurses/template
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
# Template file for 'XorCurses'
|
||||||
|
pkgname=XorCurses
|
||||||
|
version=0.2.2
|
||||||
|
revision=1
|
||||||
|
makedepends="ncurses-devel"
|
||||||
|
short_desc="Logic puzzle based on Xor by Astral Software"
|
||||||
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
||||||
|
license="GPL-3"
|
||||||
|
homepage="http://jwm-art.net/?p=XorCurses"
|
||||||
|
distfiles="http://jwm-art.net/art/archive/${pkgname}-${version}.tar.bz2"
|
||||||
|
checksum=52ce28c4eb4d10fd51668d08e17e9e2a54d520f1d864bb2b659dbcf8e0187969
|
||||||
|
|
||||||
|
_cc() {
|
||||||
|
echo "$@"
|
||||||
|
$@
|
||||||
|
}
|
||||||
|
|
||||||
|
do_build() {
|
||||||
|
local f o objs
|
||||||
|
CFLAGS+=" -std=gnu99 -Wall -Wextra"
|
||||||
|
CFLAGS+=" -DDATADIR=\"/usr/share/${pkgname}\""
|
||||||
|
CFLAGS+=" -DVERSION=\"${version}\""
|
||||||
|
for f in ./*.c; do
|
||||||
|
o=${f%.c}.o
|
||||||
|
objs+=" $o"
|
||||||
|
_cc $CC $CFLAGS -o $o -c $f
|
||||||
|
done
|
||||||
|
_cc $CC -o ${pkgname} ${objs} -lncurses
|
||||||
|
}
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
vbin ${pkgname}
|
||||||
|
vmkdir usr/share/${pkgname}/maps
|
||||||
|
vcopy maps/* usr/share/${pkgname}/maps
|
||||||
|
for f in ./help*.txt; do
|
||||||
|
vcopy $f usr/share/${pkgname}
|
||||||
|
done
|
||||||
|
}
|
Loading…
Reference in a new issue