36 lines
1,016 B
Bash
36 lines
1,016 B
Bash
# Template file for 'pingus'
|
|
pkgname=pingus
|
|
version=0.7.6
|
|
revision=13
|
|
wrksrc="pingus-v${version}"
|
|
build_style=scons
|
|
hostmakedepends="pkg-config"
|
|
makedepends="SDL_image-devel SDL_mixer-devel boost-devel libpng-devel"
|
|
depends="${pkgname}-data"
|
|
short_desc="Free Lemmings-like puzzle game"
|
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://pingus.seul.org/"
|
|
distfiles="https://gitlab.com/pingus/pingus/-/archive/v${version}/pingus-v${version}.tar.gz"
|
|
checksum=31cb2c0ecddd49dbe03535648e8c7c2971da469c52af52cdf9dc2459798342c8
|
|
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
|
|
}
|
|
|
|
pingus-data_package() {
|
|
short_desc+=" - data files"
|
|
noarch=yes
|
|
pkg_install() {
|
|
vmove usr/share/pingus
|
|
}
|
|
}
|