[arch-commits] Commit in lyx/trunk (PKGBUILD)

Ronald van Haren ronald at nymeria.archlinux.org
Wed Mar 26 20:31:28 UTC 2014


    Date: Wednesday, March 26, 2014 @ 21:31:28
  Author: ronald
Revision: 208767

upgpkg: lyx 2.0.7.1-1

update to 2.0.7.1

Modified:
  lyx/trunk/PKGBUILD

----------+
 PKGBUILD |   13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-03-26 20:21:18 UTC (rev 208766)
+++ PKGBUILD	2014-03-26 20:31:28 UTC (rev 208767)
@@ -3,7 +3,7 @@
 # Contributor: Jason Chu <jason at archlinux.org>
 
 pkgname=lyx
-pkgver=2.0.7
+pkgver=2.0.7.1
 pkgrel=1
 pkgdesc="An advanced WYSIWYM document processor & LaTeX front-end"
 arch=('i686' 'x86_64')
@@ -18,14 +18,18 @@
 options=('emptydirs')
 source=(ftp://ftp.lip6.fr/pub/lyx/stable/2.0.x/$pkgname-$pkgver.tar.xz
         lyx.desktop lyxrc.dist)
-sha1sums=('4d54eb0cf98b0a44b5156ec84932e58c9c0efb07'
+sha1sums=('fd24172f3b5daf42ad8d3ab3dbaafe2cefaf1c18'
           'e2b8f6d6cdeec41e1d5795167f5557e4a6ea28ad'
           '56416642cc3da2a13b87b84e6b87c1a239f3d09a')
 
-build() {
+prepare() {
   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
+}
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
   export CXXFLAGS="$CXXFLAGS -fpermissive"
   ./configure --prefix=/usr \
     --with-frontend=qt4 --without-included-boost \
@@ -35,15 +39,12 @@
 
 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"




More information about the arch-commits mailing list