Created
March 17, 2012 18:54
-
-
Save yangle/2064103 to your computer and use it in GitHub Desktop.
Arch Linux AUR Package for Pithos with Socks Proxy Patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| post_install() { | |
| update-desktop-database -q | |
| gtk-update-icon-cache -q -t -f usr/share/icons/hicolor | |
| } | |
| post_upgrade() { | |
| post_install $1 | |
| } | |
| post_remove() { | |
| post_install $1 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Contributor: Matthew Bauer <mjbauer95@gmail.com> | |
| # Maintainer: Steven Allen <steven@stebalien.com> | |
| _pkgname='pithos' | |
| pkgname="$_pkgname-git" | |
| pkgver=20120829 | |
| pkgrel=1 | |
| pkgdesc='A Pandora Radio (pandora.com) player for the GNOME Desktop using the libpiano library (also used by pianobar).' | |
| arch=('any') | |
| url="https://github.com/yAngle/$_pkgname" | |
| license=('GPL') | |
| depends=('python2' 'pygtk' 'python-notify' 'dbus-python' 'gstreamer0.10-python' 'gstreamer0.10-good-plugins' 'gstreamer0.10-bad-plugins' 'pyxdg' 'hicolor-icon-theme' 'socksipy') | |
| makedepends=('git' 'python2-distribute' 'python-distutils-extra') | |
| optdepends=('python-keybinder') | |
| provides=("$_pkgname") | |
| source=("$pkgname.install" | |
| "https://bugs.launchpad.net/pithos/+bug/681648/+attachment/2617073/+files/pithos_patches.tgz") | |
| install="$pkgname.install" | |
| md5sums=('c9db50a1fd3d86efe4d6f8a7b044e718' | |
| '36c6646daa92326ac2157ab503fe0e25') | |
| _gitroot="https://github.com/yAngle/$_pkgname" | |
| _gitname="$_pkgname" | |
| build() { | |
| cd "$srcdir" | |
| msg "Connecting to GIT server...." | |
| if [ -d $_gitname ] ; then | |
| cd $_gitname && git pull origin master | |
| msg "The local files are updated." | |
| else | |
| git clone -b master $_gitroot $_gitname | |
| fi | |
| msg "GIT checkout done or server timeout" | |
| cd pithos | |
| patch -p4 < ../pithos_1.patch | |
| patch -p2 < ../pithos_2.patch | |
| cd .. | |
| msg "proxy patch applied successfully" | |
| [ -d ./${_pkgname}-build ] && rm -rf ./${_pkgname}-build | |
| cp -r ./${_pkgname} ./${_pkgname}-build | |
| } | |
| package() { | |
| cd "${srcdir}/${_pkgname}-build" | |
| python2 setup.py install --optimize=1 --prefix=/usr --root="${pkgdir}/" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To use Socks proxy, install socksipy, put
s:127.0.0.1:####in the field "proxy url" in Pithos Settings.Credit: Mike Pelley (https://bugs.launchpad.net/pithos/+bug/681648)