diff options
author | Marian Marinov <mm@yuhu.biz> | 2019-03-29 15:30:23 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-03-29 15:31:37 +0700 |
commit | e1d92a290ce22ebf42916b1bd74c9aa053a224e5 (patch) | |
tree | f0a18f795b03429fa3499b4f14e3d997db62947b /network/purple-telegram | |
parent | 98d5eac39ffbb0edf8cdf5854b26207b6114aa29 (diff) |
network/purple-telegram: Added (Telegram plugin for libpurple).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/purple-telegram')
-rw-r--r-- | network/purple-telegram/README | 2 | ||||
-rw-r--r-- | network/purple-telegram/purple-telegram.SlackBuild | 89 | ||||
-rw-r--r-- | network/purple-telegram/purple-telegram.info | 10 | ||||
-rw-r--r-- | network/purple-telegram/slack-desc | 19 |
4 files changed, 120 insertions, 0 deletions
diff --git a/network/purple-telegram/README b/network/purple-telegram/README new file mode 100644 index 000000000000..cf3207caf565 --- /dev/null +++ b/network/purple-telegram/README @@ -0,0 +1,2 @@ +Telegram-purple is a Libpurple protocol plugin that adds support +for the Telegram messenger. diff --git a/network/purple-telegram/purple-telegram.SlackBuild b/network/purple-telegram/purple-telegram.SlackBuild new file mode 100644 index 000000000000..95fc44f9fb28 --- /dev/null +++ b/network/purple-telegram/purple-telegram.SlackBuild @@ -0,0 +1,89 @@ +#!/bin/sh + +# Slackware build script for purple-telegram + +# Copyright 2019 Marian Marinov +# 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=purple-telegram +VERSION=${VERSION:-1.4.1} +SRCNAM=${PRGNAM/*-/}-${PRGNAM/-*} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $SRCNAM +tar xf $CWD/telegram-purple_$VERSION.orig.tar.gz +cd $SRCNAM +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +./configure --prefix=/usr + +make +make install DESTDIR=$PKG + +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 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README.md HACKING.md AUTHORS CHANGELOG.md COPYING $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/purple-telegram/purple-telegram.info b/network/purple-telegram/purple-telegram.info new file mode 100644 index 000000000000..94bf3aa4674f --- /dev/null +++ b/network/purple-telegram/purple-telegram.info @@ -0,0 +1,10 @@ +PRGNAM="purple-telegram" +VERSION="1.4.1" +HOMEPAGE="https://github.com/majn/telegram-purple" +DOWNLOAD="https://github.com/majn/telegram-purple/releases/download/v1.4.1/telegram-purple_1.4.1.orig.tar.gz" +MD5SUM="b6e968643f1f5cb5af2f6315ac8aa513" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="libwebp" +MAINTAINER="Marian Marinov" +EMAIL="mm@yuhu.biz" diff --git a/network/purple-telegram/slack-desc b/network/purple-telegram/slack-desc new file mode 100644 index 000000000000..093680246a16 --- /dev/null +++ b/network/purple-telegram/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 ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +purple-telegram: purple-telegram (Telegram plugin for libpurple) +purple-telegram: +purple-telegram: Telegram-purple is a Libpurple protocol plugin that adds support for +purple-telegram: the Telegram messenger. +purple-telegram: +purple-telegram: Telegram messanger provides private, secure and powerful messaging +purple-telegram: platform. +purple-telegram: +purple-telegram: Homepage: https://telegram.org +purple-telegram: Homepage of the plugin: https://github.com/majn/telegram-purple +purple-telegram: |