diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2013-02-09 10:32:20 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2013-02-09 10:32:20 -0300 |
commit | 6cc893589a6bd208f2b7711f985e17df7a6df816 (patch) | |
tree | c41cb07e4e88c4eff5bc05e44b86b860f96654b8 /community/nicotine | |
parent | 5995e8be41750a8ac397ac358f5c2bedca3a4d1e (diff) | |
parent | f0ab416208be17c176b9430a3537f05b5c653aec (diff) |
Merge branch 'master' of gparabola:abslibre-mips64el
Diffstat (limited to 'community/nicotine')
-rw-r--r-- | community/nicotine/PKGBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/community/nicotine/PKGBUILD b/community/nicotine/PKGBUILD new file mode 100644 index 000000000..bd3c6e999 --- /dev/null +++ b/community/nicotine/PKGBUILD @@ -0,0 +1,44 @@ +# $Id: PKGBUILD 83656 2013-02-04 10:04:46Z arodseth $ +# Maintainer: Alexander Rødseth <rodseth@gmail.com> +# Contributor: Angel Velasquez <angvp@archlinux.org> +# Contributor: Hugo Doria <hugo@archlinux.org> +# Contributor: Andrew Wright <andreww@photism.org> + +pkgname=nicotine +pkgver=1.2.16 +pkgrel=5 +pkgdesc='Soulseek music-sharing client, written in python' +arch=('x86_64' 'i686') +url='http://sourceforge.net/projects/nicotine-plus/' +license=('GPL') +depends=('pygtk' 'mutagen') #'python-sexy') TODO: Move python-sexy from AUR +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') + +build() { + 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 + + cd 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: |