diff --git a/srcpkgs/puzzles/template b/srcpkgs/puzzles/template index 9b75048b1a9..cda5ec6b285 100644 --- a/srcpkgs/puzzles/template +++ b/srcpkgs/puzzles/template @@ -1,28 +1,19 @@ # Template file for 'puzzles' pkgname=puzzles -version=20200609.9aa7b7c +version=20210427.8ff394d revision=1 wrksrc="${pkgname}-${version#*.}" -hostmakedepends="pkg-config perl" -makedepends="gtk+-devel" +build_style=cmake +configure_args="-DNAME_PREFIX=puzzles-" +hostmakedepends="pkg-config" +makedepends="gtk+3-devel" short_desc="Simon Tatham's Portable Puzzle Collection" maintainer="Leah Neukirchen " 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 +distfiles="https://git.tartarus.org/?p=simon/puzzles.git;a=snapshot;h=8ff394d1cc42efc3509135bbdd6ce92498eafcf3;sf=tgz>${wrksrc}.tgz" +checksum=54c507b3e6607344e9c4d6ab7beb29369ffeaacf3bbd258c6e76432d35f0ad60 -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 +post_install() { vlicense LICENCE LICENSE }