1 # Contributor: Kevin Sullivan <ksullivan@archlinux.us>
6 pkgdesc="A web-based MPD client."
8 url="http://theory.steelbreeze.org/"
11 makedepends=('setuptools')
12 source=("http://theory.steelbreeze.org/$pkgname-$pkgver.tar.bz2"
14 md5sums=('8a6b0cdf0d5863d9a9c1d39bd53b6c8f'
15 '1e18e39e38f68f46a016c99129fe2a10')
18 # Move files into /opt/
19 mkdir -p -m775 $pkgdir/opt/$pkgname/
20 cp -r $srcdir/$pkgname-$pkgver/* $pkgdir/opt/$pkgname/
22 # Install files using built-in packager.
23 cd $pkgdir/opt/$pkgname/
25 # ...but, first we have to make it use Python 2.x
26 sed -i 's/^python/python2/' ./install.sh
31 # Change permissions for any-user execution and put in shortcut.
32 chmod 755 $pkgdir/opt/$pkgname/run-theory.sh
33 mkdir -p $pkgdir/usr/bin/
34 cp $startdir/run-theory $pkgdir/usr/bin/
35 chmod 755 $pkgdir/usr/bin/run-theory
37 # Make scripts use /opt/ directory.
38 # NOTE: sed commands are pretty ugly, but work.
39 cd $pkgdir/opt/$pkgname/env/bin/
40 sed -i 's/^\#\!.*$/\#\!\/opt\/theory\/env\/bin\/python/' ./paster
41 sed -i 's/^VIRTUAL_ENV=\".*\"$/VIRTUAL_ENV=\"\/opt\/theory\/env\"/' ./activate
44 # vim:set ts=2 sw=2 et: