aboutsummaryrefslogtreecommitdiff
path: root/libraries/cdk/cdk.SlackBuild
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2016-01-02 05:32:25 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-01-09 07:12:22 +0700
commitec933d054a342fd2c4dd70421172306e0b148cdc (patch)
tree15cad02180178c90b2b94911f65830539561a9b1 /libraries/cdk/cdk.SlackBuild
parent932c09d120503d9cd4c256fc9d6df54c6035163a (diff)
libraries/cdk: Updated for version 5.0_20150928.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/cdk/cdk.SlackBuild')
-rw-r--r--libraries/cdk/cdk.SlackBuild24
1 files changed, 11 insertions, 13 deletions
diff --git a/libraries/cdk/cdk.SlackBuild b/libraries/cdk/cdk.SlackBuild
index 5deb6aa4bd38b..81b7e960e8a16 100644
--- a/libraries/cdk/cdk.SlackBuild
+++ b/libraries/cdk/cdk.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for cdk
-# Copyright 2010-2013 Larry Hajali <larryhaja[at]gmail[dot]com>
+# Copyright 2010-2016 Larry Hajali <larryhaja[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=cdk
-VERSION=${VERSION:-5.0_20140118}
+VERSION=${VERSION:-5.0_20150928}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -64,13 +64,10 @@ tar xvf $CWD/$PRGNAM-${VERSION/_/-}.tgz
cd $PRGNAM-${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 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
-
-# Fix cdk-config.in lib directory.
-sed -i "s|/lib\>|/lib${LIBDIRSUFFIX}|" cdk-config.in
+ \( -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 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -81,22 +78,23 @@ CXXFLAGS="$SLKCFLAGS" \
--with-ncursesw \
--with-x \
--with-Xaw3d \
+ --with-Xaw3dxft \
--with-libtool \
- --disable-rpath-hack \
+ --with-shared \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG DOCUMENT_DIR=$PKG/usr/doc/$PRGNAM-$VERSION
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+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
-# Fix permissions on the config and dynamic library files.
+# Fix permissions on the dynamic library files.
ABI_VERSION=$($PKG/usr/bin/${PRGNAM}5-config --abi-version)
-chmod 0755 $PKG/usr/bin/cdk5-config $PKG/usr/lib${LIBDIRSUFFIX}/libcdkw.so.${ABI_VERSION}
+chmod 0755 $PKG/usr/lib${LIBDIRSUFFIX}/libcdkw.so.${ABI_VERSION}
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild