Permalink
Browse files

digikam5: Added.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
  • Loading branch information...
1 parent 80b3fcb commit a042251c0dad6d2cf235936dbd06718b44c58f3c @willysr committed Jul 7, 2016
@@ -1,3 +1,8 @@
+Thu Jul 7 22:50:47 WIB 2016
+digikam5: Added
+ This is digiKam 5.0.0 release
+ You will need the whole framework5 packages and libkipi
++--------------------------+
Thu Jul 7 06:32:35 WIB 2016
libkipi: Added
This is needed to build digikam5's kipi plugin
@@ -18,6 +18,16 @@ SLACKBUILD MD5SUM: 609975a05d6050fcca88f312d3f35c6a
SLACKBUILD MD5SUM_x86_64:
SLACKBUILD SHORT DESCRIPTION: cnijfilter (IJ Printer Driver for Linux)
+SLACKBUILD NAME: digikam5
+SLACKBUILD LOCATION: ./digikam5
+SLACKBUILD FILES: README digikam-5.0.0.tar.xz digikam5.SlackBuild digikam5.info doinst.sh imgur.patch slack-desc
+SLACKBUILD VERSION: 5.0.0
+SLACKBUILD DOWNLOAD: http://download.kde.org/stable/digikam/digikam-5.0.0.tar.bz2
+SLACKBUILD DOWNLOAD_x86_64:
+SLACKBUILD MD5SUM: 1129b327099f9773854d8408b73d6be3
+SLACKBUILD MD5SUM_x86_64:
+SLACKBUILD SHORT DESCRIPTION: digiKam (KDE Photo Management Application)
+
SLACKBUILD NAME: dynalogin
SLACKBUILD LOCATION: ./dynalogin
SLACKBUILD FILES: README doinst.sh dynalogin.SlackBuild dynalogin.info slack-desc
Binary file not shown.
@@ -0,0 +1,13 @@
+digiKam is a simple digital photo management application for KDE,
+which makes importing and organizing digital photos a "snap". The
+photos can be organized in albums which can be sorted chronologically,
+by directory layout or by custom collections. An easy to use interface
+is provided that enables you to connect to your camera and preview,
+download and/or delete your images.
+
+enblend-enfuse, hugin, sqlite2, and libqtkoauth are optional dependencies.
+
+NOTE:
+- digikam now ships with its own internal version of kipi-plugins.
+- please remove previous version before building the current version.
+- digikam5 is NOT co-installable with digikam. Do not install both.
@@ -0,0 +1,122 @@
+#!/bin/sh
+
+# Slackware build script for digiKam5
+
+# Copyright 2016 Willy Sudiarto Raharjo
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=digikam5
+SRCNAM=digikam
+VERSION=${VERSION:-5.0.0}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+else
+ SLKCFLAGS="-O2"
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.xz
+cd $SRCNAM-$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 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+# Patch for OAuth 2.0 for imgur
+# https://bugs.kde.org/show_bug.cgi?id=360404
+cd extra/kipi-plugins/
+git apply -p1 < $CWD/imgur.patch
+cd ../../core
+
+# workaround for flex-2.6.0
+sed -e '/fno-tree-pre/d' -i CMakeLists.txt
+cd ..
+
+export QTDIR=/usr/lib${LIBDIRSUFFIX}/qt5
+export PATH=$QTDIR/bin:$PATH
+
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \
+ -DKDE_INSTALL_MANDIR=/usr/man \
+ -DKDE_INSTALL_SYSCONFDIR=/etc/kde \
+ -DKDE_INSTALL_QTPLUGINDIR=/usr/lib${LIBDIRSUFFIX}/qt5/plugins \
+ -DCMAKE_VERBOSE_MAKEFILE:BOOL="TRUE" \
+ -DDIGIKAMSC_COMPILE_DOC=OFF \
+ -DDIGIKAMSC_COMPILE_KIPIPLUGINS=ON \
+ -DCMAKE_CXX_FLAGS:STRING="$(/usr/bin/Magick++-config --libs)" \
+ -DENABLE_OPENCV3=ON \
+ -DCMAKE_C_COMPILER=clang \
+ -DCMAKE_BUILD_TYPE=Release ..
+ make
+ make install DESTDIR=$PKG
+cd ../build/extra
+ make
+ make install DESTDIR=$PKG
+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
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+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 COPYING* NEWS README $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
@@ -0,0 +1,10 @@
+PRGNAM="digikam5"
+VERSION="5.0.0"
+HOMEPAGE="http://www.digikam.org/"
+DOWNLOAD="http://download.kde.org/stable/digikam/digikam-5.0.0.tar.bz2"
+MD5SUM="1129b327099f9773854d8408b73d6be3"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="liblqr lensfun ffmpeg libpgf libkface framework5 libkipi"
+MAINTAINER="Willy Sudiarto Raharjo"
+EMAIL="willysr@slackbuilds.org"
@@ -0,0 +1,9 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications/kde4 >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
Oops, something went wrong.

0 comments on commit a042251

Please sign in to comment.