Skip to content

Instantly share code, notes, and snippets.

@yangle
Created March 17, 2012 18:54
Show Gist options
  • Save yangle/2064103 to your computer and use it in GitHub Desktop.
Save yangle/2064103 to your computer and use it in GitHub Desktop.
Arch Linux AUR Package for Pithos with Socks Proxy Patch
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
}
# 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}/"
}
@yangle
Copy link
Author

yangle commented Mar 17, 2012

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment