Advertisement
Guest User

PKGBUILD

a guest
Oct 8th, 2010
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.52 KB | None | 0 0
  1. pkgname=gmbox-svn
  2. pkgver=211
  3. pkgrel=1
  4. url="http://gmbox.googlecode.com"
  5. pkgdesc="Google Music Downloader. "
  6. arch=('i686' 'x86_64')
  7. license=('GPL')
  8. makedepends=()
  9. depends=('pygtk' 'python-notify')
  10. provides=('gmbox')
  11. conflicts=('gmbox')
  12. optdepends=("python-pymedia: A Python library for accessing and manipulating multimedia files")
  13. install=gmbox.install
  14. source=(gmbox.desktop)
  15. md5sums=()
  16.  
  17. _svntrunk=http://gmbox.googlecode.com/svn/trunk/gmbox
  18. _svnmod=gmbox
  19.  
  20. build() {
  21.   cd ${srcdir}
  22.  
  23.   if [ -d $_svnmod/.svn ]; then
  24.     (cd $_svnmod && svn --config-dir ../ up -r $pkgver)
  25.   else
  26.     svn --config-dir ./ co $_svntrunk  -r $pkgver $_svnmod
  27.   fi
  28.  
  29.   msg "SVN checkout done or server timeout"
  30.   msg "Preparing..."
  31.  
  32.   rm -rf $_svnmod-build
  33.   cp -r $_svnmod $_svnmod-build
  34.   cd $_svnmod-build
  35.  
  36.   patch -Np0 -i $startdir/xdg.patch
  37.  
  38.   rm -r `find . -name ".svn"`
  39.  
  40.   #python 2 fix
  41.   sed 's@#!/usr/bin/env python@#!/usr/bin/python2@g' -i *.py
  42.   python2 -m compileall .
  43.   #python -c "import compileall; compileall.compile_dir('.')"
  44.  
  45.   install -d $pkgdir/usr/bin
  46.   install -d $pkgdir/usr/share/gmbox/pixbufs
  47.  
  48.   install -m 0644 pixbufs/*.png $pkgdir/usr/share/gmbox/pixbufs
  49.   install -m 0755 *.py* $pkgdir/usr/share/gmbox/
  50.   install -m 0644 gmbox.glade $pkgdir/usr/share/gmbox/
  51.  
  52.   install -Dm644 pixbufs/gmbox.png $pkgdir/usr/share/pixmaps/gmbox.png
  53.    
  54.   install -Dm 0644 $srcdir/gmbox.desktop $pkgdir/usr/share/applications/gmbox.desktop
  55.    
  56.   cd $pkgdir/usr/bin
  57.  
  58.   ln -sf ../share/gmbox/gmbox.py ./gmbox
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement