Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pkgname=gmbox-svn
- pkgver=211
- pkgrel=1
- url="http://gmbox.googlecode.com"
- pkgdesc="Google Music Downloader. "
- arch=('i686' 'x86_64')
- license=('GPL')
- makedepends=()
- depends=('pygtk' 'python-notify')
- provides=('gmbox')
- conflicts=('gmbox')
- optdepends=("python-pymedia: A Python library for accessing and manipulating multimedia files")
- install=gmbox.install
- source=(gmbox.desktop)
- md5sums=()
- _svntrunk=http://gmbox.googlecode.com/svn/trunk/gmbox
- _svnmod=gmbox
- build() {
- cd ${srcdir}
- if [ -d $_svnmod/.svn ]; then
- (cd $_svnmod && svn --config-dir ../ up -r $pkgver)
- else
- svn --config-dir ./ co $_svntrunk -r $pkgver $_svnmod
- fi
- msg "SVN checkout done or server timeout"
- msg "Preparing..."
- rm -rf $_svnmod-build
- cp -r $_svnmod $_svnmod-build
- cd $_svnmod-build
- patch -Np0 -i $startdir/xdg.patch
- rm -r `find . -name ".svn"`
- #python 2 fix
- sed 's@#!/usr/bin/env python@#!/usr/bin/python2@g' -i *.py
- python2 -m compileall .
- #python -c "import compileall; compileall.compile_dir('.')"
- install -d $pkgdir/usr/bin
- install -d $pkgdir/usr/share/gmbox/pixbufs
- install -m 0644 pixbufs/*.png $pkgdir/usr/share/gmbox/pixbufs
- install -m 0755 *.py* $pkgdir/usr/share/gmbox/
- install -m 0644 gmbox.glade $pkgdir/usr/share/gmbox/
- install -Dm644 pixbufs/gmbox.png $pkgdir/usr/share/pixmaps/gmbox.png
- install -Dm 0644 $srcdir/gmbox.desktop $pkgdir/usr/share/applications/gmbox.desktop
- cd $pkgdir/usr/bin
- ln -sf ../share/gmbox/gmbox.py ./gmbox
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement