Files
haikuports/sci-geosciences/gpxsee/gpxsee-7.7.recipe
2019-05-22 14:46:13 +03:00

92 lines
2.4 KiB
Bash

SUMMARY="GPS log file viewer and analyzer"
DESCRIPTION="GPXSee is a Qt-based GPS log file viewer and analyzer that supports \
all common GPS log file formats."
HOMEPAGE="https://www.gpxsee.org/"
COPYRIGHT="2015-2019 Martin Tůma"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="https://github.com/tumic0/gpxsee/archive/$portVersion/GPXSee-$portVersion.tar.gz"
CHECKSUM_SHA256="7014fd669f9f71e8c70d3d8aacfb10d072eed80be785cb56298857764b9187b2"
SOURCE_DIR="GPXSee-$portVersion"
PATCHES="gpxsee-$portVersion.patchset"
ADDITIONAL_FILES="
gpxsee.rdef.in
icons.zip
"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
gpxsee$secondaryArchSuffix = $portVersion
app:GPXSee = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libQt5Concurrent$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5Network$secondaryArchSuffix
lib:libQt5PrintSupport$secondaryArchSuffix
lib:libQt5Sql$secondaryArchSuffix
lib:libQt5Widgets$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libGL$secondaryArchSuffix
devel:libQt5Concurrent$secondaryArchSuffix
devel:libQt5Core$secondaryArchSuffix
devel:libQt5Gui$secondaryArchSuffix
devel:libQt5Network$secondaryArchSuffix
devel:libQt5PrintSupport$secondaryArchSuffix
devel:libQt5Sql$secondaryArchSuffix
devel:libQt5Widgets$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:g++$secondaryArchSuffix
cmd:lrelease$secondaryArchSuffix
cmd:make
cmd:qmake$secondaryArchSuffix
cmd:unzip
"
PATCH()
{
unzip -o $sourceDir/../../additional-files/icons.zip -d $sourceDir/icons
}
BUILD()
{
lrelease gpxsee.pro
qmake gpxsee.pro
make $jobArgs
}
INSTALL()
{
mkdir -p $appsDir
mkdir -p $dataDir/GPXSee/{maps,csv,translations}
cp gpxsee $appsDir/GPXSee
cp -r pkg/maps/* $dataDir/GPXSee/maps
cp -r pkg/csv/* $dataDir/GPXSee/csv
cp -r lang/*.qm $dataDir/GPXSee/translations
local APP_SIGNATURE="application/x-vnd.qt5-gpxsee"
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="0"
local LONG_INFO="$SUMMARY"
sed \
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
-e "s|@LONG_INFO@|$LONG_INFO|" \
$portDir/additional-files/gpxsee.rdef.in > gpxsee.rdef
addResourcesToBinaries gpxsee.rdef $appsDir/GPXSee
addAppDeskbarSymlink $appsDir/GPXSee
}