updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / khagan / PKGBUILD
blob9115fa3275dc692dbe82195d6be0bfb441581a6c
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 pkgname=khagan
4 pkgver=0.1.2
5 pkgrel=1
6 pkgdesc="A live user interface builder for controling parameters via OSC."
7 arch=(i686 x86_64)
8 url="http://khagan.berlios.de/"
9 license=('GPL')
10 depends=('pyphat' 'pyxml')
11 install="$pkgname.install"
12 source=("http://download.berlios.de/$pkgname/$pkgname-$pkgver.tar.gz"
13         "$pkgname.desktop")
14 md5sums=('555fe8d08d5bb11695b02ebc471e7217'
15          '6798d8ca165db86ec0d9ddf7403e7a27')
17 build() {
18   cd "$srcdir/$pkgname-$pkgver"
20   export PYTHON="python2"
22   # Some fixes
23   sed -e "167 i\\\\tdialog.connect(\"response\", lambda d, r: d.destroy())" \
24       -e "s_python_env python2_" \
25       -i $pkgname.py
28 package() {
29   cd "$srcdir/$pkgname-$pkgver"
31   python2 setup.py install --prefix=/usr --root="$pkgdir/"
33   # Replace bin
34   mv "$pkgdir/usr/bin/$pkgname.py" "$pkgdir/usr/bin/$pkgname"
36   # Install desktop and pixmap file
37   install -Dm644 ../$pkgname.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
38   install -Dm644 pixmaps/${pkgname}_icon_32px.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
41 # vim:set ts=2 sw=2 et: