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 { resource app_version {
major = @MAJOR@, major = @MAJOR@,
middle = @MIDDLE@, middle = @MIDDLE@,
minor = @MINOR@, minor = 0,
variety = B_APPV_FINAL, variety = B_APPV_FINAL,
internal = @INTERNAL@, internal = 0,
short_info = "Nomacs ImageLounge", short_info = "Nomacs ImageLounge",
long_info = "@LONG_INFO@" long_info = "@LONG_INFO@"

View File

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