summaryrefslogtreecommitdiff
path: root/pcr/nicotine/PKGBUILD
diff options
context:
space:
mode:
authorMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-05-21 04:24:04 -0300
committerMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-05-21 04:24:04 -0300
commit7e10d47cf04f9a5b3fe819dbbfc9fff8036f04ac (patch)
tree2b51169609d399534f6041adb9fc634dfc00d841 /pcr/nicotine/PKGBUILD
parente777f99123e62a5547bb816e09a460a065c71755 (diff)
parent89c0af8305046890734eba2969c9b057e0a6bf9a (diff)
downloadabslibre-7e10d47cf04f9a5b3fe819dbbfc9fff8036f04ac.tar.gz
abslibre-7e10d47cf04f9a5b3fe819dbbfc9fff8036f04ac.tar.bz2
abslibre-7e10d47cf04f9a5b3fe819dbbfc9fff8036f04ac.zip
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/nicotine/PKGBUILD')
-rw-r--r--pcr/nicotine/PKGBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/pcr/nicotine/PKGBUILD b/pcr/nicotine/PKGBUILD
new file mode 100644
index 000000000..b0bd552b4
--- /dev/null
+++ b/pcr/nicotine/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Guest One <theguestone at gmail dot com>
+
+pkgname=nicotine
+pkgver=1.2.16
+pkgrel=1
+pkgdesc="Soulseek music-sharing client, written in python"
+arch=('i686')
+url='http://sourceforge.net/projects/nicotine-plus/'
+license=('GPL')
+depends=('pygtk' 'mutagen' 'python2-sexy')
+makedepends=('setconf')
+optdepends=('python2-geoip: to enable Geographical blocker')
+source=("http://downloads.sourceforge.net/project/nicotine-plus/nicotine-plus/${pkgver}/${pkgname}+-${pkgver}.tar.bz2")
+sha256sums=('71e5b33e273daaf072dbf63839536c14d7ead9d149323d50eee09f7429e34c1d')
+
+prepare() {
+ cd "$srcdir/${pkgname}+-$pkgver"
+
+ # Fix for FS#22476
+ setconf files/nicotine.desktop Icon nicotine-plus-32px
+
+ # Python fix
+ sed -i -e 's|/usr/bin/env python|/usr/bin/env python2|' \
+ -e 's|/usr/bin/python|/usr/bin/python2|' pynicotine/{,gtkgui/}*.py
+}
+
+build() {
+ cd "$srcdir/${pkgname}+-$pkgver/trayicon"
+
+ python2 autogen.py
+ make
+}
+
+package() {
+ cd "$srcdir/${pkgname}+-$pkgver"
+
+ python2 setup.py install --root="$pkgdir"
+ cd trayicon
+ make DESTDIR="$pkgdir" install
+ ln -s nicotine.py "$pkgdir/usr/bin/nicotine"
+}
+
+# vim:set ts=2 sw=2 et: