[arch-commits] Commit in emacs-muse/trunk (PKGBUILD emacs-muse.install)

Sergej Pupykin spupykin at nymeria.archlinux.org
Fri Jul 26 15:35:07 UTC 2013


    Date: Friday, July 26, 2013 @ 17:35:07
  Author: spupykin
Revision: 94541

upgpkg: emacs-muse 3.20-4

upd

Modified:
  emacs-muse/trunk/PKGBUILD
  emacs-muse/trunk/emacs-muse.install

--------------------+
 PKGBUILD           |   11 +++++++----
 emacs-muse.install |   14 ++++++++++++++
 2 files changed, 21 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-07-26 15:18:03 UTC (rev 94540)
+++ PKGBUILD	2013-07-26 15:35:07 UTC (rev 94541)
@@ -3,8 +3,9 @@
 # Contributor:  Gour <gour at mail.inet.hr>
 
 pkgname=emacs-muse
+_pkgname=muse
 pkgver=3.20
-pkgrel=3
+pkgrel=4
 pkgdesc="Publishing environment for Emacs"
 url="http://mwolson.org/projects/EmacsMuse.html"
 arch=('any')
@@ -14,14 +15,16 @@
 source=(http://download.gna.org/muse-el/muse-$pkgver.tar.gz)
 md5sums=('aa43de43f4437e7979ffbb708180b2e9')
 
-build() {
+prepare() {
   cd $srcdir/muse-$pkgver
-
   # python2 fix
   sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' experimental/muse-mathml.el
-
   cp Makefile.defs.default Makefile.defs
   sed -i -e "s|\(PREFIX.*= \)/usr/local|\1/usr|" Makefile.defs
+}
+
+build() {
+  cd $srcdir/muse-$pkgver
   make
 }
 

Modified: emacs-muse.install
===================================================================
--- emacs-muse.install	2013-07-26 15:18:03 UTC (rev 94540)
+++ emacs-muse.install	2013-07-26 15:35:07 UTC (rev 94541)
@@ -1,4 +1,11 @@
+infodir=usr/share/info
+filelist=(muse.info)
+
 post_install() {
+  [[ -x usr/bin/install-info ]] || return 0
+  for file in "${filelist[@]}"; do
+    install-info "$infodir/$file.gz" "$infodir/dir" 2> /dev/null
+  done
 cat << EOF
 ==> In order to use Muse,  add the following lines to your ~/.emacs file
 ==> depending on the styles you wish to use (see manual for more details):
@@ -16,3 +23,10 @@
 post_upgrade() {
   post_install $1
 }
+
+pre_remove() {
+  [[ -x usr/bin/install-info ]] || return 0
+  for file in "${filelist[@]}"; do
+    install-info --delete "$infodir/$file.gz" "$infodir/dir" 2> /dev/null
+  done
+}




More information about the arch-commits mailing list