void-packages/srcpkgs/gnurobbo/template
Jürgen Buchmüller 30afcec33a gnurobbo: needs -fcommon for gcc10
[ci skip]
2020-08-28 18:25:33 +02:00

40 lines
1.2 KiB
Bash

# Template file for 'gnurobbo'
pkgname=gnurobbo
version=0.68
revision=3
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="Jürgen Buchmüller <pullmoll@t-online.de>"
license="GPL-2"
homepage="http://gnurobbo.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/gnurobbo/gnurobbo/gnurobbo%20${version}/gnurobbo-${version}-source.tar.gz"
checksum=6c7e9e425655da02c2442d13b5fa8f542af62d2c8f253db2fb63470c5c0c3db8
CFLAGS="-fcommon"
pre_build() {
sed -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
}