mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
network/nicotine+: Added to 13.0 repository
This commit is contained in:
parent
d1a638beb8
commit
17e75bcf54
5 changed files with 121 additions and 0 deletions
11
network/nicotine+/README
Normal file
11
network/nicotine+/README
Normal file
|
@ -0,0 +1,11 @@
|
|||
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.
|
||||
|
||||
Optional (available at SlackBuilds.org):
|
||||
* GeoIP python bindings (Country lookup)
|
||||
* Mutagen
|
||||
* Psyco (speeds up Python code, but doesn't work on x86_64)
|
||||
|
||||
Optional (not available at SlackBuilds.org, but submissions are welcome):
|
||||
* PyOGG http://ekyo.nerim.net/software/pyogg/
|
4
network/nicotine+/doinst.sh
Normal file
4
network/nicotine+/doinst.sh
Normal file
|
@ -0,0 +1,4 @@
|
|||
if [ -x /usr/bin/update-desktop-database ]; then
|
||||
/usr/bin/update-desktop-database -q usr/share/applications
|
||||
fi
|
||||
|
77
network/nicotine+/nicotine+.SlackBuild
Normal file
77
network/nicotine+/nicotine+.SlackBuild
Normal file
|
@ -0,0 +1,77 @@
|
|||
#!/bin/sh
|
||||
# Slackware build script for nicotine+
|
||||
# Written by Iskar Enev <iskar.enev[@]gmail.com>
|
||||
# Modified by the SlackBuilds.org project
|
||||
|
||||
PRGNAM=nicotine+
|
||||
VERSION=1.2.14
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar -xjvf $CWD/$PRGNAM-$VERSION.tar.bz2
|
||||
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 {} \;
|
||||
|
||||
python setup.py build
|
||||
python setup.py install --root $PKG
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
|
||||
xargs strip --strip-unneeded 2> /dev/null || true
|
||||
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
|
||||
)
|
||||
|
||||
( cd $PKG/usr/bin
|
||||
ln -s nicotine.py nicotine
|
||||
)
|
||||
|
||||
# Contains duplicates from site-package so removing it
|
||||
rm -rf $PKG/usr/pynicotine
|
||||
|
||||
# Let's use the larger icon to ensure proper scaling
|
||||
sed -i 's%Icon=nicotine-plus-32px.png%Icon=nicotine-plus-96px.png%' \
|
||||
$PKG/usr/share/applications/nicotine.desktop
|
||||
|
||||
# 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
|
||||
cp -a $PKG/usr/share/pixmaps/nicotine/nicotine-plus-96px.png $PKG/usr/share/pixmaps
|
||||
|
||||
mkdir -p $PKG/usr/doc
|
||||
cp -a COPYING MANIFEST PKG-INFO $PKG/usr/share/nicotine/documentation
|
||||
mv $PKG/usr/share/nicotine/documentation $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.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.${PKGTYPE:-tgz}
|
10
network/nicotine+/nicotine+.info
Normal file
10
network/nicotine+/nicotine+.info
Normal file
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="nicotine+"
|
||||
VERSION="1.2.14"
|
||||
HOMEPAGE="http://nicotine-plus.org/"
|
||||
DOWNLOAD="http://129.125.101.92/nicotine+/nicotine+-1.2.14.tar.bz2"
|
||||
MD5SUM="c43dfbd8e759d0228fa9d1e0525cf993"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Iskar Enev"
|
||||
EMAIL="<iskar.enev[@]gmail.com>"
|
||||
APPROVED="Erik Hanson"
|
19
network/nicotine+/slack-desc
Normal file
19
network/nicotine+/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---------------------------------------------------------|
|
||||
nicotine+: Nicotine+ (SoulSeek client written in Python)
|
||||
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+:
|
Loading…
Reference in a new issue