updated on Fri Jan 6 08:01:17 UTC 2012
[aur-mirror.git] / theory / PKGBUILD
blob94ed9f1c2a3cf9b121380c753ce5a3a67979af40
1 # Contributor: Kevin Sullivan <ksullivan@archlinux.us>
3 pkgname=theory
4 pkgver=0.1.11
5 pkgrel=1
6 pkgdesc="A web-based MPD client."
7 arch=('i686' 'x86_64')
8 url="http://theory.steelbreeze.org/"
9 license=('GPL')
10 depends=('python2')
11 makedepends=('setuptools')
12 source=("http://theory.steelbreeze.org/$pkgname-$pkgver.tar.bz2" 
13         'run-theory')
14 md5sums=('8a6b0cdf0d5863d9a9c1d39bd53b6c8f'
15          '1e18e39e38f68f46a016c99129fe2a10')
17 build() {
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
28      ./install.sh
29   rm ./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: