Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 26th, 2012  |  syntax: None  |  size: 1.16 KB  |  views: 26  |  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. # Developer: Nathan Osman <https://launchpad.net/~george-edison55>
  2.  
  3. pkgname=nitroshare
  4. pkgver=0.1
  5. pkgrel=1
  6. pkgdesc="Makes sending a file to another machine on the local network as easy as dragging-and-dropping."
  7. arch=('i686' 'x86_64')
  8. url="https://launchpad.net/nitroshare"
  9. license=('GNU GPL v3')
  10. depends=('qt' 'qjson')
  11. makedepends=()
  12. options=()
  13. source=(https://launchpad.net/${pkgname}/0.1/0.1/+download/${pkgname}_${pkgver}.tar.gz nitroshare.install)
  14. md5sums=('cb7d878b8974976cf38cae1c2878070f'
  15.                 '1f38385ab0e8480a6ce64de6e63f1e52')
  16.  
  17. build () {
  18.         cd "${srcdir}/${pkgname}"
  19.         sed -i "s_target.path = /opt/extras.ubuntu.com/nitroshare_target.path = ${pkgdir}/usr/bin_g" nitroshare.pro
  20.         sed -i "s_Exec=/opt/extras.ubuntu.com/nitroshare/nitroshare_Exec=/usr/bin/${pkgname}_g" resource/other/${pkgname}.desktop
  21.         qmake
  22.         make
  23. }
  24.  
  25. package (){
  26.         cd "${srcdir}/${pkgname}"
  27.         make install
  28.         mkdir -p ${pkgdir}/usr/share/applications
  29.         install -Dm644 resource/other/${pkgname}.desktop ${pkgdir}/usr/share/applications/
  30.         install -Dm644 resource/images/logo.png ${pkgdir}/usr/share/pixmaps/${pkgname}.png
  31.         install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  32. }