summaryrefslogtreecommitdiff
path: root/community/exaile/PKGBUILD
blob: 5b3c1a53e629415db9bb12046e4b0a3852fc79ca (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# $Id: PKGBUILD 40067 2011-02-19 20:19:46Z ebelanger $
# Contributor: Roman Kyrylych <Roman.Kyrylych@gmail.com>
# Contributor: Benjamin Wild <benwild@gmx.de>
# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>

pkgname=exaile
pkgver=0.3.2.1
pkgrel=1
pkgdesc="A full-featured media player for GTK+"
arch=('i686' 'x86_64')
url="http://www.exaile.org"
license=('GPL')
depends=('python2' \
	 'gstreamer0.10-python' \
	 'gstreamer0.10-good-plugins' \
	 'mutagen' \
	 'dbus-python' \
	 'pygtk>=2.10' \
	 'librsvg')
makedepends=('make' 'help2man')
optdepends=('pycddb: CD metadata retrieval' \
	    'hal: device autodetection' \
	    'gstreamer0.10-bad-plugins: support for more formats' \
	    'gstreamer0.10-ugly-plugins: support for more formats' \
	    'gstreamer0.10-ffmpeg: support for more formats' \
	    'python-sexy: UI enhancements')
source=(https://www.launchpad.net/exaile/${pkgver%.*}/${pkgver}/+download/exaile-${pkgver}.tar.gz)
md5sums=('7ecfa9e52a9f2882717b3483518b604b')
sha1sums=('86e1451ab9e6f96077c9dfc59eea3d4dccb00cf0')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

    # python2 fix
    for file in $(find . -name Makefile -print) tools/generate-launcher; do
        sed -i 's_python_python2_' $file
    done
    for file in plugins/*/*.py exaile.py; do
        sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' $file
        sed -i 's_#!/usr/bin/python_#!/usr/bin/python2_' $file
    done

	make
}

package() {
	cd "${srcdir}/${pkgname}-${pkgver}"

	make PREFIX=/usr DESTDIR="${pkgdir}" install

	# fix for clicking files with spaces in names from nautilus
	sed -i "s#%u#%f#" "${pkgdir}/usr/share/applications/exaile.desktop"
}