void-packages/srcpkgs/mog/template
Enno Boland f40cd77686 srcpkgs: remove pullmoll from maintainers field. 😢
Set them to Orphaned for now.

If you'd like to pick up a package, feel free.
2021-04-10 16:34:44 +02:00

37 lines
1.1 KiB
Bash

# Template file for 'mog'
pkgname=mog
version=0.63
revision=3
_build=1548
wrksrc=${pkgname}-${version}.${_build}
build_style=gnu-makefile
makedepends="SDL_image-devel SDL_mixer-devel SDL_sound-devel"
depends="mog-data>=${version}_${revision}"
short_desc="Remake of classic MSX game The Maze of Galious"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://www.braingames.getput.com/mog/"
distfiles="http://urchlay.naptime.net/~urchlay/src/mog.src_${version}-${_build}.tgz"
checksum=707bbc1b167a55989916f803dbe55c288652fb54df6194be029c41be99e9ec3a
broken="ELF in /usr/share"
CFLAGS="-g3 -O3 -Wno-write-strings -I${XBPS_CROSS_BASE}/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT"
pre_build() {
local libs="-L${XBPS_CROSS_BASE}/usr/lib"
libs+=" -lstdc++ -lm"
libs+=" -lSDL_image"
libs+=" -lSDL_mixer"
libs+=" -lSDL_sound"
libs+=" -lSDL -lpthread"
sed -i build/linux/Makefile -e "s;@LIBS@;${libs};"
}
mog-data_package() {
short_desc+=" - data files"
pkg_install() {
vmove usr/share/mog/graphics
vmove usr/share/mog/sound
vmove usr/share/mog/rooms
}
}