27 lines
880 B
Bash
27 lines
880 B
Bash
# Template file for 'puzzles'
|
|
pkgname=puzzles
|
|
version=20190415.e2135d5
|
|
revision=2
|
|
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="http://www.chiark.greenend.org.uk/~sgtatham/puzzles/${pkgname}-${version}.tar.gz"
|
|
checksum=5309fc9d7c4b7b2fe2db4ea68654c5952c02d13bbe7d0a7caa0c285cf79de90a
|
|
|
|
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
|
|
}
|