summaryrefslogtreecommitdiff
path: root/libraries/pidgin-mra
diff options
context:
space:
mode:
authorchinarulezzz <s.alex08@mail.ru>2011-12-17 23:27:34 -0600
committerRobby Workman <rworkman@slackbuilds.org>2011-12-17 23:27:34 -0600
commit9d2aeabb209ea6e3f7fe394fdc2b3d3810cd9b3b (patch)
treef7708a71ea09a176f89f0be828a79a3be0319de0 /libraries/pidgin-mra
parentd021f98fa8afcef151a34e65089704abfe8ced89 (diff)
downloadslackbuilds-9d2aeabb209ea6e3f7fe394fdc2b3d3810cd9b3b.tar.gz
libraries/pidgin-mra: Added (a Mail.ru plug-in for libpurple)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries/pidgin-mra')
-rw-r--r--libraries/pidgin-mra/README3
-rw-r--r--libraries/pidgin-mra/pidgin-mra.SlackBuild75
-rw-r--r--libraries/pidgin-mra/pidgin-mra.info10
-rw-r--r--libraries/pidgin-mra/slack-desc19
-rw-r--r--libraries/pidgin-mra/use_our_cflags.diff20
5 files changed, 127 insertions, 0 deletions
diff --git a/libraries/pidgin-mra/README b/libraries/pidgin-mra/README
new file mode 100644
index 0000000000..b599d7b49a
--- /dev/null
+++ b/libraries/pidgin-mra/README
@@ -0,0 +1,3 @@
+pidgin-mra (a Mail.ru plug-in for libpurple)
+
+This is a Mail.ru Agent protocol plugin for Pidgin IM.
diff --git a/libraries/pidgin-mra/pidgin-mra.SlackBuild b/libraries/pidgin-mra/pidgin-mra.SlackBuild
new file mode 100644
index 0000000000..3267020745
--- /dev/null
+++ b/libraries/pidgin-mra/pidgin-mra.SlackBuild
@@ -0,0 +1,75 @@
+#!/bin/sh
+
+# Slackware build script for pidgin-mra
+
+# Written by chinarulezzz (s.alex08@mail.ru)
+
+PRGNAM=pidgin-mra
+VERSION=${VERSION:-0.1.4.2}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e # Exit on most errors
+
+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"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+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 {} \;
+
+patch -p1 < $CWD/use_our_cflags.diff
+
+make \
+ OPTS="$SLKCFLAGS" \
+ LIBDIR="/usr/lib${LIBDIRSUFFIX}" \
+ V=1
+make install \
+ LIBDIR="/usr/lib${LIBDIRSUFFIX}" \
+ 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
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING ChangeLog README TODO $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/libraries/pidgin-mra/pidgin-mra.info b/libraries/pidgin-mra/pidgin-mra.info
new file mode 100644
index 0000000000..c4bd802bba
--- /dev/null
+++ b/libraries/pidgin-mra/pidgin-mra.info
@@ -0,0 +1,10 @@
+PRGNAM="pidgin-mra"
+VERSION="0.1.4.2"
+HOMEPAGE="https://github.com/dreadatour/pidgin-mra/"
+DOWNLOAD="https://github.com/downloads/dreadatour/pidgin-mra/pidgin-mra-0.1.4.2.tar.gz"
+MD5SUM="ea352269d4c2d91a85d060b7ddd0e141"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="chinarulezzz"
+EMAIL="s.alex08@mail.ru"
+APPROVED="rworkman"
diff --git a/libraries/pidgin-mra/slack-desc b/libraries/pidgin-mra/slack-desc
new file mode 100644
index 0000000000..910ab5d8ff
--- /dev/null
+++ b/libraries/pidgin-mra/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------------------------------------------------------|
+pidgin-mra: pidgin-mra (a Mail.ru plug-in for libpurple)
+pidgin-mra:
+pidgin-mra: This is a Mail.ru Agent protocol plugin for Pidgin IM.
+pidgin-mra:
+pidgin-mra:
+pidgin-mra: Homepage: https://github.com/dreadatour/pidgin-mra/
+pidgin-mra:
+pidgin-mra:
+pidgin-mra:
+pidgin-mra:
+pidgin-mra:
diff --git a/libraries/pidgin-mra/use_our_cflags.diff b/libraries/pidgin-mra/use_our_cflags.diff
new file mode 100644
index 0000000000..352d52e24b
--- /dev/null
+++ b/libraries/pidgin-mra/use_our_cflags.diff
@@ -0,0 +1,20 @@
+diff -Nur pidgin-mra-0.1.4.2.orig/Makefile pidgin-mra-0.1.4.2/Makefile
+--- pidgin-mra-0.1.4.2.orig/Makefile 2011-05-18 16:28:37.000000000 -0500
++++ pidgin-mra-0.1.4.2/Makefile 2011-12-17 23:24:03.447852844 -0600
+@@ -1,6 +1,7 @@
+ LIBDIR ?= /usr/lib
+ DATADIR ?= /usr/share
+ LINUX_COMPILER = gcc
++OPTS = -O2
+
+ LIBPURPLE_CFLAGS = -I/usr/include/libpurple -DPURPLE_PLUGINS -DENABLE_NLS
+ GLIB_CFLAGS = $(shell pkg-config --cflags glib-2.0)
+@@ -50,7 +51,7 @@
+ rm -f libmra.so
+
+ libmra.so: ${MRA_SOURCES}
+- ${LINUX_COMPILER} ${LIBPURPLE_CFLAGS} -Wall -Wextra -pthread ${GLIB_CFLAGS} -I. -g3 -O2 -pipe ${MRA_SOURCES} -o libmra.so -shared -fPIC -DPIC
++ ${LINUX_COMPILER} ${LIBPURPLE_CFLAGS} -Wall -Wextra -pthread ${GLIB_CFLAGS} -I. -g3 ${OPTS} -pipe ${MRA_SOURCES} -o libmra.so -shared -fPIC -DPIC
+
+ release: libmra.so
+