summaryrefslogtreecommitdiff
path: root/network/bitlbee/bitlbee.SlackBuild
diff options
context:
space:
mode:
authorMichiel van Wessem <michiel@slackbuilds.org>2010-10-24 23:37:58 -0400
committerErik Hanson <erik@slackbuilds.org>2010-10-25 07:55:12 -0500
commit9eb862e3e7643a70ffae0bf692355da29a5fbbc8 (patch)
tree493be4268eebedd3754dc4385b1d5b3b5ea34f21 /network/bitlbee/bitlbee.SlackBuild
parente1b729bea7fda46a4108526b9e451db49a40c016 (diff)
downloadslackbuilds-9eb862e3e7643a70ffae0bf692355da29a5fbbc8.tar.gz
network/bitlbee: Updated for version 3.0.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'network/bitlbee/bitlbee.SlackBuild')
-rw-r--r--network/bitlbee/bitlbee.SlackBuild25
1 files changed, 17 insertions, 8 deletions
diff --git a/network/bitlbee/bitlbee.SlackBuild b/network/bitlbee/bitlbee.SlackBuild
index 61e6f28f78..48d23d4b41 100644
--- a/network/bitlbee/bitlbee.SlackBuild
+++ b/network/bitlbee/bitlbee.SlackBuild
@@ -25,7 +25,7 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=bitlbee
-VERSION=${VERSION:-1.2.8}
+VERSION=${VERSION:-3.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -33,7 +33,6 @@ if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -59,6 +58,13 @@ fi
set -e
+OTR=${OTR:-no}
+if [ "$OTR" = "yes" ]; then
+ USEOTR=1
+else
+ USEOTR=0
+fi
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
@@ -80,6 +86,7 @@ CXXFLAGS="$SLKCFLAGS" \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--config=/var/lib/$PRGNAM \
--etcdir=/etc/$PRGNAM \
+ --datadir=/usr/doc/$PRGNAM-$VERSION \
--mandir=/usr/man \
--msn=1 \
--jabber=1 \
@@ -88,9 +95,10 @@ CXXFLAGS="$SLKCFLAGS" \
--twitter=1 \
--ipv6=1 \
--plugins=1 \
+ --debug=0 \
--events=${EVENTS:-glib} \
--ssl=${CRYPT:-gnutls} \
- --debug=0 \
+ --otr=${USEOTR} \
--build=$ARCH-slackware-linux \
if [ -e Makefile.settings ]; then
@@ -98,7 +106,7 @@ if [ -e Makefile.settings ]; then
fi
make all
-make install install-etc install-doc DESTDIR=$PKG
+make install install-etc install-doc install-plugins DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@@ -107,10 +115,11 @@ 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/doc/$PRGNAM-$VERSION $PKG/var/lib/$PRGNAM
-cp -a COPYING doc/AUTHORS doc/CHANGES doc/CREDITS doc/FAQ doc/INSTALL \
-doc/README doc/bitlbee.xinetd doc/user-guide/user-guide.html \
-doc/user-guide/user-guide.txt doc/user-guide/help.txt \
-$PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ COPYING doc/AUTHORS doc/CHANGES doc/CREDITS doc/FAQ doc/INSTALL \
+ doc/README doc/bitlbee.schema doc/bitlbee.xinetd doc/comic_3.0.png \
+ doc/example_plugin.c doc/user-guide/user-guide.txt \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# Rewrite the documentation to replace /usr/local/ with /usr