diff options
Diffstat (limited to 'libraries/cdk/cdk.SlackBuild')
-rw-r--r-- | libraries/cdk/cdk.SlackBuild | 35 |
1 files changed, 29 insertions, 6 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 |