void-packages/srcpkgs/gpsbabel/template

41 lines
1.2 KiB
Bash

# Template file for 'gpsbabel'
pkgname=gpsbabel
version=1.5.2
revision=1
build_style=gnu-configure
maintainer="Philipp Hirsch <itself@hanspolo.net>"
homepage="http://www.gpsbabel.org/"
license="GPL-2"
short_desc="Converts waypoints, tracks, and routes between popular GPS formats"
hostmakedepends="perl docbook-xml xmlwf openjdk-jre offo-hyphenation"
makedepends="qt-devel libusb-compat-devel expat-devel libxslt-devel"
depends="desktop-file-utils"
distfiles="http://arch.p5n.pp.ru/~sergej/dl/${pkgname}-${version}.tar.gz"
checksum="c1a2f07d014d69dcce80e2ef8f23fe2fe3154324957b04d488da1b32458fad7b"
replaces="gpsbabel-gui>=0"
do_build(){
. /etc/profile.d/10_openjdk.sh
make ${makejobs}
make doc
cd gui
qmake
make ${makejobs}
}
do_install(){
make install DESTDIR=${DESTDIR}
vmkdir usr/share/doc/${pkgname}
vcopy "README* AUTHORS COPYING gpsbabel.pdf gpsbabel-sample.ini guibabel style" usr/share/doc/${pkgname}
vbin ${wrksrc}/gui/gpsbabelfe
vbin ${wrksrc}/gui/objects/gpsbabelfe-bin
vinstall ${wrksrc}/gui/gpsbabel.desktop 644 usr/share/applications
vinstall ${wrksrc}/gui/images/appicon.png 644 usr/share/pixmaps gpsbabel.png
}
do_clean() {
# Remove temporary stuff from masterdir
rm -rf ${XBPS_BUILDDIR}/babelweb
}