New package: vdrift-2014.10.20
This commit is contained in:
parent
99d0d9358b
commit
b7d14d44e5
2 changed files with 44 additions and 0 deletions
1
srcpkgs/vdrift-data
Symbolic link
1
srcpkgs/vdrift-data
Symbolic link
|
@ -0,0 +1 @@
|
|||
vdrift
|
43
srcpkgs/vdrift/template
Normal file
43
srcpkgs/vdrift/template
Normal file
|
@ -0,0 +1,43 @@
|
|||
# Template file for 'vdrift'
|
||||
pkgname=vdrift
|
||||
version=2014.10.20
|
||||
revision=1
|
||||
wrksrc="${pkgname}"
|
||||
hostmakedepends="pkg-config scons"
|
||||
makedepends="asio libcurl-devel bullet-devel SDL2_image-devel glew-devel
|
||||
libvorbis-devel libarchive-devel MesaLib-devel"
|
||||
depends="vdrift-data-${version}_${revision}"
|
||||
short_desc="Open source driving simulation made with drift racing in mind"
|
||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||
license="GPL-2"
|
||||
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
|
||||
# install .desktop file
|
||||
vinstall $pkgname.desktop 644 usr/share/applications
|
||||
sed -i '1 s/^\xef\xbb\xbf//' \
|
||||
${DESTDIR}/usr/share/applications/$pkgname.desktop
|
||||
|
||||
# install icons
|
||||
for f in 16 32 64; do
|
||||
vinstall data/textures/icons/vdrift-${f}x${f}.png 644 \
|
||||
usr/share/icons/hicolor/${f}x${f}/apps vdrift.png
|
||||
done
|
||||
vinstall data/textures/icons/vdrift-64x64.png 644 \
|
||||
usr/share/pixmapgs vdrift.png
|
||||
}
|
||||
|
||||
vdrift-data_package() {
|
||||
short_desc+=" - data files"
|
||||
noarch=yes
|
||||
pkg_install() {
|
||||
vmove usr/share/vdrift
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue