void-packages/srcpkgs/pingus/template

27 lines
856 B
Bash

# Template file for 'pingus'
pkgname=pingus
version=0.7.6
revision=6
build_style=scons
hostmakedepends="scons pkg-config"
makedepends="SDL_image-devel SDL_mixer-devel boost-devel libpng-devel libXi-devel zlib-devel"
short_desc="Free Lemmings-like puzzle game"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://pingus.seul.org/welcome.html"
distfiles="http://pingus.googlecode.com/files/pingus-${version}.tar.bz2"
checksum=759c1253075d1e72691bc1e770b24cdd51917041fd1857c1daf85b65a6686460
nocross=yes
do_build() {
# XXX: defining CXXFLAGS breaks dependency detection.
scons ${makejobs} CC=$CC CXX=$CXX CCFLAGS="$CFLAGS" \
LINKFLAGS="$LDFLAGS" \
prefix=/usr destdir=${DESTDIR} DESTDIR=${DESTDIR}
}
do_install() {
make PREFIX=/usr DESTDIR=${DESTDIR} install
vinstall ${FILESDIR}/pingus.desktop 644 usr/share/applications
}