1 # Maintainer: cuihao <cuihao dot leo at gmail dot com>
2 # Contributor: Leo Zhao <zhao78977@gmail.com>
5 # https://aur.archlinux.org/packages/ex/exaile/PKGBUILD
12 pkgdesc='Exaile mod for Chinese users.'
13 url='https://exaile-cn.googlecode.com/'
15 arch=('i686' 'x86_64')
16 depends=('python2-chardet'
17 'gstreamer0.10-python'
18 'gstreamer0.10-good-plugins'
23 makedepends=('help2man')
24 optdepends=('pycddb: CD metadata retrieval'
25 'python2-bsddb: music collection support'
26 'gstreamer0.10-bad-plugins: support for more formats'
27 'gstreamer0.10-ugly-plugins: support for more formats'
28 'gstreamer0.10-ffmpeg: support for more formats')
30 provides=('exaile=0.3.2.0')
31 install=${_pkgname}.install
32 source=("${url}/files/exaile-cn${pkgver}.tar.gz"
33 "https://www.launchpad.net/${_pkgname}/${_pkgver%.*}/${_pkgver}/+download/${_pkgname}-${_pkgver}.tar.gz"
34 "${url}/files/lrcMod.py"
35 "${url}/files/Panel.py")
36 sha1sums=('c474561cb7a46a2f40ce94dde516065fc857d9c8'
37 '08015ab647f5b83997bd2f1c87c14d3d287fd3e7'
38 '2bf4c513cb6877a1e1d3cb0239646cc84e0cbcb6'
39 '260d490b4cc77df1a5bc8fe9c1b8656272ca5ed8')
43 cd "${srcdir}/exaile-cn${pkgver}"
44 exaile_path="${srcdir}/${_pkgname}-${_pkgver}/"
47 cp -f _id3.py "${exaile_path}/xl/metadata/"
50 cp -r doubancovers "${exaile_path}/plugins/"
53 cp -r LyricDisp "${exaile_path}/plugins/"
54 cp -f engine_unified.py engine_normal.py "${exaile_path}/xl/player/"
57 cp -f __init__.py "${exaile_path}/xlgui/"
60 cp -f track.py "${exaile_path}/xl/trax/"
61 cp -r doubanfm "${exaile_path}/plugins/"
64 cp -f "${srcdir}/lrcMod.py" "${exaile_path}/plugins/LyricDisp/"
67 cp -f "${srcdir}/Panel.py" "${exaile_path}/plugins/LyricDisp/disp/Panel.py"
70 cd "${srcdir}/${_pkgname}-${_pkgver}"
73 for file in $(find . -name Makefile -print) tools/generate-launcher; do
74 sed -i 's_python_python2_' $file
77 for file in plugins/*/*.py plugins/*.py exaile.py; do
78 sed -i 's_#![ ]*/usr/bin/python_#!/usr/bin/python2_' $file
79 sed -i 's_#![ ]*/usr/bin/env python_#!/usr/bin/python2_' $file
83 make PREFIX=/usr DESTDIR="${pkgdir}" install
87 # cd "${srcdir}/${_pkgname}-${_pkgver}"