Want more features on Pastebin? Sign Up, it's FREE!
Guest

subtitlecomposer

By: a guest on Feb 20th, 2012  |  syntax: Bash  |  size: 1.20 KB  |  views: 114  |  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: Michal Malek <michalm@jabster.pl>
  2. # Contributor: rraval
  3.  
  4. pkgname=subtitlecomposer
  5. pkgver=0.5.3
  6. pkgrel=4
  7. pkgdesc="A KDE subtitle editor"
  8. arch=('i686' 'x86_64')
  9. url="http://sourceforge.net/projects/subcomposer"
  10. license=('GPL')
  11. depends=('kdelibs' 'gettext')
  12. makedepends=('cmake' 'automoc4')
  13. optdepends=("mplayer: for MPlayer backend")
  14. source=(http://downloads.sourceforge.net/subcomposer/${pkgname}-${pkgver}.tar.bz2
  15.         subtitlecomposer-build-fixes.patch
  16.                 subtitlecomposer-linkage.patch)
  17. md5sums=('f660ed2ce4490a8705c883a9c57e39e5'
  18.          '136ae2b4af3956bb9929b25bfe4f80ad'
  19.          '92e8c545a8a4b0f513a32c1163574311')
  20.  
  21. # Many thanks for the linkage patch to the Gentoo guys.
  22. # http://packages.gentoo.org/package/media-video/subtitlecomposer
  23.  
  24. build()
  25. {
  26.         cd ${srcdir}/${pkgname}-${pkgver}
  27.  
  28.     # Patches
  29.     patch -Np1 -i "${srcdir}/subtitlecomposer-build-fixes.patch" || return 1
  30.     patch -Np0 -i "${srcdir}/subtitlecomposer-linkage.patch" || return 1
  31.     sed -i 's/cmake/cmake -DCMAKE_CXX_FLAGS="-lgobject-2.0 -lglib-2.0"/' configure
  32.  
  33.         ./configure
  34.         cd build
  35.         make || return 1
  36.         make DESTDIR=${pkgdir} install || return 1
  37. }
clone this paste RAW Paste Data