summaryrefslogtreecommitdiff
path: root/extra/quodlibet/PKGBUILD
blob: bf92df5dbe2893ccb8b74735d305c69704c93aec (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
33
34
35
36
37
38
# $Id: PKGBUILD 160925 2012-06-07 02:14:07Z eric $
# Maintainer: Eric Bélanger <eric@archlinux.org>

pkgname=quodlibet
pkgver=2.4
pkgrel=2
pkgdesc="An audio player written in pygtk"
arch=('i686' 'x86_64' 'mips64el')
license=('GPL2')
url="http://code.google.com/p/quodlibet/"
depends=('gstreamer0.10-python' 'gstreamer0.10-base-plugins' 'gstreamer0.10-good-plugins' 
         'gstreamer0.10-ugly-plugins' 'mutagen' 'pygtk')
makedepends=('intltool')
optdepends=('gstreamer0.10-ffmpeg: for ffmpeg (ASF/WMA) support ' 
            'gstreamer0.10-bad-plugins: for MPEG-4 (AAC) and Musepack support' 
            'python2-dbus: for dbus support' 
            'notification-daemon: for notification support' 
            'libgpod: for ipod support' 
            'python2-feedparser: for audio feeds (podcast) support' 
            'udisks: for media devices support' 
            'media-player-info: for media devices support')
options=('!makeflags')
source=(http://quodlibet.googlecode.com/files/${pkgname}-${pkgver}.tar.gz)
sha1sums=('7e11cda2827bb0d04b7d2b7854b8a2854ed074c8')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  sed -i 's#env python#env python2#' *.py quodlibet/util/fmps.py
  sed -i 's#libudev.so.0#libudev.so.1#' quodlibet/devices/__init__.py
  ./setup.py build
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./setup.py install --prefix="${pkgdir}/usr"
  install -D -m644 quodlibet/images/hicolor/64x64/apps/exfalso.png "${pkgdir}/usr/share/pixmaps/exfalso.png"
  install -D -m644 quodlibet/images/hicolor/64x64/apps/quodlibet.png "${pkgdir}/usr/share/pixmaps/quodlibet.png"
}