void-packages/srcpkgs/flightgear/template

47 lines
1.6 KiB
Bash
Raw Normal View History

2015-10-31 15:34:37 +01:00
# Template file for 'flightgear'
pkgname=flightgear
2016-06-18 16:40:51 +02:00
version=2016.2.1
revision=1
2015-10-31 15:34:37 +01:00
build_style=cmake
configure_args="-DFG_DATA_DIR:STRING=/usr/share/flightgear/fgdata"
hostmakedepends="cmake fltk pkg-config"
2016-06-18 16:40:51 +02:00
makedepends="MesaLib-devel boost-devel freealut-devel libfreeglut-devel fltk-devel
libgsm-devel speex-devel sqlite-devel osg-devel plib-devel libcurl-devel simgear
$(vopt_if qt qt5-devel)"
2015-10-31 15:34:37 +01:00
depends="flightgear-data>=${version}"
short_desc="Sophisticated flight wimulator"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="GPL-3"
homepage="http://www.flightgear.org/"
distfiles="
2016-06-18 16:40:51 +02:00
$SOURCEFORGE_SITE/project/flightgear/release-${version%.*}/${pkgname}-${version}.tar.bz2
$SOURCEFORGE_SITE/project/flightgear/release-${version%.*}/FlightGear-${version}-data.tar.bz2"
2015-10-31 15:34:37 +01:00
checksum="
2016-06-18 16:40:51 +02:00
b554170ca6b5943fd90496759b055fb60f362ea96f6c46dfff89e3d12c940a94
225b32f4d813635ece72f09541640e818fba95386ff8715015693978c37eaace"
2015-10-31 15:34:37 +01:00
build_options="qt"
2015-10-31 15:34:37 +01:00
if [ "$CROSS_BUILD" ]; then
configure_args+=" -DSIMGEAR_COMPILE_TEST_EXITCODE=0"
else
build_options_default="qt"
2015-10-31 15:34:37 +01:00
fi
post_install() {
vinstall package/flightgear.desktop 644 usr/share/applications
vinstall package/flightgear.ico 644 usr/share/icons
vinstall ${FILESDIR}/flightgear.png 644 usr/share/pixmaps
vinstall scripts/completion/fg-completion.bash 644 usr/share/bash-completion/completions/fgfs
sed -i ${DESTDIR}/usr/share/applications/flightgear.desktop \
-e "s;Exec=.*;Exec=fgfs --fg-root=/usr/share/flightgear/fgdata;"
}
flightgear-data_package() {
short_desc+=" - data files"
noarch=yes
pkg_install() {
vmkdir usr/share/flightgear
mv ${XBPS_BUILDDIR}/fgdata ${PKGDESTDIR}/usr/share/flightgear
}
}