updated on Thu Jan 12 16:09:17 UTC 2012
[aur-mirror.git] / gmbox / PKGBUILD
blob2469f5a619834b05cf843f804a37bcdd4dd693dd
1 # Contributor: zlowly <zlowly@gmail.com>
2 pkgname=gmbox
3 pkgver=0.4b
4 _pkgver=0.4beta
5 _pkgname=$pkgname-gtk
6 pkgrel=1
7 pkgdesc="Google music box"
8 arch=("i686" "x86_64")
9 url="http://code.google.com/p/gmbox/"
10 license=('GPL3')
11 depends=('python2>=2.6' 'pygtk' 'python-notify')
12 source=(http://gmbox.googlecode.com/files/${_pkgname}-${_pkgver}.tar.gz
13 flashplayer_key.patch)
14 md5sums=('85eeb523abf388c39cc870f15e4f2baf'
15          'cbcc5967c81d0703a725a3dcd172c328')
16 build() {
17   cd $srcdir
18   patch -p0 -i flashplayer_key.patch
19   sed -i "s/Exec=.*/Exec=python2 \/usr\/share\/$_pkgname\/$_pkgname.py/" $_pkgname/debian/gmbox.desktop
21 package() {
22   install -d $pkgdir/usr/share/$_pkgname/$pkgname
23   install -d $pkgdir/usr/share/$_pkgname/libgmbox
24   install -d $pkgdir/usr/share/$_pkgname/data/{glade,pixbufs}
25   install -m 0755 $srcdir/$_pkgname/$_pkgname.py $pkgdir/usr/share/$_pkgname
26   install -m 0644 $srcdir/$_pkgname/libgmbox/*  $pkgdir/usr/share/$_pkgname/libgmbox
27   install -m 0644 $srcdir/$_pkgname/data/glade/*  $pkgdir/usr/share/$_pkgname/data/glade
28   install -m 0644 $srcdir/$_pkgname/data/pixbufs/*  $pkgdir/usr/share/$_pkgname/data/pixbufs
29   install -m 0644 $srcdir/$_pkgname/$pkgname/* $pkgdir/usr/share/$_pkgname/$pkgname
30   install -Dm 0644 $srcdir/$_pkgname/debian/gmbox.desktop $pkgdir/usr/share/applications/gmbox.desktop
31   install -Dm 0644 $srcdir/$_pkgname/data/pixbufs/gmbox.png $pkgdir/usr/share/pixmaps/gmbox.png
34 # vim:set ts=2 sw=2 et: