void-packages/srcpkgs/gnurobbo/template
2021-04-14 19:44:00 +00:00

40 lines
1.2 KiB
Bash

# Template file for 'gnurobbo'
pkgname=gnurobbo
version=0.68
revision=4
build_wrksrc=gnurobbo
build_style=gnu-makefile
hostmakedepends="pkg-config"
makedepends="SDL_mixer-devel SDL_image-devel SDL_ttf-devel"
short_desc="Reimplementation of Janusz Pelc's Robbo for Atari XE/XL"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://gnurobbo.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/gnurobbo/gnurobbo/gnurobbo%20${version}/gnurobbo-${version}-source.tar.gz"
checksum=6c7e9e425655da02c2442d13b5fa8f542af62d2c8f253db2fb63470c5c0c3db8
CFLAGS="-fcommon"
pre_build() {
vsed -i Makefile \
-e "s;\(CFLAGS\?+=\)-d;\1;" \
-e "s;CFLAGS+\?=;\0 ${CFLAGS} ;" \
-e "s;LDFLAGS+\?=;\0 ${LDFLAGS} ;" \
-e "/LIBS=/s;\(.*\);\1 -lm;"
}
do_build() {
make ${makejobs} \
BINDIR=/usr/bin \
DOCDIR=/usr/share/doc/${pkgname} \
PACKAGE_DATA_DIR=/usr/share/${pkgname}
}
do_install() {
make BINDIR=${DESTDIR}/usr/bin \
DOCDIR=${DESTDIR}/usr/share/doc/${pkgname} \
PACKAGE_DATA_DIR=${DESTDIR}/usr/share/${pkgname} \
install
vinstall icon32.png 644 usr/share/pixmaps gnurobbo.png
vinstall ${FILESDIR}/gnurobbo.desktop 644 usr/share/applications
}