void-packages/srcpkgs/puzzles/template

27 lines
886 B
Bash
Raw Normal View History

2014-07-24 21:27:26 +02:00
# Template file for 'puzzles'
pkgname=puzzles
2015-05-02 23:42:22 +02:00
version=20150502
wrksrc="${pkgname}-7f64f4a"
2015-05-19 19:38:22 +02:00
revision=2
2015-05-02 23:42:22 +02:00
hostmakedepends="pkg-config perl"
2014-07-24 21:27:26 +02:00
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/"
2015-05-02 23:42:22 +02:00
distfiles="http://tartarus.org/~simon-git/gitweb/?p=puzzles.git;a=snapshot;h=7f64f4a50e46304b7bad011a1251e146ab63ca15;sf=tgz>${pkgname}-${version}.tar.gz"
checksum=7f4edcbe542b64726461c17272ba49790197272231460abb363dd67fc3cde739
2014-07-24 21:27:26 +02:00
do_build() {
2015-05-02 23:42:22 +02:00
./mkfiles.pl
2015-05-19 19:38:22 +02:00
CC="${CC}" CFLAGS="${CFLAGS} -Wno-error" make ${makejobs} -f Makefile.gtk \
2014-07-24 21:27:26 +02:00
prefix=/usr BINPREFIX=puzzles-
}
do_install() {
vmkdir usr/bin
make -f Makefile.gtk prefix=/usr gamesdir=/usr/bin \
2014-11-23 15:41:48 +01:00
DESTDIR="${DESTDIR}" BINPREFIX=puzzles- install
2014-07-24 21:27:26 +02:00
vlicense LICENCE LICENSE
2014-11-23 15:41:48 +01:00
}