void-packages/srcpkgs/puzzles/template
Christian Neukirchen 02470705ce puzzles: update to 20160428.
Respect LDFLAGS.
2016-06-21 21:37:05 +02:00

28 lines
972 B
Bash

# Template file for 'puzzles'
pkgname=puzzles
version=20160428
revision=1
wrksrc="${pkgname}-b31155b"
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="http://tartarus.org/~simon-git/gitweb/?p=puzzles.git;a=snapshot;h=b31155b732c1bab2e744a0ebf7532af2de2ce4a5;sf=tgz>${pkgname}-${version}.tar.gz"
checksum=d4ac37d3dbba1ab49c26d0ad10f1ac69be20ed17140b137f0a4a1f0c0351d563
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
}