flameshot: version bump (#4111)

This commit is contained in:
kikadf
2019-08-20 23:32:46 +02:00
committed by Sergei Reznikov
parent 71b3750e6f
commit a4b9edd1ba
2 changed files with 65 additions and 6 deletions

View File

@@ -7,11 +7,11 @@ DESCRIPTION="Features
* DBus interface.
* Upload to Imgur."
HOMEPAGE="https://github.com/lupoDharkael/flameshot/"
COPYRIGHT="2017 lupoDharkael"
COPYRIGHT="2019 lupoDharkael"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="https://github.com/lupoDharkael/flameshot/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="32d593c14c37286d9f64873c4ef9a07eb084723c92b2280d5c22152547c1e3f0"
CHECKSUM_SHA256="61b3a1969d6e17d80d5d90a3fce53ca5ae78fa21f9a45e5a19b0b32ea815a589"
#ADDITIONAL_FILES="flameshot.rdef"
ARCHITECTURES="x86_64"
@@ -27,6 +27,7 @@ REQUIRES="
lib:libQt5DBus
lib:libQt5Gui
lib:libQt5Network
lib:libQt5Svg
lib:libQt5Widgets
"
@@ -35,19 +36,29 @@ BUILD_REQUIRES="
"
BUILD_PREREQUIRES="
cmd:gcc
cmd:lrelease >= 5
cmd:make
cmd:qmake >= 5
"
BUILD()
{
qmake
qmake PREFIX=$appsDir/Flameshot
make $jobArgs
}
INSTALL()
{
mkdir -p $appsDir
cp flameshot $appsDir/Flameshot
addAppDeskbarSymlink $appsDir/Flameshot
make install
mv $appsDir/Flameshot/bin/flameshot \
$appsDir/Flameshot/Flameshot
mv $appsDir/Flameshot/share/flameshot/translations \
$appsDir/Flameshot
rm -rf $appsDir/Flameshot/bin
rm -rf $appsDir/Flameshot/share
addAppDeskbarSymlink $appsDir/Flameshot/Flameshot
}

View File

@@ -0,0 +1,48 @@
From f8c5ab33bc23c2b6b947f45e939006466d272e8a Mon Sep 17 00:00:00 2001
From: kikadf <kikadf.01@gmail.com>
Date: Tue, 20 Aug 2019 17:29:57 +0200
Subject: Enable hungarian translation
diff --git a/flameshot.pro b/flameshot.pro
index 7485ab8..a3d789c 100644
--- a/flameshot.pro
+++ b/flameshot.pro
@@ -43,6 +43,7 @@ TRANSLATIONS = translations/Internationalization_es.ts \
translations/Internationalization_tr.ts \
translations/Internationalization_ka.ts \
translations/Internationalization_fr.ts \
+ translations/Internationalization_hu.ts \
translations/Internationalization_pl.ts
# Generate translations in build
--
2.23.0
From 753f29334f79c63f9b17c8b1d28c3dce91bf38f6 Mon Sep 17 00:00:00 2001
From: kikadf <kikadf.01@gmail.com>
Date: Tue, 20 Aug 2019 17:32:30 +0200
Subject: Fix: LC_ALL not defined on Haiku, cause crash when config menu
selected
diff --git a/src/main.cpp b/src/main.cpp
index 83fa1c1..edebc8c 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -37,6 +37,11 @@
#endif
int main(int argc, char *argv[]) {
+#if defined(__HAIKU__)
+ /*LC_ALL not defined on Haiku*/
+ setenv("LC_ALL","C",1);
+#endif
+
// required for the button serialization
// TODO: change to QVector in v1.0
qRegisterMetaTypeStreamOperators<QList<int> >("QList<int>");
--
2.23.0