From 893fea7e060412ecc281595694ee34978c4f0fd5 Mon Sep 17 00:00:00 2001 From: Joshua Coombs Date: Wed, 18 Jul 2012 12:18:46 -0400 Subject: [PATCH 1/2] Initial pithos and pianobar import --- aur/pianobar/PKGBUILD | 25 ++++++++++++++++ aur/pithos-git/PKGBUILD | 49 +++++++++++++++++++++++++++++++ aur/pithos-git/pithos-git.install | 12 ++++++++ 3 files changed, 86 insertions(+) create mode 100644 aur/pianobar/PKGBUILD create mode 100644 aur/pithos-git/PKGBUILD create mode 100644 aur/pithos-git/pithos-git.install diff --git a/aur/pianobar/PKGBUILD b/aur/pianobar/PKGBUILD new file mode 100644 index 000000000..2e694cf5a --- /dev/null +++ b/aur/pianobar/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Mitch Bigelow + +pkgname=pianobar +pkgver=2012.06.24 +pkgrel=0 +pkgdesc="console-based frontend for Pandora" +url="http://6xq.net/projects/pianobar" +arch=('arm' 'i686' 'x86_64') +license=('MIT') +depends=('libao' 'faad2' 'libmad' 'gnutls' 'json-c') +source=(http://6xq.net/projects/pianobar/pianobar-$pkgver.tar.bz2) +sha256sums=('a80307dcfc8786c28d6025f54820664eca0cf26f888bd608c95d486762f908aa') +_builddir="$pkgname-$pkgver" + +build() { + cd "$_builddir" + make +} + +package() { + cd "$_builddir" + + make DESTDIR=$pkgdir PREFIX=/usr install + install -vDm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} diff --git a/aur/pithos-git/PKGBUILD b/aur/pithos-git/PKGBUILD new file mode 100644 index 000000000..114ebfcf8 --- /dev/null +++ b/aur/pithos-git/PKGBUILD @@ -0,0 +1,49 @@ +# Contributor: Matthew Bauer +# Maintainer: Steven Allen + +_pkgname=pithos +pkgname=pithos-git +pkgver=20120718 +pkgrel=1 +pkgdesc='Pandora Internet Radio player for GNOME' +arch=('any') +url="http://kevinmehall.net/p/pithos/" +license=('GPL3') +depends=('python2' 'pygtk' 'python-notify' 'dbus-python' 'gstreamer0.10-python' 'gstreamer0.10-good-plugins' 'gstreamer0.10-bad-plugins' 'gstreamer0.10-base-plugins' 'pyxdg' 'hicolor-icon-theme') +makedepends=('git' 'python2-distribute' 'python2-distutils-extra') +#makedepends=('git' 'python2-distribute') +optdepends=('python-keybinder: for media keys plugin' + 'gstreamer0.10-ugly-plugins: MP3 playback support') +provides=("$_pkgname") +conflicts=("$_pkgname-bzr" "$_pkgname") +source=("$pkgname.install") +install="$pkgname.install" +md5sums=('c9db50a1fd3d86efe4d6f8a7b044e718') + +_gitroot="git://github.com/kevinmehall/pithos.git" +_gitname="$_pkgname" + +build() { + cd "$srcdir" + msg "Connecting to GIT server...." + + if [[ -d "$_gitname" ]]; then + cd "$_gitname" && git pull origin + msg "The local files are updated." + else + git clone "$_gitroot" "$_gitname" + fi + + msg "GIT checkout done or server timeout" + msg "Starting build..." + + rm -rf "$srcdir/$_gitname-build" + git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" +} + +package() { + cd "$srcdir/$_gitname-build" + python2 setup.py install --optimize=1 --prefix=/usr --root="${pkgdir}/" +} + +# vim:set ts=2 sw=2 et: diff --git a/aur/pithos-git/pithos-git.install b/aur/pithos-git/pithos-git.install new file mode 100644 index 000000000..db6d40bae --- /dev/null +++ b/aur/pithos-git/pithos-git.install @@ -0,0 +1,12 @@ +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 +} From cdc42aa4d8bdfd8357b2fa6812de999ac9a481bc Mon Sep 17 00:00:00 2001 From: Joshua Coombs Date: Wed, 18 Jul 2012 13:01:52 -0400 Subject: [PATCH 2/2] Pianobar is part of [community] upstream so no need for it in aur. --- aur/pianobar/PKGBUILD | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 aur/pianobar/PKGBUILD diff --git a/aur/pianobar/PKGBUILD b/aur/pianobar/PKGBUILD deleted file mode 100644 index 2e694cf5a..000000000 --- a/aur/pianobar/PKGBUILD +++ /dev/null @@ -1,25 +0,0 @@ -# Maintainer: Mitch Bigelow - -pkgname=pianobar -pkgver=2012.06.24 -pkgrel=0 -pkgdesc="console-based frontend for Pandora" -url="http://6xq.net/projects/pianobar" -arch=('arm' 'i686' 'x86_64') -license=('MIT') -depends=('libao' 'faad2' 'libmad' 'gnutls' 'json-c') -source=(http://6xq.net/projects/pianobar/pianobar-$pkgver.tar.bz2) -sha256sums=('a80307dcfc8786c28d6025f54820664eca0cf26f888bd608c95d486762f908aa') -_builddir="$pkgname-$pkgver" - -build() { - cd "$_builddir" - make -} - -package() { - cd "$_builddir" - - make DESTDIR=$pkgdir PREFIX=/usr install - install -vDm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -}