# HG changeset patch # User Dominique Corbex # Date 1361564131 -3600 # Node ID e439deff3a85865b3e5910c4a6c1bc0b4cd937df # Parent d0643861276afb1bafcfe334255762b64a1d5b6d Up: emacs-pkg-po-mode: tidy receipt diff -r d0643861276a -r e439deff3a85 emacs-pkg-po-mode/receipt --- a/emacs-pkg-po-mode/receipt Fri Feb 22 21:14:47 2013 +0100 +++ b/emacs-pkg-po-mode/receipt Fri Feb 22 21:15:31 2013 +0100 @@ -13,42 +13,30 @@ # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { + echo -n "Installing start file" + mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \ + cp -a $src/gettext-tools/misc/start-po.el \ + $fs/usr/share/emacs/site-lisp/site-start.d/50-start-po.el + status + echo -n "Installing po-mode" mkdir -p $fs/usr/share/emacs/site-lisp/po-mode && \ cp -a $src/gettext-tools/misc/po*.el $fs/usr/share/emacs/site-lisp/po-mode status - echo -n "Installing start file" - mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \ - cp -a $src/gettext-tools/misc/start-po.el \ - $fs/usr/share/emacs/site-lisp/site-start.d/50-start-po.el - status -} - -post_install() -{ # byte-compile files, remove src - cd /usr/share/emacs/site-lisp/po-mode/ + cd $fs/usr/share/emacs/site-lisp/po-mode/ for file in *.el ; do echo -n "Byte-compiling $file" emacs -batch -f batch-byte-compile $file 2> /dev/null status rm -f $file done - tazpkg reconfigure emacs } -pre_remove() +post_install() { - # remove byte-compiled files, - # created by post_install() - cd /usr/share/emacs/site-lisp/po-mode/ - for file in *.elc ; do - echo -n "Deleting byte-compiled code $file" - touch "$file" "`basename $file .elc`.el" - rm -f $file - status - done + tazpkg reconfigure emacs } post_remove()