diff options
Diffstat (limited to 'network/irssi_otr')
-rw-r--r-- | network/irssi_otr/README | 5 | ||||
-rw-r--r-- | network/irssi_otr/irssi_otr.SlackBuild | 62 | ||||
-rw-r--r-- | network/irssi_otr/irssi_otr.info | 10 | ||||
-rw-r--r-- | network/irssi_otr/slack-desc | 19 |
4 files changed, 96 insertions, 0 deletions
diff --git a/network/irssi_otr/README b/network/irssi_otr/README new file mode 100644 index 0000000000..9e546d1ec0 --- /dev/null +++ b/network/irssi_otr/README @@ -0,0 +1,5 @@ +irssi-otr (Off-the-Record Messaging (OTR) for the irssi IRC client) +To use OTR within irssi, install this package, then "/load libotr" +and "/otr help" for usage instructions. + +This requires libotr. diff --git a/network/irssi_otr/irssi_otr.SlackBuild b/network/irssi_otr/irssi_otr.SlackBuild new file mode 100644 index 0000000000..37b0a7db5f --- /dev/null +++ b/network/irssi_otr/irssi_otr.SlackBuild @@ -0,0 +1,62 @@ +#!/bin/sh + +# Slackware build script for irssi_otr + +# Written by B. Watson (yalhcru@gmail.com) + +PRGNAM=irssi_otr +VERSION=${VERSION:-0.3} +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX=64 +fi + +TARNAM=$( echo $PRGNAM | sed 's/_/-/g' ) +LIBNAM="libotr.so" +PKGLIBDIR=$PKG/usr/lib$LIBDIRSUFFIX/irssi/modules + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $TARNAM-$VERSION +tar xvf $CWD/$TARNAM-$VERSION.tar.gz +cd $TARNAM-$VERSION +chown -R root:root . +chmod -R a-s,u+w,go+r-w . + +cmake -D CMAKE_C_FLAGS_RELEASE:STRING="-O2 -fPIC" \ + -D CMAKE_BUILD_TYPE:STRING="release" \ + . +make + +# Easier to manually install than to coerce cmake's install +# target into using LIBDIRSUFFIX +mkdir -p $PKGLIBDIR +install -s -o root -g root -m 0755 $LIBNAM $PKGLIBDIR + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp LICENSE README ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/network/irssi_otr/irssi_otr.info b/network/irssi_otr/irssi_otr.info new file mode 100644 index 0000000000..0dabadc6b5 --- /dev/null +++ b/network/irssi_otr/irssi_otr.info @@ -0,0 +1,10 @@ +PRGNAM="irssi_otr" +VERSION="0.3" +HOMEPAGE="http://irssi-otr.tuxfamily.org/" +DOWNLOAD="ftp://download.tuxfamily.org/irssiotr/irssi-otr-0.3.tar.gz" +MD5SUM="e3d46a31955470dd3fa0f6392c1dcfb4" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" +APPROVED="rworkman" diff --git a/network/irssi_otr/slack-desc b/network/irssi_otr/slack-desc new file mode 100644 index 0000000000..8ddeda27ce --- /dev/null +++ b/network/irssi_otr/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +irssi_otr: irssi-otr (OTR plugin for irssi) +irssi_otr: +irssi_otr: Off-the-Record Messaging (OTR) plugin for the irssi IRC client +irssi_otr: +irssi_otr: +irssi_otr: +irssi_otr: +irssi_otr: +irssi_otr: +irssi_otr: +irssi_otr: |