updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / kbibtex-kde4 / PKGBUILD
blob2b0d605018ab156d1f467ef68dc445dcf2b2740d
1 # Maintainer: Yngve Inntjore Levinsen <yngve.inntjore.levinsen@cern.ch>
3 pkgname=kbibtex-kde4
4 pkgver=0.3
5 pkgrel=1
6 pkgdesc="A BibTeX editor for KDE to edit bibliographies used with LaTeX."
7 url="http://home.gna.org/kbibtex/"
8 license=('GPL')
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}
21   _svnmod=kbibtex
23 build() {
24     if [ -d $_svnmod/.svn ]; then
25       (cd $_svnmod && svn up)
26     else
27       svn co $_svntag --config-dir ./ $_svnmod
28     fi
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"
35     fi
36     cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
37     cd "$srcdir/$_svnmod-build"
38     
39     msg "Applying patches"
40     patch -Np0 -i ../changes.diff
41     
42     install_prefix=`kde4-config --prefix`
43     cmake -DCMAKE_INSTALL_PREFIX="${install_prefix}" -DBINARY_POSTFIX=-kde4 .
45     make || return 1
47   
48 package() {
49     cd ${srcdir}/kbibtex-build
50     make DESTDIR=${pkgdir} install || return 1