summaryrefslogtreecommitdiffstats
path: root/graphics/digikam/digikam.SlackBuild
diff options
context:
space:
mode:
author Frank Caraballo <fecaraballo{at}gmail{dot}com>2011-05-07 15:04:35 -0500
committer Robby Workman <rworkman@slackbuilds.org>2011-05-16 22:15:20 -0500
commit907290a3793974f5ee4e83334a8dfd5212782693 (patch)
tree569a185b4277a6e5222cdafccd6e58845e3d9f8c /graphics/digikam/digikam.SlackBuild
parentf7e7b6d4a36dda0bdc7119b8e956d7bafe37c5b1 (diff)
downloadslackbuilds-907290a3793974f5ee4e83334a8dfd5212782693.tar.gz
slackbuilds-907290a3793974f5ee4e83334a8dfd5212782693.tar.xz
graphics/digikam: Updated for version 1.9.0.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'graphics/digikam/digikam.SlackBuild')
-rw-r--r--graphics/digikam/digikam.SlackBuild23
1 files changed, 10 insertions, 13 deletions
diff --git a/graphics/digikam/digikam.SlackBuild b/graphics/digikam/digikam.SlackBuild
index 4379542111..fae4f0aabc 100644
--- a/graphics/digikam/digikam.SlackBuild
+++ b/graphics/digikam/digikam.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for digiKam
-# Copyright 2007-2009 Frank Caraballo <fecaraballo{at}gmail{dot}com>
+# Copyright 2007-2011 Frank Caraballo <fecaraballo{at}gmail{dot}com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -21,19 +21,18 @@
# 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.
+
# Modified by Niklas 'Nille' Åkerström for slackware64 and to use cmake.
PRGNAM=digikam
-VERSION=${VERSION:-1.2.0}
+VERSION=${VERSION:-1.9.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -68,19 +67,17 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-KDEPREF=kde4-config
-
mkdir -p build
cd build
- cmake ..\
- -DCMAKE_C_FLAGS:STRING="${SLKCFLAGS}" \
- -DCMAKE_CXX_FLAGS:STRING="${SLKCFLAGS}" \
- -DCMAKE_INSTALL_PREFIX=$($KDEPREF --prefix) \
- -DLIB_SUFFIX=/usr/lib$($KDEPREF --libsuffix) \
+ 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"
-
make
make install DESTDIR=$PKG
cd ..
@@ -90,7 +87,7 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
find $PKG/usr/man -type f -exec gzip -9 {} \;
find $PKG -type d -depth -exec rmdir {} \; 2>/dev/null || true
-
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
AUTHORS ChangeLog COPYING* DESIGN HACKING INSTALL NEWS README tips TODO \