1 # Maintainer: Gregor Burger <burger.gregor@gmail.com>
7 pkgdesc="An advanced open-source document processor."
9 url="http://www.lyx.org"
10 depends=('qt' 'texlive-core' 'python2' 'perl' 'imagemagick' 'aspell' 'aiksaurus' 'boost-libs')
12 optdepends=('texlive-latex3: pdf export')
14 source=(ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.0/rc3/$_pkgname-$pkgver.tar.gz \
17 md5sums=('2d8013cfebdeb13e345c40fcf190dad0'
18 'c11db315dc99254a4118827f98922623')
21 cd ${srcdir}/${_pkgname}-${pkgver}
22 find . -type f -exec sed -i 's|#!.*python|#!/usr/bin/env python2|' {} +
23 sed -i 's|"python|"python2|' lib/configure.py src/support/os.cpp
24 PYTHON=/usr/bin/python2 PYTHON_VERSION=2.7 ./configure --prefix=/usr \
25 --with-frontend=qt4 --without-included-boost
30 cd ${srcdir}/${_pkgname}-${pkgver}
32 make DESTDIR=${pkgdir} install
34 # install desktop entry
35 install -Dm644 ${srcdir}/lyx.desktop ${pkgdir}/usr/share/applications/lyx.desktop