void-packages/srcpkgs/gnurobbo/template
2016-06-22 13:14:51 +02:00

37 lines
1.1 KiB
Bash

# Template file for 'gnurobbo'
pkgname=gnurobbo
version=0.68
revision=2
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
pre_build() {
sed -i Makefile \
-e "s;CFLAGS\?=.*;CFLAGS=${CFLAGS};" \
-e "s;LDFLAGS\?=.*;LDFLAGS=${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
}