void-packages/srcpkgs/opensonic/template
Juergen Buchmueller 79d7cf11c7 opensonic: fix PIE
See #4572
2016-09-04 00:40:25 +02:00

27 lines
872 B
Bash

# Template file for 'opensonic'
pkgname=opensonic
version=0.1.4
revision=6
wrksrc="opensnc-src-${version}"
hostmakedepends="cmake"
makedepends="allegro4-devel libpng-devel libvorbis-devel"
depends="desktop-file-utils"
short_desc="Open-source game based on the Sonic the Hedgehog universe"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://opensnc.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/opensnc/opensnc-src-${version}.tar.gz"
checksum=3a4c3fa9538ee27c04b5ea848c9ad0a83f335471936d4617a18d3648c42588e9
do_configure() {
LDFLAGS="$LDFLAGS -Wl,--no-as-needed" ./configure --prefix=/usr
}
do_build() {
make ${makejobs}
}
do_install() {
make DESTDIR=${DESTDIR} install
vinstall icon.png 644 usr/share/${pkgname}
vinstall ${FILESDIR}/opensonic.sh 755 usr/bin opensonic
vinstall ${FILESDIR}/opensonic.desktop 644 usr/share/applications
}