aboutsummaryrefslogtreecommitdiff
path: root/misc/krename/krename.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@liwjatan.at>2010-05-13 00:34:23 +0200
committerErik Hanson <erik@slackbuilds.org>2010-05-13 00:34:23 +0200
commit7d23ee9853fd2acbee9dece5e3d6f01f9539737e (patch)
tree4508c054b89e5e198b3a5425a6334c2d765db892 /misc/krename/krename.SlackBuild
parent43b676f27c3e5ee16cdd8f2e2a32cdd9a1eedf61 (diff)
misc/krename: Updated for version 4.0.3
Diffstat (limited to 'misc/krename/krename.SlackBuild')
-rw-r--r--misc/krename/krename.SlackBuild29
1 files changed, 17 insertions, 12 deletions
diff --git a/misc/krename/krename.SlackBuild b/misc/krename/krename.SlackBuild
index a9b06bde5a2be..2b1b201a5c397 100644
--- a/misc/krename/krename.SlackBuild
+++ b/misc/krename/krename.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for krename
-# Copyright 2008 Heinz Wiesinger <hmwiesinger@gmx.at>
+# Copyright 2008-2010 Heinz Wiesinger, Amsterdam, The Netherlands
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
# Modified by the slackbuilds.org project.
PRGNAM=krename
-VERSION=3.0.14
+VERSION=4.0.3
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -37,8 +37,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e
@@ -52,20 +57,20 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-KDEPREF=$(kde-config --prefix) || true
+KDEPREF=$(kde4-config --prefix) || true
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=$KDEPREF \
- --sysconfdir=/etc/kde \
- --localstatedir=/var
+cmake \
+ -DCMAKE_C_FLAGS="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX="$KDEPREF" \
+ -DLIB_SUFFIX="$LIBDIRSUFFIX" \
+ .
make
-make install-strip DESTDIR=$PKG
+make install DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS ChangeLog COPYING INSTALL README TODO \
+cp -a AUTHORS COPYING INSTALL README TODO \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
@@ -74,4 +79,4 @@ 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.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}