aboutsummaryrefslogtreecommitdiff
path: root/graphics/yagf/yagf.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/yagf/yagf.SlackBuild')
-rw-r--r--graphics/yagf/yagf.SlackBuild17
1 files changed, 7 insertions, 10 deletions
diff --git a/graphics/yagf/yagf.SlackBuild b/graphics/yagf/yagf.SlackBuild
index efe8cc088a4c9..88b41ea4da3f6 100644
--- a/graphics/yagf/yagf.SlackBuild
+++ b/graphics/yagf/yagf.SlackBuild
@@ -5,7 +5,7 @@
# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
PRGNAM=yagf
-VERSION=${VERSION:-0.8.4}
+VERSION=${VERSION:-0.8.9}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -41,9 +41,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION-Source
-tar xvf $CWD/$PRGNAM-$VERSION-Source.tar.gz
-cd $PRGNAM-$VERSION-Source
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -52,15 +52,12 @@ find . \
-exec chmod 644 {} \;
# Fix desktop menu item.
-sed -i 's|true|false|' YAGF.desktop
-
-# Make translations. Cmake doesn't handle them properly.
-lrelease src/*.ts
-mv src/*.qm .
+sed -i -e 's|true|false|' -e 's|OCR;|OCR;Graphics;Scanning;|' YAGF.desktop
+echo "" >> YAGF.desktop
mkdir -p build
cd build
- cmake \
+ cmake -G "Unix Makefiles" \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DLIB_PATH_SUFFIX="$LIBDIRSUFFIX" \
-DCPACK_BINARY_TGZ=ON \