aboutsummaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorIskar Enev <iskar.enev@gmail.com>2010-05-11 15:01:32 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 15:01:32 +0200
commit456d07a8a92408f81fba2603c976897cc62f8ba5 (patch)
tree64760d426eb2cd5d0d052b9218a1332115b499ae /network
parentbc2d527dea8c5e0e5becc3fc1434c135ce9a4cd3 (diff)
network/nicotine-plus: Initial import
Diffstat (limited to 'network')
-rw-r--r--network/nicotine-plus/README16
-rw-r--r--network/nicotine-plus/doinst.sh4
-rw-r--r--network/nicotine-plus/nicotine-plus.SlackBuild78
-rw-r--r--network/nicotine-plus/nicotine-plus.info8
-rw-r--r--network/nicotine-plus/slack-desc19
5 files changed, 125 insertions, 0 deletions
diff --git a/network/nicotine-plus/README b/network/nicotine-plus/README
new file mode 100644
index 0000000000000..e6f1cc8cc6b03
--- /dev/null
+++ b/network/nicotine-plus/README
@@ -0,0 +1,16 @@
+Nicotine+ is a client for the SoulSeek filesharing network. It was "forked"
+from Nicotine, Hyriand's Soulseek client, which in turn was forked from the
+PySoulSeek project by Alexander Kanavin.
+
+Required:
+* pygtk-2.6 or newer (may work with older version, but is *UNTESTED*),
+ which is available at SlackBuilds.org (pygtk will require pygobject
+ and pycairo, both of which are also available from SlackBuilds.org).
+
+Optional (not available at SlackBuilds.org, but submissions are welcome):
+* PyOGG and PyVorbis (OGG metadata support for your shares)
+ http://ekyo.nerim.net/software/pyogg/
+* GeoIP python bindings (Country lookup) http://www.maxmind.com/app/python
+* Psyco (speeds up Python code) http://psyco.sourceforge.net/
+* ogg123 or soX (1.2.5 and up, sound notification feature) http://sox.sf.net/
+
diff --git a/network/nicotine-plus/doinst.sh b/network/nicotine-plus/doinst.sh
new file mode 100644
index 0000000000000..f3640758961a9
--- /dev/null
+++ b/network/nicotine-plus/doinst.sh
@@ -0,0 +1,4 @@
+if [ -x usr/bin/update-desktop-database ]; then
+ usr/bin/update-desktop-database -q usr/share/applications
+fi
+
diff --git a/network/nicotine-plus/nicotine-plus.SlackBuild b/network/nicotine-plus/nicotine-plus.SlackBuild
new file mode 100644
index 0000000000000..9169d9b73cada
--- /dev/null
+++ b/network/nicotine-plus/nicotine-plus.SlackBuild
@@ -0,0 +1,78 @@
+#!/bin/sh
+
+# Slackware build script for nicotine+
+# Written by Iskar Enev (iskar.enev@gmail.com)
+
+# Modified by the SlackBuilds.org project
+
+PRGNAM=nicotine+
+NAME=nicotine
+VERSION=1.2.8
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+# Change to NO if you don't want the trayicon shared object to be built
+# - or call the build script with TRAYICON=NO ./nicotine-plus.SlackBuild
+TRAYICON=${TRAYICON:-YES}
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP || exit 1
+rm -rf $PRGNAM-$VERSION
+tar -xjvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1
+cd $PRGNAM-$VERSION || exit 1
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+# Tray icon has to be compiled first
+if [ "$TRAYICON" = "YES" ]; then
+ ( cd trayicon
+ ./autogen.py || exit 1
+ make || exit 1
+ make install DESTDIR=$PKG || exit 1
+ ) || exit 1
+fi
+
+python setup.py bdist || exit 1
+
+tar xzvf dist/$NAME-$VERSION.linux-i686.tar.gz -C $PKG || exit 1
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+)
+
+mv $PKG/usr/share/man $PKG/usr
+( cd $PKG/usr/man
+ find . -type f -exec gzip -9 {} \;
+ for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
+)
+
+# Fix icon path in desktop file so that it will show in kde
+# Also, we'll use the larger icon to ensure proper scaling
+sed -i 's%Icon=nicotine-plus-32px.png%Icon=/usr/share/pixmaps/nicotine/nicotine-plus-96px.png%' \
+ $PKG/usr/share/applications/nicotine.desktop || exit 1
+
+# Let's put these icons and such in a subdirectory of their own instead of
+# spamming /usr/share/pixmaps with all sorts of stuff
+rm $PKG/usr/share/pixmaps/*
+mkdir -p $PKG/usr/share/pixmaps/nicotine
+cp -a files/*.png img/*.png img/*.ico img/*.xcf img/README \
+ $PKG/usr/share/pixmaps/nicotine
+
+mkdir -p $PKG/usr/doc
+cp -a COPYING MANIFEST PKG-INFO $PKG/usr/share/$NAME/documentation
+mv $PKG/usr/share/$NAME/documentation $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/nicotine-plus.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/nicotine-plus.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/network/nicotine-plus/nicotine-plus.info b/network/nicotine-plus/nicotine-plus.info
new file mode 100644
index 0000000000000..4a5e02ea3b437
--- /dev/null
+++ b/network/nicotine-plus/nicotine-plus.info
@@ -0,0 +1,8 @@
+PRGNAM="nicotine-plus"
+VERSION="1.2.8"
+HOMEPAGE="http://nicotine-plus.sourceforge.net/"
+DOWNLOAD="http://dl.sourceforge.net/nicotine-plus/nicotine+-1.2.8.tar.bz2"
+MD5SUM="f839436968fc6c07fe0cb5c1d045fe62"
+MAINTAINER="Iskar Enev"
+EMAIL="iskar.enev@gmail.com"
+APPROVED="rworkman"
diff --git a/network/nicotine-plus/slack-desc b/network/nicotine-plus/slack-desc
new file mode 100644
index 0000000000000..1c54c7f3f2185
--- /dev/null
+++ b/network/nicotine-plus/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---------------------------------------------------------|
+nicotine+: Nicotine+
+nicotine+:
+nicotine+: Nicotine+ is a SoulSeek client written in Python, based on the
+nicotine+: PySoulSeek project by Alexander Kanavin. It features, among other
+nicotine+: things, a completely rewritten graphical user interface which
+nicotine+: uses the PyGTK-2 toolkit and a less strict user request policy.
+nicotine+: Nicotine-Plus is a fork of Hyriand's original Nicotine Soulseek client.
+nicotine+:
+nicotine+: NOTE: these code changes are NOT sanctioned by Hyriand, so if this
+nicotine+: messes you up, don't bug him.
+nicotine+: