summaryrefslogtreecommitdiff
path: root/graphics/digikam/digikam.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/digikam/digikam.SlackBuild')
-rw-r--r--graphics/digikam/digikam.SlackBuild15
1 files changed, 7 insertions, 8 deletions
diff --git a/graphics/digikam/digikam.SlackBuild b/graphics/digikam/digikam.SlackBuild
index fae4f0aabc..de0373223f 100644
--- a/graphics/digikam/digikam.SlackBuild
+++ b/graphics/digikam/digikam.SlackBuild
@@ -23,9 +23,10 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Modified by Niklas 'Nille' Åkerström for slackware64 and to use cmake.
+# Updated by Willy Sudiarto Raharjo <willysr@slackware-id.org>
PRGNAM=digikam
-VERSION=${VERSION:-1.9.0}
+VERSION=${VERSION:-2.9.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,15 +70,15 @@ find . \
mkdir -p build
cd build
- cmake .. \
+ cmake \
-DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=$(kde4-config --libsuffix) \
-DMAN_INSTALL_DIR=/usr/man \
-DSYSCONF_INSTALL_DIR=/etc/kde \
- -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_VERBOSE_MAKEFILE:BOOL="TRUE"
+ -DCMAKE_VERBOSE_MAKEFILE:BOOL="TRUE" \
+ -DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG
cd ..
@@ -86,12 +87,10 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find $PKG/usr/man -type f -exec gzip -9 {} \;
-find $PKG -type d -depth -exec rmdir {} \; 2>/dev/null || true
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- AUTHORS ChangeLog COPYING* DESIGN HACKING INSTALL NEWS README tips TODO \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING* NEWS README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install