summaryrefslogtreecommitdiff
path: root/community/nicotine/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-01-28 00:05:59 -0800
committerroot <root@rshg054.dnsready.net>2013-01-28 00:05:59 -0800
commit1b9f6dc846379470b620b5dbb9d4d7acd1de148c (patch)
tree2305b950a3c94970b05c1a38af473f5cca95af02 /community/nicotine/PKGBUILD
parentb9b96ada56ad38df20b1e528a095a1e86ab67a2b (diff)
Mon Jan 28 00:05:59 PST 2013
Diffstat (limited to 'community/nicotine/PKGBUILD')
-rw-r--r--community/nicotine/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/community/nicotine/PKGBUILD b/community/nicotine/PKGBUILD
new file mode 100644
index 000000000..4b849aa83
--- /dev/null
+++ b/community/nicotine/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 83168 2013-01-27 16:22:44Z pierre $
+# Maintainer: Angel Velasquez <angvp@archlinux.org>
+# Contributor: Hugo Doria <hugo@archlinux.org>
+# Contributor: Andrew Wright <andreww@photism.org>
+
+pkgname=nicotine
+pkgver=1.2.16
+pkgrel=4
+pkgdesc="Soulseek music-sharing client, written in python"
+arch=('i686' 'x86_64')
+url="http://sourceforge.net/projects/nicotine-plus/"
+license=('GPL')
+depends=('pygtk' 'mutagen')
+optdepends=('python2-geoip: to enable Geographical blocker')
+source=(http://downloads.sourceforge.net/project/nicotine-plus/nicotine-plus/${pkgver}/${pkgname}+-${pkgver}.tar.bz2)
+md5sums=('ac7433c21ef619a37e079a7ae68da94a')
+
+build() {
+ cd "${srcdir}/${pkgname}+-${pkgver}"
+ sed -i -e "s/Icon=nicotine-plus/Icon=nicotine-plus-32px/" files/nicotine.desktop # Fixing FS#22476
+ sed -i -e 's|/usr/bin/env python|/usr/bin/env python2|' \
+ -e 's|/usr/bin/python|/usr/bin/python2|' pynicotine/{,gtkgui/}*.py
+
+ python2 setup.py install --root="${pkgdir}"
+ cd trayicon
+ python2 autogen.py
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}+-${pkgver}/trayicon"
+ make DESTDIR="${pkgdir}" install
+ ln -s nicotine.py "${pkgdir}/usr/bin/nicotine"
+}