nomacs: bump for rebuild, minor cleanup

This commit is contained in:
Gerasim Troeglazov
2022-06-13 20:02:23 +10:00
parent 1c823a5ff0
commit cdd7171694
2 changed files with 5 additions and 9 deletions

View File

@@ -5,10 +5,10 @@ resource app_flags B_MULTIPLE_LAUNCH;
resource app_version {
major = @MAJOR@,
middle = @MIDDLE@,
minor = @MINOR@,
minor = 0,
variety = B_APPV_FINAL,
internal = @INTERNAL@,
internal = 0,
short_info = "Nomacs ImageLounge",
long_info = "@LONG_INFO@"

View File

@@ -7,7 +7,7 @@ COPYRIGHT="2011-2020 Markus Diem
2011-2020 Stefan Fiel
2011-2020 Florian Kleber"
LICENSE="GNU LGPL v3"
REVISION="2"
REVISION="3"
SOURCE_URI="https://github.com/nomacs/nomacs/archive/$portVersion.224.tar.gz"
CHECKSUM_SHA256="bbc7e9048026ef9e0d2b64902c88050f17a679ef3d3c009de2c3b7de5d1d217c"
SOURCE_FILENAME="nomacs-$portVersion.tar.gz"
@@ -66,7 +66,7 @@ BUILD_REQUIRES="
devel:libQt5Svg$secondaryArchSuffix
devel:libQt5Widgets$secondaryArchSuffix
devel:libquazip5$secondaryArchSuffix
devel:libraw$secondaryArchSuffix >= 19
devel:libraw$secondaryArchSuffix
devel:libtiff$secondaryArchSuffix >= 5
devel:libz$secondaryArchSuffix
"
@@ -97,6 +97,7 @@ BUILD()
cd build
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DUSE_SYSTEM_QUAZIP=ON \
-DENABLE_TRANSLATIONS=ON \
$cmakeDirArgs
@@ -112,16 +113,11 @@ INSTALL()
local APP_SIGNATURE="application/x-vnd.nomacs"
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
# local MINOR="`echo "$portVersion" | cut -d. -f3`"
local MINOR="0"
local INTERNAL="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|@INTERNAL@|$INTERNAL|" \
-e "s|@LONG_INFO@|$LONG_INFO|" \
$portDir/additional-files/nomacs.rdef.in > nomacs.rdef