void-packages/srcpkgs/gnurobbo/template

37 lines
1.1 KiB
Bash
Raw Normal View History

2015-09-23 05:41:51 +02:00
# Template file for 'gnurobbo'
pkgname=gnurobbo
2015-09-30 16:53:11 +02:00
version=0.68
2015-09-23 05:41:51 +02:00
revision=1
2015-09-30 16:53:11 +02:00
build_wrksrc=gnurobbo
2015-09-23 05:41:51 +02:00
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"
2015-09-30 16:53:11 +02:00
checksum=6c7e9e425655da02c2442d13b5fa8f542af62d2c8f253db2fb63470c5c0c3db8
2015-09-23 05:41:51 +02:00
pre_build() {
sed -i Makefile \
-e "s;CFLAGS\?=.*;CFLAGS=${CFLAGS};" \
-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
}