Merge pull request #451 from onekk/master

New Package: gpsbabel GPS data conversion and transfer.
This commit is contained in:
Juan RP 2014-07-04 05:56:09 +02:00
commit b44982acb6
3 changed files with 61 additions and 0 deletions

1
srcpkgs/gpsbabel-gui Symbolic link
View File

@ -0,0 +1 @@
./gpsbabel

View File

@ -0,0 +1,15 @@
--- Makefile.in 2014-04-14 04:29:46.000000000 +0200
+++ Makefile.in.new 2014-06-15 15:32:23.392644000 +0200
@@ -252,7 +252,11 @@
perl xmldoc/makedoc
xmlwf xmldoc/readme.xml #check for well-formedness
xmllint --noout --valid xmldoc/readme.xml #validate
- xsltproc -o $@ xmldoc/babelpdf.xsl xmldoc/readme.xml
+ xsltproc \
+ -o $@ \
+ --stringparam paper.type A4 \
+ xmldoc/babelpdf.xsl \
+ xmldoc/readme.xml
gpsbabel.pdf: gpsbabel.fo
fop -q -fo gpsbabel.fo -pdf gpsbabel.pdf

45
srcpkgs/gpsbabel/template Normal file
View File

@ -0,0 +1,45 @@
# Template file for 'gpsbabel'
pkgname=gpsbabel
version=1.5.1
revision=1
build_style=gnu-configure
maintainer="Carlo Dormeletti <carlo.dormeletti@email.it>"
homepage="http://www.gpsbabel.org/"
license="GPL-2"
short_desc="Converts waypoints, tracks, and routes between popular GPS formats"
hostmakedepends="perl>=5.18 docbook-xml xmlwf offo-hyphenation"
makedepends="qt-devel libusb-compat-devel expat-devel libxml2-devel libxslt-devel"
distfiles="http://arch.p5n.pp.ru/~sergej/dl/2014/${pkgname}-${version}.tar.gz"
checksum="3feec7d43ca6cb5393645fe0df893d9f7bf5334849fa8abd4c5c3ee775c8cac3"
do_build(){
. /etc/profile.d/oracle-jre.sh
make
make doc
cd gui
qmake
make
}
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}
}
do_clean() {
# Remove temporary stuff from masterdir
rm -rf ${XBPS_BUILDDIR}/babelweb
}
gpsbabel-gui_package() {
short_desc+=" - Qt4 GUI"
depends="${sourcepkg}>=${version}_${revision} desktop-file-utils"
pkg_install() {
vinstall ${wrksrc}/gui/gpsbabelfe 755 usr/bin
vinstall ${wrksrc}/gui/objects/gpsbabelfe-bin 755 usr/bin
vinstall ${wrksrc}/gui/gpsbabel.desktop 644 usr/share/applications
vinstall ${wrksrc}/gui/images/appicon.png 644 usr/share/pixmaps gpsbabel.png
}
}