mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
77 lines
2.2 KiB
Bash
77 lines
2.2 KiB
Bash
SUMMARY="Program to show and manipulate GPS tracks"
|
|
DESCRIPTION="GPXLab is an application to display and manage GPS tracks \
|
|
previously recorded with a GPS tracker."
|
|
HOMEPAGE="https://bourgeoislab.wordpress.com/gpxlab/"
|
|
COPYRIGHT="2018 Frédéric Bourgeois"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/BourgeoisLab/GPXLab/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="430672eaf0c76e1f7f43cf2c117e63d818ac7e444acceefe6a0ef5a2f7b3d7f4"
|
|
SOURCE_FILENAME="GPXLab-$portVersion.tar.gz"
|
|
SOURCE_DIR="GPXLab-$portVersion"
|
|
PATCHES="gpxlab-$portVersion.patchset"
|
|
ADDITIONAL_FILES="gpxlab.rdef.in"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
gpxlab$secondaryArchSuffix = $portVersion
|
|
app:GPXLab = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
lib:libQt5Gui$secondaryArchSuffix
|
|
lib:libQt5Network$secondaryArchSuffix
|
|
lib:libQt5PrintSupport$secondaryArchSuffix
|
|
lib:libQt5Widgets$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libGL$secondaryArchSuffix
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
devel:libQt5Gui$secondaryArchSuffix
|
|
devel:libQt5Network$secondaryArchSuffix
|
|
devel:libQt5PrintSupport$secondaryArchSuffix
|
|
devel:libQt5Widgets$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:lrelease$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:qmake$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
lrelease GPXLab/GPXLab.pro
|
|
qmake GPXLab.pro
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $appsDir/GPXLab/translations
|
|
cp bin/GPXLab $appsDir/GPXLab/
|
|
cp -r GPXLab/locale/*.qm $appsDir/GPXLab/translations
|
|
|
|
local APP_SIGNATURE="application/x-vnd.qt5-gpxlab"
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
|
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/gpxlab.rdef.in > gpxlab.rdef
|
|
|
|
addResourcesToBinaries gpxlab.rdef $appsDir/GPXLab/GPXLab
|
|
addAppDeskbarSymlink $appsDir/GPXLab/GPXLab
|
|
}
|