mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
Flameshot: add hvif icon for app
* fix crash on save
This commit is contained in:
@@ -9,38 +9,48 @@ DESCRIPTION="Features
|
||||
HOMEPAGE="https://github.com/lupoDharkael/flameshot/"
|
||||
COPYRIGHT="2019 lupoDharkael"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://github.com/lupoDharkael/flameshot/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="61b3a1969d6e17d80d5d90a3fce53ca5ae78fa21f9a45e5a19b0b32ea815a589"
|
||||
#ADDITIONAL_FILES="flameshot.rdef"
|
||||
PATCHES="flameshot-$portVersion.patchset"
|
||||
ADDITIONAL_FILES="
|
||||
flameshot.rdef.in
|
||||
flameshot.png
|
||||
"
|
||||
|
||||
ARCHITECTURES="x86_64"
|
||||
ARCHITECTURES="!x86_gcc2 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
flameshot = $portVersion
|
||||
app:Flameshot = $portVersion
|
||||
flameshot$secondaryArchSuffix = $portVersion
|
||||
app:Flameshot$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
lib:libGL
|
||||
lib:libQt5Core
|
||||
lib:libQt5DBus
|
||||
lib:libQt5Gui
|
||||
lib:libQt5Network
|
||||
lib:libQt5Svg
|
||||
lib:libQt5Widgets
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
lib:libQt5Core$secondaryArchSuffix
|
||||
lib:libQt5DBus$secondaryArchSuffix
|
||||
lib:libQt5Gui$secondaryArchSuffix
|
||||
lib:libQt5Network$secondaryArchSuffix
|
||||
lib:libQt5Svg$secondaryArchSuffix
|
||||
lib:libQt5Widgets$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc
|
||||
cmd:lrelease >= 5
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:lrelease$secondaryArchSuffix >= 5
|
||||
cmd:make
|
||||
cmd:qmake >= 5
|
||||
cmd:qmake$secondaryArchSuffix >= 5
|
||||
"
|
||||
|
||||
PATCH()
|
||||
{
|
||||
cp -f $sourceDir/../../additional-files/flameshot.png $sourceDir/img/app/flameshot.png
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
qmake PREFIX=$appsDir/Flameshot
|
||||
@@ -60,5 +70,20 @@ INSTALL()
|
||||
rm -rf $appsDir/Flameshot/bin
|
||||
rm -rf $appsDir/Flameshot/share
|
||||
|
||||
local APP_SIGNATURE="application/x-vnd.flameshot"
|
||||
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/flameshot.rdef.in > flameshot.rdef
|
||||
|
||||
addResourcesToBinaries flameshot.rdef $appsDir/Flameshot/Flameshot
|
||||
|
||||
addAppDeskbarSymlink $appsDir/Flameshot/Flameshot
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user