4 url="http://gmbox.googlecode.com"
5 pkgdesc="Google Music Downloader. "
12 optdepends=("python-pymedia: A Python library for accessing and manipulating multimedia files"
13 "python-notify: Notify")
16 _svntrunk=http://gmbox.googlecode.com/svn/trunk/gmbox-gtk
22 if [ -d $_svnmod/.svn ]; then
23 (cd $_svnmod && svn --config-dir ../ up -r $pkgver)
25 svn --config-dir ./ co $_svntrunk -r $pkgver $_svnmod
28 msg "SVN checkout done or server timeout"
32 cp -r $_svnmod $_svnmod-build
36 rm -r `find . -name ".svn"`
39 sed 's@#!/usr/bin/env python@#!/usr/bin/python2@g' -i *.py
40 python2 -m compileall .
42 install -d $pkgdir/usr/bin
43 install -d $pkgdir/usr/share/gmbox/
45 install -m 0755 gmbox-gtk.py $pkgdir/usr/share/gmbox/
46 mv data gmbox googlemusic $pkgdir/usr/share/gmbox/
47 install -Dm 0644 $srcdir/gmbox-build/debian/gmbox.desktop $pkgdir/usr/share/applications/gmbox.desktop
50 ln -sf ../share/gmbox/gmbox-gtk.py ./gmbox