# SliTaz package receipt. PACKAGE="merkaartor" VERSION="0.18.3" CATEGORY="misc" TAGS="openstreetmap" SHORT_DESC="An openstreetmap mapping program." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL" WEB_SITE="http://merkaartor.be/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://github.com/openstreetmap/$PACKAGE/archive/$VERSION.tar.gz" DEPENDS="cacerts gdal libpostgresqlclient libQtSvg libQtWebkit libQtXml proj" BUILD_DEPENDS="gdal-dev libQtWebkit perl proj-dev qmake Qt4-dev" current_version() { wget -O - ${WGET_URL%/arch*} 2>/dev/null | \ sed '/releases.tag/!d;s|.*/tag.\(.*\)".*|\1|;q' } # Rules to configure and make the package. compile_rules() { export CXXFLAGS="$CXXFLAGS -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H" qmake PREFIX="/usr" && make $MAKEFLAGS && # create localised messages cd translations make release && mkdir -p $install/usr/share/merkaartor/translations cp *.qm $install/usr/share/merkaartor/translations cd .. make install INSTALL_ROOT=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cp -a $install/usr $fs }