gpsbabel: use qmake build-helper

enable cross-builds and fix package cleanup
This commit is contained in:
newbluemoon 2019-11-03 07:45:20 +01:00 committed by Helmut Pozimski
parent d573f8103c
commit 673bc8f56e
1 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,7 @@ version=1.5.4
revision=1
wrksrc="gpsbabel-gpsbabel_${version//./_}"
build_style=gnu-configure
build_helper=qmake
makedepends="qt5-devel libusb-compat-devel"
depends="desktop-file-utils"
short_desc="Converts waypoints, tracks, and routes between popular GPS formats"
@ -14,10 +15,10 @@ distfiles="https://github.com/gpsbabel/${pkgname}/archive/${pkgname}_${version//
checksum=8cd740db0b92610abff71e942e8a987df58cd6ca5f25cca86e15f2b00e190704
replaces="gpsbabel-gui>=0"
nocross="Builds components as the host arch"
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-devel"
configure_args+=" ac_cv_prog_QMAKE=${XBPS_WRAPPERDIR}/qmake"
fi
do_build() {
@ -44,7 +45,7 @@ do_install() {
mv gui/*.qm ${DESTDIR}/usr/share/gpsbabel/translations
}
do_clean() {
post_pkg() {
# Remove temporary stuff from masterdir
rm -rf ${XBPS_BUILDDIR}/babelweb
}