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

pkgbuild-ocenaudio

By: ainumortis on Apr 25th, 2014  |  syntax: None  |  size: 1.18 KB  |  views: 70  |  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. # Maintainer: Tom Kuther <gimpel@sonnenkinder.org>
  2.  
  3. pkgname=ocenaudio
  4. pkgver=2.0.4
  5. pkgrel=1
  6. pkgdesc="A cross-platform, easy to use, fast and functional audio editor"
  7. arch=('i686' 'x86_64')
  8. url="http://www.ocenaudio.com.br/"
  9. license=('as-is')
  10. depends=('qt4')
  11. optdepends=()
  12. _myarch=64
  13. [ "${CARCH}" == "i686" ] && _myarch=32
  14. source=(${pkgname}-${pkgver}_${CARCH}.deb::http://www.ocenaudio.com.br/downloads/$pkgname${_myarch}.deb)
  15. _md5sum=e901c636d9ea6029c7f716f1377af760
  16. [ "${CARCH}" == "i686" ] && _md5sum=fd196ad98d8a47344b9268912cbec1e9
  17. md5sums=(${_md5sum})
  18.  
  19. build() {
  20.   bsdtar -xf ${pkgname}-${pkgver}_${CARCH}.deb data.tar.gz
  21.   bsdtar -xf data.tar.gz
  22.   rm data.tar.gz
  23.   cd $srcdir/opt/$pkgname/lib
  24.   rm libQt*
  25. }
  26.  
  27. package() {
  28.   cd $srcdir
  29.   install -d -m 755 $pkgdir/opt/$pkgname/{lib,bin}
  30.   install -d -m 755 $pkgdir/usr/share
  31.   install -d -m 755 $pkgdir/usr/bin
  32.   install -m 755 opt/$pkgname/bin/$pkgname $pkgdir/opt/$pkgname/bin/
  33.   cp -d opt/$pkgname/lib/* $pkgdir/opt/$pkgname/lib/.
  34.   cp -dR usr/share/applications $pkgdir/usr/share/.
  35.   cp -dR usr/share/icons $pkgdir/usr/share/.
  36.  
  37.   ln -sf /opt/ocenaudio/bin/ocenaudio $pkgdir/usr/bin/ocenaudio
  38. }
  39. # vim:set ts=2 sw=2 et: