summaryrefslogtreecommitdiff
path: root/libraries/cdk
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2013-10-26 17:12:47 -0500
committerRobby Workman <rworkman@slackbuilds.org>2013-10-27 23:38:55 -0500
commitdfd5bb595a3e8700e383abc95504d48b9d3aa6bd (patch)
tree27c7cbff299a187a07ca6804f1d98d2c02840c6d /libraries/cdk
parent4354641623028f7885caa8c22ba42415b9d2897d (diff)
downloadslackbuilds-dfd5bb595a3e8700e383abc95504d48b9d3aa6bd.tar.gz
libraries/cdk: Updated for version 5.0_20130901.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries/cdk')
-rw-r--r--libraries/cdk/cdk.SlackBuild35
-rw-r--r--libraries/cdk/cdk.info6
2 files changed, 32 insertions, 9 deletions
diff --git a/libraries/cdk/cdk.SlackBuild b/libraries/cdk/cdk.SlackBuild
index 16eb8cc445..3f11774fdb 100644
--- a/libraries/cdk/cdk.SlackBuild
+++ b/libraries/cdk/cdk.SlackBuild
@@ -2,10 +2,28 @@
# Slackware build script for cdk
-# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
+# Copyright 2010-2013 Larry Hajali <larryhaja[at]gmail[dot]com>
+# 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=cdk
-VERSION=${VERSION:-5.0_20120323}
+VERSION=${VERSION:-5.0_20130901}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -51,13 +69,14 @@ find . \
\( -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
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --localstatedir=/var \
--mandir=/usr/man \
--with-ncursesw \
--with-x \
@@ -74,8 +93,12 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
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 this file.
-chmod 0755 $PKG/usr/bin/cdk5-config $PKG/usr/lib${LIBDIRSUFFIX}/libcdkw.so.0.0.0
+# Fix permissions on the config and 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}
+
+# Remove some cruft
+rm -r $PKG/usr/lib${LIBDIRSUFFIX}/.libs/
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
diff --git a/libraries/cdk/cdk.info b/libraries/cdk/cdk.info
index 0195bae92a..20bb8fcf01 100644
--- a/libraries/cdk/cdk.info
+++ b/libraries/cdk/cdk.info
@@ -1,8 +1,8 @@
PRGNAM="cdk"
-VERSION="5.0_20120323"
+VERSION="5.0_20130901"
HOMEPAGE="http://invisible-island.net/cdk/"
-DOWNLOAD="ftp://invisible-island.net/cdk/cdk-5.0-20120323.tgz"
-MD5SUM="929969d06ce034e862976bb7d1a36b25"
+DOWNLOAD="ftp://invisible-island.net/cdk/cdk-5.0-20130901.tgz"
+MD5SUM="cbe42cd57c563b376504d48449c4f59d"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""