desktop/subtitlecomposer/PKGBUILD

44 lines
1.3 KiB
Bash

#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=subtitlecomposer
pkgver=0.5.3
pkgrel=4
pkgdesc="A KDE subtitle editor"
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/subcomposer"
license=('GPL')
depends=('kdelibs' 'gettext' 'gstreamer0.10-base')
makedepends=('cmake' 'automoc4')
optdepends=("mplayer: for MPlayer backend")
source=(http://downloads.sourceforge.net/subcomposer/${pkgname}-${pkgver}.tar.bz2
subtitlecomposer-build-fixes.patch
subtitlecomposer-linkage.patch)
md5sums=('f660ed2ce4490a8705c883a9c57e39e5'
'136ae2b4af3956bb9929b25bfe4f80ad'
'92e8c545a8a4b0f513a32c1163574311')
# Many thanks for the linkage patch to the Gentoo guys.
# http://packages.gentoo.org/package/media-video/subtitlecomposer
build()
{
cd ${srcdir}/${pkgname}-${pkgver}
# Patches
patch -Np1 -i "${srcdir}/subtitlecomposer-build-fixes.patch" || return 1
patch -Np0 -i "${srcdir}/subtitlecomposer-linkage.patch" || return 1
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr || return 1
make || return 1
make DESTDIR=${pkgdir} install || return 1
}