mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
network/irssi_otr: Added to 13.0 repository
This commit is contained in:
parent
b916111bf0
commit
a927321ae8
4 changed files with 96 additions and 0 deletions
5
network/irssi_otr/README
Normal file
5
network/irssi_otr/README
Normal file
|
@ -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.
|
62
network/irssi_otr/irssi_otr.SlackBuild
Normal file
62
network/irssi_otr/irssi_otr.SlackBuild
Normal file
|
@ -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}
|
10
network/irssi_otr/irssi_otr.info
Normal file
10
network/irssi_otr/irssi_otr.info
Normal file
|
@ -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"
|
19
network/irssi_otr/slack-desc
Normal file
19
network/irssi_otr/slack-desc
Normal file
|
@ -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:
|
Loading…
Reference in a new issue