summaryrefslogtreecommitdiff
path: root/graphics/nomacs/nomacs.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-04-08 15:57:37 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-04-10 06:19:28 +0700
commit21c92625195d270f4b6316f9eb89683d71c173e6 (patch)
treebd515980bf9146c64523d2b2459d2ea6c45407b9 /graphics/nomacs/nomacs.SlackBuild
parent89e17f84157d037a603244104f32bc22c2078b11 (diff)
downloadslackbuilds-21c92625195d270f4b6316f9eb89683d71c173e6.tar.gz
graphics/nomacs: Updated for version 3.0.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/nomacs/nomacs.SlackBuild')
-rw-r--r--graphics/nomacs/nomacs.SlackBuild21
1 files changed, 14 insertions, 7 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