vdrift: switch to build_style=scons.

This commit is contained in:
Juan RP 2015-09-05 10:36:34 +02:00
parent dff3981c64
commit d27cb379b9

View file

@ -1,8 +1,11 @@
# Template file for 'vdrift'
pkgname=vdrift
version=2014.10.20
revision=2
revision=3
wrksrc="${pkgname}"
build_style=scons
make_build_args="release=1 force_feedback=1 extbullet=1 datadir=share/$pkgname"
make_install_args="${make_build_args}"
hostmakedepends="pkg-config scons"
makedepends="asio libcurl-devel bullet-devel SDL2_image-devel glew-devel
libvorbis-devel libarchive-devel MesaLib-devel"
@ -14,12 +17,7 @@ homepage="http://vdrift.net/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version//./-}.tar.bz2"
checksum=458d45d59075c2ce943ec6bc271a5bd0eb6bc6ed123670b65038703345020be3
do_build() {
scons ${makejobs} destdir=${DESTDIR} release=1 force_feedback=1 \
prefix=/usr datadir=share/$pkgname extbullet=1
}
do_install() {
scons install
post_install() {
# install .desktop file
vinstall $pkgname.desktop 644 usr/share/applications
sed -i '1 s/^\xef\xbb\xbf//' \