updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / subtitlecomposer-svn / PKGBUILD
blobe8331298cf4460d7144ab1ce66593ce6bd0d7a71
1 # Contributor: Mladen Pejakovic <pejakm@gmail.com>
3 pkgname=subtitlecomposer-svn
4 pkgver=26
5 pkgrel=1
6 pkgdesc="A KDE subtitle editor"
7 arch=('i686' 'x86_64')
8 url="http://sourceforge.net/projects/subcomposer"
9 license=('GPL')
10 depends=('kdelibs' 'gettext')
11 makedepends=('cmake' 'automoc4' 'svn')
12 optdepends=("mplayer: for MPlayer backend")
13 conflicts=('subtitlecomposer')
14 provides=("subtitlecomposer")
16 _svnmod="subtitlecomposer"
17 _svntrunk=https://subcomposer.svn.sourceforge.net/svnroot/subcomposer/trunk/
19 build() {
20      cd $startdir/src
22      if [ -d $_svnmod/.svn ]; then
23           (cd $_svnmod && svn up -r $pkgver)
24      else
25           svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
26      fi
28         msg "SVN checkout done or server timeout"
29         msg "Starting make..."
31         cd ./$_svnmod
33         cmake . -DCMAKE_INSTALL_PREFIX=/usr || return 1
34         make || return 1
35         make DESTDIR=${pkgdir} install || return 1