summaryrefslogtreecommitdiff
path: root/graphics/nomacs/nomacs.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/nomacs/nomacs.SlackBuild')
-rw-r--r--graphics/nomacs/nomacs.SlackBuild12
1 files changed, 4 insertions, 8 deletions
diff --git a/graphics/nomacs/nomacs.SlackBuild b/graphics/nomacs/nomacs.SlackBuild
index 39c28600af..60e2384a2d 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.0.0}
+VERSION=${VERSION:-2.2.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -53,7 +53,7 @@ else
LIBDIRSUFFIX=""
fi
-DOCS="ImageLounge/Readme/COPYRIGHT ImageLounge/Readme/LICENSE* ImageLounge/Readme/README"
+DOCS="Readme/COPYRIGHT Readme/LICENSE* 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.tar.gz || tar xvf $CWD/$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION-source.tar.?z*
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -70,10 +70,8 @@ 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 || exit 1
+sed -i "s|share\/man|man|" cmake/UnixBuildTarget.cmake || exit 1
mkdir -p build
cd build
@@ -87,8 +85,6 @@ 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