diff --git a/srcpkgs/puzzles/template b/srcpkgs/puzzles/template new file mode 100644 index 00000000000..80029b5238d --- /dev/null +++ b/srcpkgs/puzzles/template @@ -0,0 +1,27 @@ +# Template file for 'puzzles' +pkgname=puzzles +version=10196 +revision=1 +hostmakedepends="subversion libsasl perl pkg-config" +makedepends="gtk+-devel" +short_desc="Simon Tatham's Portable Puzzle Collection" +maintainer="Christian Neukirchen " +license="MIT" +homepage="http://www.chiark.greenend.org.uk/~sgtatham/puzzles/" + +do_fetch() { + svn co -r${version} svn://svn.tartarus.org/sgt/puzzles ${pkgname}-${version} +} + +do_build() { + ./mkfiles.pl + CC="${CC}" CFLAGS="${CFLAGS}" 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 +}