updated on Thu Jan 5 13:17:10 UTC 2012
[aur-mirror.git] / lyx-newest / PKGBUILD
blob1af8b1d0142475b3eb5446329f35c14cb5141a11
1 # Maintainer: b00rt00s <b_ged@linuksowo.pl
2 # Contributor: Sam Madhani <shemz -at- gmx -dot- com>
4 pkgname=lyx-newest
5 _pkgname=lyx
6 pkgver=2.0.0
7 pkgrel=3
8 pkgdesc="A document processor with Tex/Latex backend."
9 arch=(i686 x86_64)
10 url='http://www.lyx.org'
11 license=('GPL')
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')
15 makedepends=('boost')
16 provides=('lyx')
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
21         lyx.desktop)
22 md5sums=('005dc04ad01e1b2bd92ec86b6235f8b1'
23          'b2a093f9dbbdeaa3dc085113c0f187c2')
25 install=lyx.install
27 build() {
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
32   
33   ./configure PYTHON=/usr/bin/python2 --without-aspell \
34     --without-enchant --prefix=/usr --with-frontend=qt4 \
35     --without-included-boost --without-included-mythes \
36     --disable-debug
38   make || return 1
41 package() {
42   cd ${srcdir}/lyx-${pkgver}
43   
44   make DESTDIR=${pkgdir} install || return 1
46   # desktop entry
47   install -Dm 644 ${srcdir}/lyx.desktop \
48         ${pkgdir}/usr/share/applications/lyx.desktop || return 1