aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2014-07-06 09:57:13 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-08-03 16:34:19 +0700
commitd5d05435098d802f6a38535b5e1d3126534b8873 (patch)
tree925bd7fed136e60df6cd1eefa526fe62fa451433
parent07df2ba82ba941541c67debbe4503ccc43250d7e (diff)
graphics/nomacs: Updated for version 2.0.0.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r--graphics/nomacs/nomacs.SlackBuild12
-rw-r--r--graphics/nomacs/nomacs.info6
2 files changed, 11 insertions, 7 deletions
diff --git a/graphics/nomacs/nomacs.SlackBuild b/graphics/nomacs/nomacs.SlackBuild
index fa87ea090a1d0..39c28600afda4 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:-1.6.0}
+VERSION=${VERSION:-2.0.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -53,7 +53,7 @@ else
LIBDIRSUFFIX=""
fi
-DOCS="Readme/COPYRIGHT Readme/LICENSE* Readme/README"
+DOCS="ImageLounge/Readme/COPYRIGHT ImageLounge/Readme/LICENSE* ImageLounge/Readme/README"
set -e
@@ -61,7 +61,7 @@ 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 . \
@@ -70,8 +70,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+cd ImageLounge
+
# Fix man pages installation path
-sed -i "s|share\/man|man|" CMakeLists.txt
+sed -i "s|share\/man|man|" CMakeLists.txt || exit 1
mkdir -p build
cd build
@@ -85,6 +87,8 @@ cd build
make install DESTDIR=$PKG
cd ..
+cd ..
+
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
diff --git a/graphics/nomacs/nomacs.info b/graphics/nomacs/nomacs.info
index 6af0d5fa4a7b5..53b7a6dbb6d13 100644
--- a/graphics/nomacs/nomacs.info
+++ b/graphics/nomacs/nomacs.info
@@ -1,8 +1,8 @@
PRGNAM="nomacs"
-VERSION="1.6.0"
+VERSION="2.0.0"
HOMEPAGE="http://www.nomacs.org"
-DOWNLOAD="http://downloads.sourceforge.net/nomacs/nomacs-1.6.0-source.tar.bz2"
-MD5SUM="61cabef5638a4a2dabd0865df07e4b07"
+DOWNLOAD="https://github.com/nomacs/nomacs/archive/2.0.0.tar.gz"
+MD5SUM="89884e8eb38b8b8362ca4d97f713c60c"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="LibRaw opencv"