updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pytone / PKGBUILD
blob1a607b5eff376e4a65fee78fee68824f2d188893
1 # Maintainer: TDY <tdy@gmx.com>
3 pkgname=pytone
4 pkgver=3.0.3
5 pkgrel=1
6 pkgdesc="An advanced music jukebox with a console interface"
7 arch=('i686' 'x86_64')
8 url="http://www.luga.de/pytone/"
9 license=('GPL')
10 depends=('mutagen' 'pyao' 'pymad' 'python-pysqlite' 'pyvorbis')
11 optdepends=('python-xmms>=2.00: external xmms support'
12             'mpg123: external mpg123 support'
13             'mpg321: external mpg321 support')
14 backup=('etc/pytonerc')
15 source=(http://www.luga.de/pytone/download/PyTone-$pkgver.tar.gz)
16 md5sums=('6bac77054efd47672f97b4f022a1d073')
18 build() {
19   cd "$srcdir/PyTone-$pkgver"
20   sed -i 's#src#/usr/lib/python2.6/site-packages/pytone#' pytone{,ctl}
21   python setup.py build_ext -i || return 1
24 package() {
25   cd "$srcdir/PyTone-$pkgver"
26   python setup.py install --prefix=/usr --root="$pkgdir"
27   install -Dm644 conf/pytonerc "$pkgdir/etc/pytonerc"
28   install -Dm644 README "$pkgdir/usr/share/doc/pytone/README"