aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Hanson <erik@slackbuilds.org>2014-01-01 09:29:25 +0700
committerErik Hanson <erik@slackbuilds.org>2014-01-07 11:13:59 -0600
commitf957b736c2a355e5626f3b756d2302d35cd5b1fe (patch)
tree2954fa2da6dcb6ca690fc47863c51595969fdabb
parent4ffc3b91a594a6848a893560a559346fbd9d3c89 (diff)
libraries/libircclient: Updated for version 1.7.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--libraries/libircclient/libircclient-1.6-rfc.patch11
-rw-r--r--libraries/libircclient/libircclient.SlackBuild24
-rw-r--r--libraries/libircclient/libircclient.info6
3 files changed, 29 insertions, 12 deletions
diff --git a/libraries/libircclient/libircclient-1.6-rfc.patch b/libraries/libircclient/libircclient-1.6-rfc.patch
new file mode 100644
index 0000000000000..3bd6022bc9b1e
--- /dev/null
+++ b/libraries/libircclient/libircclient-1.6-rfc.patch
@@ -0,0 +1,11 @@
+diff -up libircclient-1.6/include/libircclient.h.orig libircclient-1.6/include/libircclient.h
+--- libircclient-1.6/include/libircclient.h.orig 2012-04-28 17:28:29.352267217 -0300
++++ libircclient-1.6/include/libircclient.h 2012-04-28 17:28:50.662268034 -0300
+@@ -131,6 +131,7 @@ typedef void (*irc_dcc_callback_t) (irc_
+ #include "libirc_errors.h"
+ #include "libirc_events.h"
+ #include "libirc_options.h"
++#include "libirc_rfcnumeric.h"
+ #undef IN_INCLUDE_LIBIRC_H
+
+
diff --git a/libraries/libircclient/libircclient.SlackBuild b/libraries/libircclient/libircclient.SlackBuild
index 4ec102d2f55fb..de9e5d15884ec 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
diff --git a/libraries/libircclient/libircclient.info b/libraries/libircclient/libircclient.info
index 6ac9c1d5040ab..843f084e42c66 100644
--- a/libraries/libircclient/libircclient.info
+++ b/libraries/libircclient/libircclient.info
@@ -1,8 +1,8 @@
PRGNAM="libircclient"
-VERSION="1.3"
+VERSION="1.7"
HOMEPAGE="http://libircclient.sourceforge.net/"
-DOWNLOAD="http://downloads.sourceforge.net/libircclient/libircclient-1.3.tar.gz"
-MD5SUM="b0e80d1d6b0c1cc61660fb9d2350b32d"
+DOWNLOAD="http://downloads.sourceforge.net/libircclient/libircclient-1.7.tar.gz"
+MD5SUM="968370276f7cf21302f504f9bce1fc99"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""