1 # Maintainer: Yngve Inntjore Levinsen <yngve.inntjore.levinsen@cern.ch>
6 pkgdesc="A BibTeX editor for KDE to edit bibliographies used with LaTeX."
7 url="http://home.gna.org/kbibtex/"
9 depends=('poppler-qt' 'kdebase-runtime>=4.2.0')
10 optdepends=('bibtex2html: to convert bibtex files to html files' 'libxslt: Required to transform
11 XML files' 'libxml2: Required to transform XML files')
12 makedepends=('subversion' 'cmake' 'automoc4' 'patch')
13 source=('changes.diff' kbibtex-kde4.install)
14 arch=('i686' 'x86_64')
16 md5sums=('b0f4a2e43b4fcdab472aa4f1cbd56ea8'
17 'a569538a98b46554c25ec37e321b8ea9')
20 _svntag=svn://svn.gna.org/svn/kbibtex/tags/${pkgver}
24 if [ -d $_svnmod/.svn ]; then
25 (cd $_svnmod && svn up)
27 svn co $_svntag --config-dir ./ $_svnmod
30 msg "SVN checkout done or server timeout"
31 msg "Starting make..."
33 if [ -d "$srcdir/$_svnmod-build" ]; then
34 rm -rf "$srcdir/$_svnmod-build"
36 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
37 cd "$srcdir/$_svnmod-build"
39 msg "Applying patches"
40 patch -Np0 -i ../changes.diff
42 install_prefix=`kde4-config --prefix`
43 cmake -DCMAKE_INSTALL_PREFIX="${install_prefix}" -DBINARY_POSTFIX=-kde4 .
49 cd ${srcdir}/kbibtex-build
50 make DESTDIR=${pkgdir} install || return 1