1 # Contributor: David Watzke <david@watzke.cz>
3 pkgname=subtitlecomposer-kde3
4 _realname=subtitlecomposer
7 pkgdesc="A KDE3 subtitle editor"
9 url="http://sourceforge.net/projects/subcomposer"
11 depends=('kdelibs3' 'xine-lib' 'gstreamer0.10-base' 'gettext')
12 optdepends=("mplayer: for MPlayer backend")
13 source=(http://downloads.sourceforge.net/subcomposer/${_realname}-${pkgver}.tar.bz2
14 subtitlecomposer-build-fixes.patch)
15 sha256sums=('9a39aac7b666eb67137c99f9f8885481f8a005cb04df14a071bf5c763d98c2b4'
16 '173e26abc85133e7a31a9e152520cfb4c890884cdaa9351f83cf63c28c15765f')
19 cd "${srcdir}/${_realname}-${pkgver}"
21 sed -i "/^Exec=/ s:=:=/opt/kde/bin/:" src/main/subtitlecomposer.desktop
22 sed -i "s/-fno-exceptions/-fexceptions/g" configure
23 patch -Np1 -i "${srcdir}/subtitlecomposer-build-fixes.patch"
25 QTDIR=/opt/qt ./configure --without-arts --prefix=/opt/kde
30 cd "${srcdir}/${_realname}-${pkgver}"
32 make DESTDIR="${pkgdir}" install