1 # Maintainer: b00rt00s <b_ged@linuksowo.pl
2 # Contributor: Sam Madhani <shemz -at- gmx -dot- com>
8 pkgdesc="A document processor with Tex/Latex backend."
10 url='http://www.lyx.org'
13 depends=('qt' 'texlive-core' 'python2' 'perl' 'hunspell' 'imagemagick' 'libmythes' 'texlive-latex3' 'boost-libs')
14 optdepends=('texlive-latexextra: for more Latex packages' 'mythes-en: thesaurus data files')
17 conflicts=('lyx' 'lyx-svn' 'lyx_prerelease' 'lyx-beta')
18 replaces=('lyx' 'lyx-svn' 'lyx_prerelease' 'lyx-beta')
20 source=(ftp://ftp.lip6.fr/pub/lyx/stable/2.0.x/lyx-${pkgver}.tar.xz
22 md5sums=('005dc04ad01e1b2bd92ec86b6235f8b1'
23 'b2a093f9dbbdeaa3dc085113c0f187c2')
28 cd ${srcdir}/lyx-${pkgver}
30 find . -type f -exec sed -i 's|#!.*python|#!/usr/bin/env python2|' {} +
31 sed -i 's|"python|"python2|' lib/configure.py src/support/os.cpp
33 ./configure PYTHON=/usr/bin/python2 --without-aspell \
34 --without-enchant --prefix=/usr --with-frontend=qt4 \
35 --without-included-boost --without-included-mythes \
42 cd ${srcdir}/lyx-${pkgver}
44 make DESTDIR=${pkgdir} install || return 1
47 install -Dm 644 ${srcdir}/lyx.desktop \
48 ${pkgdir}/usr/share/applications/lyx.desktop || return 1