summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Willy Sudiarto Raharjo <willysr@slackbuilds.org>2016-04-08 15:57:37 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2016-04-10 06:19:28 +0700
commit21c92625195d270f4b6316f9eb89683d71c173e6 (patch)
treebd515980bf9146c64523d2b2459d2ea6c45407b9
parent89e17f84157d037a603244104f32bc22c2078b11 (diff)
downloadslackbuilds-21c92625195d270f4b6316f9eb89683d71c173e6.tar.gz
slackbuilds-21c92625195d270f4b6316f9eb89683d71c173e6.tar.xz
graphics/nomacs: Updated for version 3.0.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--graphics/nomacs/nomacs.SlackBuild21
-rw-r--r--graphics/nomacs/nomacs.info8
2 files changed, 18 insertions, 11 deletions
diff --git a/graphics/nomacs/nomacs.SlackBuild b/graphics/nomacs/nomacs.SlackBuild
index 956ad0c653..f3a4162fd0 100644
--- a/graphics/nomacs/nomacs.SlackBuild
+++ b/graphics/nomacs/nomacs.SlackBuild
@@ -22,7 +22,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=nomacs
-VERSION=${VERSION:-2.4.2}
+VERSION=${VERSION:-3.0.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -55,20 +55,27 @@ fi
DOCS="Readme/COPYRIGHT Readme/LICENSE* Readme/README"
-set -e
+set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION-source.tar.?z*
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+cd ImageLounge
+
+# upstream commit
+# https://github.com/nomacs/nomacs/commit/aa3fffc15bb6cbec8ef140a070dc12e6888e79df
+# Remove on next release of nomacs
+sed -i "s|2.1.0||" cmake/Unix.cmake
# Fix man pages installation path
sed -i "s|share\/man|man|" cmake/UnixBuildTarget.cmake || exit 1
diff --git a/graphics/nomacs/nomacs.info b/graphics/nomacs/nomacs.info
index 2d00e4ff95..71f9516c9a 100644
--- a/graphics/nomacs/nomacs.info
+++ b/graphics/nomacs/nomacs.info
@@ -1,10 +1,10 @@
PRGNAM="nomacs"
-VERSION="2.4.2"
+VERSION="3.0.0"
HOMEPAGE="http://www.nomacs.org"
-DOWNLOAD="https://downloads.sf.net/nomacs/nomacs-2.4.2-source.tar.bz2"
-MD5SUM="b9deb73ac8c6e12064024bc4fb2aed03"
+DOWNLOAD="https://github.com/nomacs/nomacs/archive/3.0.0.tar.gz"
+MD5SUM="e9905b602eac3fcf736a4d6e71075733"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="opencv"
+REQUIRES="opencv qt5"
MAINTAINER="Matteo Bernardini"
EMAIL="ponce@slackbuilds.org"