diff options
Diffstat (limited to 'network/twinkle')
-rw-r--r-- | network/twinkle/README | 11 | ||||
-rw-r--r-- | network/twinkle/slack-desc | 19 | ||||
-rw-r--r-- | network/twinkle/twinkle.SlackBuild | 87 | ||||
-rw-r--r-- | network/twinkle/twinkle.info | 8 |
4 files changed, 125 insertions, 0 deletions
diff --git a/network/twinkle/README b/network/twinkle/README new file mode 100644 index 0000000000..dcd281f291 --- /dev/null +++ b/network/twinkle/README @@ -0,0 +1,11 @@ +Twinkle is a softphone for your voice over IP and instant messaging +communcations using the SIP protocol. You can use it for direct IP +phone to IP phone communication or in a network using a SIP proxy +to route your calls and messages. + +Twinkle is available for Linux only, and is licensed under the GPL. + +Twinkle requires commoncpp2, ccrtp, libsndfile and boost, all +available at SlackBuilds.org. +Optionally, Twinkle also uses libzrtpcpp, speex and ilbc, available +on SlackBuilds too. diff --git a/network/twinkle/slack-desc b/network/twinkle/slack-desc new file mode 100644 index 0000000000..ee1731f1f4 --- /dev/null +++ b/network/twinkle/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------------------------------------------------------| +twinkle: Twinkle (softphone for voice over IP) +twinkle: +twinkle: Twinkle is a softphone for your voice over IP and instant messaging +twinkle: communcations using the SIP protocol. You can use it for direct IP +twinkle: phone to IP phone communication or in a network using a SIP proxy +twinkle: to route your calls and messages. +twinkle: +twinkle: Twinkle is available for Linux only, and is licensed under the GPL. +twinkle: +twinkle: Homepage: http://www.xs4all.nl/~mfnboer/twinkle/ +twinkle: diff --git a/network/twinkle/twinkle.SlackBuild b/network/twinkle/twinkle.SlackBuild new file mode 100644 index 0000000000..70f6ab5d76 --- /dev/null +++ b/network/twinkle/twinkle.SlackBuild @@ -0,0 +1,87 @@ +#!/bin/sh + +# Slackware build script for twinkle + +# Copyright 2008 Mauro Giachero (mauro dot giachero at gmail dot com) +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=twinkle +VERSION=${VERSION:-1.4.2} +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" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var + +make +make install DESTDIR=$PKG + +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null || true +) + +# Install .desktop file +mkdir -p $PKG/usr/share/applications +cat $PRGNAM.desktop >$PKG/usr/share/applications/$PRGNAM.desktop + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS ChangeLog COPYING INSTALL NEWS README THANKS \ + $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.tgz diff --git a/network/twinkle/twinkle.info b/network/twinkle/twinkle.info new file mode 100644 index 0000000000..28dae87257 --- /dev/null +++ b/network/twinkle/twinkle.info @@ -0,0 +1,8 @@ +PRGNAM="twinkle" +VERSION="1.4.2" +HOMEPAGE="http://www.xs4all.nl/~mfnboer/twinkle/" +DOWNLOAD="http://www.xs4all.nl/~mfnboer/twinkle/download/twinkle-1.4.2.tar.gz" +MD5SUM="d70c8972f296ffd998c7fb698774705b" +MAINTAINER="Mauro Giachero" +EMAIL="mauro dot giachero at gmail dot com" +APPROVED="dsomero" |