diff options
Diffstat (limited to 'libraries/libircclient/libircclient.SlackBuild')
-rw-r--r-- | libraries/libircclient/libircclient.SlackBuild | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/libraries/libircclient/libircclient.SlackBuild b/libraries/libircclient/libircclient.SlackBuild index 4ec102d2f5..de9e5d1588 100644 --- a/libraries/libircclient/libircclient.SlackBuild +++ b/libraries/libircclient/libircclient.SlackBuild @@ -2,7 +2,7 @@ # # Slackware build script for libircclient # -# Copyright 2011 Erik W. Hanson, Minneapolis, MN, USA +# Copyright 2011-2013 Erik W. Hanson, Minneapolis, MN, USA # 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=libircclient -VERSION=${VERSION:-1.3} +VERSION=${VERSION:-1.7} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -69,25 +69,31 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# Add rfc include to main header to avoid build failures of packages using it +# example: error: 'LIBIRC_RFC_RPL_ENDOFNAMES' was not declared in this scope +patch -p1 < $CWD/libircclient-1.6-rfc.patch + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ + --enable-shared \ + --enable-ipv6 \ + --enable-openssl \ --build=$ARCH-slackware-linux make +make install DESTDIR=$PKG -mkdir -p $PKG/usr/include/libircclient -cp include/libirc*h $PKG/usr/include/libircclient -install -Dm 0644 src/libircclient.a $PKG/usr/lib${LIBDIRSUFFIX}/libircclient.a +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 -cp -r doc/man $PKG/usr/man -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 +mkdir -p $PKG/usr/man/man1 +gzip -9c man/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a Changelog LICENSE README THANKS doc/rfc1459.txt doc/html \ +cp -a Changelog LICENSE README THANKS \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |