summaryrefslogtreecommitdiff
path: root/community/pympd/PKGBUILD
blob: 4a17d2725f4909337188496960c721bfecf5bc21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $Id: PKGBUILD 115233 2014-07-07 02:32:57Z fyan $
# 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=4
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
}