vp-build/srcpkgs/puzzles/template

30 lines
991 B
Bash

# Template file for 'puzzles'
pkgname=puzzles
version=20170605
revision=1
_gitrev=272beef5f98fecc59c975ea920c601836a6bb08c
wrksrc="${pkgname}-${_gitrev:0:7}"
hostmakedepends="pkg-config perl"
makedepends="gtk+-devel"
short_desc="Simon Tatham's Portable Puzzle Collection"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="MIT"
homepage="http://www.chiark.greenend.org.uk/~sgtatham/puzzles/"
distfiles="https://git.tartarus.org/?p=simon/puzzles.git;a=snapshot;h=${_gitrev};sf=tgz>${pkgname}-${version}.tar.gz"
checksum=25dba483ef9ec3e798d514fdefb124fb60bb390d266331b2291129ad6973b391
do_build() {
./mkfiles.pl
echo "XLIBS += ${LDFLAGS}" >>Makefile.gtk
echo "ULIBS += ${LDFLAGS}" >>Makefile.gtk
CC="${CC}" CFLAGS="${CFLAGS} -Wno-error" \
make ${makejobs} -f Makefile.gtk prefix=/usr BINPREFIX=puzzles-
}
do_install() {
vmkdir usr/bin
make -f Makefile.gtk prefix=/usr gamesdir=/usr/bin \
DESTDIR="${DESTDIR}" BINPREFIX=puzzles- install
vlicense LICENCE LICENSE
}