diff options
author | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
commit | 7a65a910b77ad191d69881098c47f9b0c852d92e (patch) | |
tree | 9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/pympd/PKGBUILD | |
parent | 60da6abff6c9577a783d72865f11de7a585e912e (diff) |
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/pympd/PKGBUILD')
-rw-r--r-- | community/pympd/PKGBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/community/pympd/PKGBUILD b/community/pympd/PKGBUILD new file mode 100644 index 000000000..d83139b8c --- /dev/null +++ b/community/pympd/PKGBUILD @@ -0,0 +1,32 @@ +# $Id: PKGBUILD 67738 2012-03-14 10:05:54Z giovanni $ +# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org> +# Contributor: Allan McRae <allan@archlinux.org> +# Contributor: whatah <whatah@gmail.com> +# Contributor: Andrew Conkling <andrewski@fr.st> + +pkgname=pympd +pkgver=0.08.1 +pkgrel=3 +pkgdesc="A Rhythmbox-like PyGTK+ client for Music Player Daemon" +arch=('i686' 'x86_64') +url="http://pympd.sourceforge.net/" +license=('GPL') +depends=('libglade' 'pygtk') +makedepends=('pkgconfig') +options=('!emptydirs') +source=(http://pympd.sourceforge.net/files/$pkgname-$pkgver.tar.gz) +md5sums=('388c2882ffbacffb27b491441a2b2a23') + +package() { + cd ${srcdir}/$pkgname-$pkgver + + # python2 fix + sed -i 's_which python_which python2_' Makefile + sed -i 's_python -c_python2 -c_' src/modules/tray/Makefile + for file in $(find . -name '*.py' -print); do + sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file + sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file + done + + make PREFIX=/usr DESTDIR=${pkgdir} install +} |