From 11711de1942a141f28faef695c4c78c8357fbf23 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 5 Mar 2012 00:01:22 +0000 Subject: Mon Mar 5 00:01:22 UTC 2012 --- testing/lyx/PKGBUILD | 50 +++++++++++++++++++++++++++++++++++++++++++++++++ testing/lyx/lyx.desktop | 14 ++++++++++++++ testing/lyx/lyx.install | 14 ++++++++++++++ testing/lyx/lyxrc.dist | 14 ++++++++++++++ 4 files changed, 92 insertions(+) create mode 100644 testing/lyx/PKGBUILD create mode 100644 testing/lyx/lyx.desktop create mode 100644 testing/lyx/lyx.install create mode 100644 testing/lyx/lyxrc.dist (limited to 'testing/lyx') diff --git a/testing/lyx/PKGBUILD b/testing/lyx/PKGBUILD new file mode 100644 index 000000000..618a89fc7 --- /dev/null +++ b/testing/lyx/PKGBUILD @@ -0,0 +1,50 @@ +# $Id: PKGBUILD 151823 2012-03-03 08:09:08Z ibiru $ +# Maintainer: Ronald van Haren +# Contributor: Jason Chu + +pkgname=lyx +pkgver=2.0.3 +pkgrel=2 +pkgdesc="An advanced WYSIWYM document processor & LaTeX front-end" +arch=('i686' 'x86_64') +url="http://www.lyx.org" +depends=('qt' 'texlive-core' 'python2' 'imagemagick' 'enchant' 'boost-libs' 'libmythes') +makedepends=('boost') +optdepends=('rcs: built-in version control system' + 'texlive-latexextra: float wrap support') +license=('GPL') +source=(ftp://ftp.lip6.fr/pub/lyx/stable/2.0.x/$pkgname-$pkgver.tar.xz + lyx.desktop lyxrc.dist) +backup=('etc/lyx/lyxrc.dist') +install=lyx.install +options=('emptydirs') +sha1sums=('109dae0ef22a7d8944964b32ee380ad170b0665f' + '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 \ + --without-included-mythes + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + + make DESTDIR="${pkgdir}" install + + # install desktop entry + install -Dm644 "${srcdir}/lyx.desktop" \ + "${pkgdir}/usr/share/applications/lyx.desktop" + install -Dm644 "lib/images/lyx.png" \ + "${pkgdir}/usr/share/pixmaps/lyx.png" + + # 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" +} diff --git a/testing/lyx/lyx.desktop b/testing/lyx/lyx.desktop new file mode 100644 index 000000000..649b30c98 --- /dev/null +++ b/testing/lyx/lyx.desktop @@ -0,0 +1,14 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=LyX Document Processor +GenericName=Document Processor +Comment=High level LaTeX frontend +Exec=lyx %F +TryExec=lyx +Icon=lyx +StartupNotify=false +StartupWMClass=Lyx +Terminal=false +Categories=Office;WordProcessor;Qt; +MimeType=text/x-lyx;application/x-lyx; diff --git a/testing/lyx/lyx.install b/testing/lyx/lyx.install new file mode 100644 index 000000000..c15c17b3a --- /dev/null +++ b/testing/lyx/lyx.install @@ -0,0 +1,14 @@ +post_install() { + update-desktop-database -q +} + +post_upgrade() { + post_install +} + +post_remove () { + post_install +} + + + diff --git a/testing/lyx/lyxrc.dist b/testing/lyx/lyxrc.dist new file mode 100644 index 000000000..dd18694f9 --- /dev/null +++ b/testing/lyx/lyxrc.dist @@ -0,0 +1,14 @@ +### This file is part of +### ======================================================== +### LyX, The Document Processor +### +### Copyright 1995 Matthias Ettrich +### Copyright 1995-2011 The LyX Team. +### +### ======================================================== + +# The file lyxrc.dist gives initial global options for all LyX users. +# Almost all settings here can be overridden through the preferences in LyX. + +\thesaurusdir_path "/usr/share/mythes" +\hunspelldir_path "/usr/share/myspell" -- cgit v1.2.3-54-g00ecf