void-packages/srcpkgs/puzzles/template
2020-11-03 22:32:27 +01:00

29 lines
954 B
Bash

# Template file for 'puzzles'
pkgname=puzzles
version=20200609.9aa7b7c
revision=1
wrksrc="${pkgname}-${version#*.}"
hostmakedepends="pkg-config perl"
makedepends="gtk+-devel"
short_desc="Simon Tatham's Portable Puzzle Collection"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="MIT"
homepage="http://www.chiark.greenend.org.uk/~sgtatham/puzzles/"
distfiles="https://git.tartarus.org/?p=simon/puzzles.git;a=snapshot;h=9aa7b7cdfb2bcd200f45941a58d6ae698882a2d4;sf=tgz>${wrksrc}.tgz"
checksum=855a548a7b2485ca80a1c83eeb7fdb35b01500faae986e7ba9b8da9a2f0c9060
do_build() {
sed -i 's/-Werror -ansi -pedantic//' mkfiles.pl
./mkfiles.pl
echo "XLIBS += ${LDFLAGS}" >>Makefile.gtk
echo "ULIBS += ${LDFLAGS}" >>Makefile.gtk
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
}