1 # Maintainer: Yngve Inntjore Levinsen <yngve.inntjore.levinsen@cern.ch>
3 pkgname=kbibtex-kde4-beta
6 pkgver=${_pkgver}.beta${_beta}
9 pkgdesc="A BibTeX editor for KDE to edit bibliographies used with LaTeX, beta version."
10 url="http://home.gna.org/kbibtex/"
12 depends=('kdelibs>=4.2.0' 'poppler-qt')
13 optdepends=('bibtex2html: to convert bibtex files to html files' 'libxslt: Required to transform
14 XML files' 'libxml2: Required to transform XML files')
15 provides=('kbibtex-kde4')
16 conflicts=('kbibtex-kde4-svn')
17 makedepends=('cmake' 'automoc4' 'patch')
18 source=('changes.diff'
19 http://download.gna.org/kbibtex/${_pkgver}/kbibtex-${_pkgver}-beta${_beta}.tar.bz2)
20 md5sums=('66a22a9594d3fe9a10444011cc3d267e'
21 '09e390453d08ab1bd57dd20bdbe7d84b')
22 arch=('i686' 'x86_64')
26 if [ -d kbibtex-${_pkgver}-beta${_beta} ]; then
27 rm -rf kbibtex-${_pkgver}-beta${_beta}
29 tar -xjf kbibtex-${_pkgver}-beta${_beta}.tar.bz2
30 cd kbibtex-${_pkgver}-beta${_beta}
32 msg "patching desktop file"
33 patch -Np0 -i ../changes.diff
35 mkdir build && cd build
37 install_prefix=`kde4-config --prefix`
38 cmake -DCMAKE_INSTALL_PREFIX="${install_prefix}" \
39 -DCMAKE_BUILD_TYPE=Debug \
40 -DBINARY_POSTFIX=-kde4-beta \
47 cd ${srcdir}/kbibtex-${_pkgver}-beta${_beta}/build
48 make DESTDIR=${pkgdir} install || return 1
50 # This is not necessary anymore, but anyways..
51 patch -NRp0 -i ../changes.diff