diff options
Diffstat (limited to 'extra/lyx')
-rw-r--r-- | extra/lyx/PKGBUILD | 35 | ||||
-rw-r--r-- | extra/lyx/lyx.desktop | 9 |
2 files changed, 44 insertions, 0 deletions
diff --git a/extra/lyx/PKGBUILD b/extra/lyx/PKGBUILD new file mode 100644 index 000000000..dec0a4419 --- /dev/null +++ b/extra/lyx/PKGBUILD @@ -0,0 +1,35 @@ +# $Id: PKGBUILD 112021 2011-03-03 08:05:12Z eric $ +# Maintainer: Ronald van Haren <ronald.archlinux.org> +# Contributor: Jason Chu <jason@archlinux.org> + +pkgname=lyx +pkgver=1.6.9 +pkgrel=2 +pkgdesc="An advanced open-source document processor." +arch=('i686' 'x86_64') +url="http://www.lyx.org" +depends=('qt' 'texlive-core' 'python2' 'perl' 'imagemagick' 'aspell' 'aiksaurus' 'boost-libs') +makedepends=('boost') +license=('GPL') +source=(ftp://ftp.lyx.org/pub/lyx/stable/1.6.x/$pkgname-$pkgver.tar.bz2 \ + lyx.desktop) +sha1sums=('a1acacc8a26546542e32977ae222e811c98b1ca4' + 'e207a0b14d58aeb7b83f8fc47ab2e668cbc66844') + +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 + ./configure --prefix=/usr \ + --with-frontend=qt4 --without-included-boost + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + + make DESTDIR="${pkgdir}" install + + # install desktop entry + install -Dm644 "${srcdir}/lyx.desktop" "${pkgdir}/usr/share/applications/lyx.desktop" +} diff --git a/extra/lyx/lyx.desktop b/extra/lyx/lyx.desktop new file mode 100644 index 000000000..91a90d810 --- /dev/null +++ b/extra/lyx/lyx.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Lyx +Comment=Latex WYSIWYM Editor +Icon=/usr/share/lyx/images/lyx.png +Exec=lyx +Terminal=false +Type=Application +StartupNotify=false +Categories=Office; |