Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

kotyz

By: a guest on Jan 21st, 2011  |  syntax: None  |  size: 1.28 KB  |  hits: 107  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: pressh <pressh funnysymbol gmail dot com>
  2.  
  3. pkgname=convertall
  4. pkgver=0.5.0
  5. pkgrel=1
  6. pkgdesc="Unit conversion program (Qt)"
  7. arch=('i686' 'x86_64')
  8. url="http://convertall.bellz.org/"
  9. license=('GPL')
  10. depends=('python2-qt')
  11. source=(http://download.berlios.de/$pkgname/$pkgname-$pkgver.tar.gz convertall.patch convertall.desktop)
  12. md5sums=('96ea0910af63d2056fe87cee3aa7031e'
  13.          'b5b81d75876455c79e7781eb672417c8'
  14.          '96c24fde148d2237e95110fda2bc1709')
  15.  
  16. build() {
  17. # patch the executable to have the correct paths and to use python2
  18. patch -Np0 < $srcdir/convertall.patch || return 1
  19.  
  20.  
  21. # create install directories
  22.   install -d $pkgdir/usr/{bin,share/pixmaps}
  23.  
  24. # copy files manually
  25. cp -rf $srcdir/ConvertAll/source $pkgdir/usr/share/$pkgname
  26. cp -rf $srcdir/ConvertAll/icons $pkgdir/usr/share/$pkgname
  27. cp -rf $srcdir/ConvertAll/doc $pkgdir/usr/share/$pkgname/help
  28. cp -rf $srcdir/ConvertAll/data $pkgdir/usr/share/$pkgname
  29.  
  30. # create symlink in /usr/bin
  31. ln -s /usr/share/$pkgname/$pkgname.py $pkgdir/usr/bin/$pkgname
  32.  
  33. # install desktop file
  34. install -Dm644 $srcdir/$pkgname.desktop \
  35.         $pkgdir/usr/share/applications/$pkgname.desktop
  36.  
  37. # symlink icon in /usr/share/pixmaps
  38. ln -s /usr/share/$pkgname/icons/$pkgname.svg \
  39.         $pkgdir/usr/share/pixmaps/$pkgname.svg
  40. }