summaryrefslogtreecommitdiff
path: root/graphics/digikam/digikam.SlackBuild
diff options
context:
space:
mode:
authorFrank Caraballo <fecaraballo{at}gmail{dot}com>2010-05-12 17:39:47 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-12 17:39:47 +0200
commit8c4a1e45ce6c785cb726a5bc9155488905842492 (patch)
tree0da87b6094a5e760227a8e3a5c4cc0b0635e8542 /graphics/digikam/digikam.SlackBuild
parenta4618ba2535506fb1f97790689cd9b7f8a86b2b4 (diff)
downloadslackbuilds-8c4a1e45ce6c785cb726a5bc9155488905842492.tar.gz
graphics/digikam: Updated for version 0.9.5
Diffstat (limited to 'graphics/digikam/digikam.SlackBuild')
-rw-r--r--graphics/digikam/digikam.SlackBuild29
1 files changed, 10 insertions, 19 deletions
diff --git a/graphics/digikam/digikam.SlackBuild b/graphics/digikam/digikam.SlackBuild
index 4f46f3f319..ae5ed2c22f 100644
--- a/graphics/digikam/digikam.SlackBuild
+++ b/graphics/digikam/digikam.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for digiKam
-# Copyright 2007-2008 Frank Caraballo <fecaraballo{at}gmail{dot}com>
+# Copyright 2007-2009 Frank Caraballo <fecaraballo{at}gmail{dot}com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=digikam
-VERSION=0.9.4
+VERSION=${VERSION:-0.9.5}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -33,8 +33,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-DOCS="AUTHORS ChangeLog COPYING HACKING INSTALL NEWS README RELEASE.rev TODO"
-
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
@@ -49,9 +47,8 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
cd $PRGNAM-$VERSION
-
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -68,11 +65,8 @@ CXXFLAGS="$SLKCFLAGS" \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=$KDEPREF/man \
- --program-prefix="" \
- --program-suffix="" \
- --disable-debug \
- --enable-shared=yes \
- --enable-static=no
+ --without-included-sqlite3 \
+ --build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
@@ -83,18 +77,15 @@ make install-strip DESTDIR=$PKG
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS ChangeLog COPYING HACKING INSTALL NEWS README RELEASE.rev TODO \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;
-( cd $PKG
-find . -type d -depth -exec rmdir {} \; 2>/dev/null
-find . -type f -size 0c -exec rm {} \; 2>/dev/null
-)
+find $PKG -type d -depth -exec rmdir {} \; 2>/dev/null
mkdir -p $PKG/install
-cat $CWD/doinst.sh > $PKG/install/doinst.sh
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz