void-packages/srcpkgs/xmoto/template
2021-03-26 08:35:09 +07:00

36 lines
1.2 KiB
Bash

# Template file for 'xmoto'
pkgname=xmoto
version=0.6.1
revision=2
build_style=cmake
build_helper="qemu"
configure_args="-DOpenGL_GL_PREFERENCE=GLVND -DXMOTO_PACK=manual"
hostmakedepends="automake libtool gettext-devel-tools intltool desktop-file-utils"
makedepends="sqlite-devel zlib-devel libjpeg-turbo-devel libpng-devel
libxml2-devel libxdg-basedir-devel glu-devel SDL-devel SDL_mixer-devel
SDL_net-devel SDL_ttf-devel lua52-devel libcurl-devel libode-devel
bzip2-devel gettext-devel"
depends="${pkgname}-data"
short_desc="2D motocross platform game"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://xmoto.tuxfamily.org/"
distfiles="https://github.com/xmoto/xmoto/archive/${version}/${version}.tar.gz"
checksum=209c8c38b1742d0620d40f90365c7a56f67c86da826c80a76d37fa46ee9c9b66
pre_install() {
vtargetrun build/src/xmoto --pack build/bin/xmoto.bin bin/
}
post_install() {
desktop-file-install --set-key=Icon --set-value=xmoto -m 0644 \
--dir="${DESTDIR}/usr/share/applications" extra/xmoto.desktop
vinstall extra/xmoto.xpm 644 usr/share/pixmaps
}
xmoto-data_package() {
short_desc+=" - data files"
pkg_install() {
vmove usr/share/xmoto
}
}