diff options
Diffstat (limited to 'extra/lyx/PKGBUILD')
-rw-r--r-- | extra/lyx/PKGBUILD | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/extra/lyx/PKGBUILD b/extra/lyx/PKGBUILD index c2f1b8cc5..e3c91ccb8 100644 --- a/extra/lyx/PKGBUILD +++ b/extra/lyx/PKGBUILD @@ -1,28 +1,32 @@ -# $Id: PKGBUILD 133449 2011-07-28 03:31:32Z heftig $ +# $Id: PKGBUILD 137636 2011-09-10 09:15:43Z ronald $ # Maintainer: Ronald van Haren <ronald.archlinux.org> # Contributor: Jason Chu <jason@archlinux.org> pkgname=lyx -pkgver=2.0.0 -pkgrel=3 +pkgver=2.0.1 +pkgrel=2 pkgdesc="An advanced open-source document processor." arch=('i686' 'x86_64' 'mips64el') url="http://www.lyx.org" -depends=('qt' 'texlive-core' 'python2' 'perl' 'imagemagick' 'aspell' 'aiksaurus' 'boost-libs') +depends=('qt' 'texlive-core' 'python2' 'perl' 'imagemagick' 'enchant' 'boost-libs' 'libmythes') makedepends=('boost') license=('GPL') source=(ftp://ftp.lip6.fr/pub/lyx/stable/2.0.x/$pkgname-$pkgver.tar.xz \ - lyx.desktop) -sha1sums=('27bf0ee623aae0e59780d9f627cdf5cb788a2516' - 'e207a0b14d58aeb7b83f8fc47ab2e668cbc66844') - + lyx.desktop lyxrc.dist) +backup=('etc/lyx/lyxrc.dist') +install=lyx.install +sha1sums=('225b4d853f38463e986a9b42a39cac432da56d8a' + 'e2b8f6d6cdeec41e1d5795167f5557e4a6ea28ad' + '56416642cc3da2a13b87b84e6b87c1a239f3d09a') + build() { cd "${srcdir}/${pkgname}-${pkgver}" find . -type f -exec sed -i 's|#!.*python|#!/usr/bin/env python2|' {} + sed -i 's|"python|"python2|' lib/configure.py src/support/os.cpp export CXXFLAGS="$CXXFLAGS -fpermissive" ./configure --prefix=/usr \ - --with-frontend=qt4 --without-included-boost + --with-frontend=qt4 --without-included-boost \ + --without-included-mythes make } @@ -33,5 +37,9 @@ package() { # install desktop entry install -Dm644 "${srcdir}/lyx.desktop" "${pkgdir}/usr/share/applications/lyx.desktop" + + # install default config file + install -Dm644 ${srcdir}/lyxrc.dist ${pkgdir}/etc/lyx/lyxrc.dist + ln -sf /etc/lyx/lyxrc.dist ${pkgdir}/usr/share/lyx/lyxrc.dist } |