# HG changeset patch # User Dominique Corbex # Date 1361564153 -3600 # Node ID 62aaad21141dfb3c7e57aab7358ca645aebae80c # Parent e439deff3a85865b3e5910c4a6c1bc0b4cd937df Up: emacs-pkg-vala-mode: tidy receipt diff -r e439deff3a85 -r 62aaad21141d emacs-pkg-vala-mode/receipt --- a/emacs-pkg-vala-mode/receipt Fri Feb 22 21:15:31 2013 +0100 +++ b/emacs-pkg-vala-mode/receipt Fri Feb 22 21:15:53 2013 +0100 @@ -13,15 +13,24 @@ # 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 stuff/80-vala-init.el $fs/usr/share/emacs/site-lisp/site-start.d + status + echo -n "Installing vala-mode" mkdir -p $fs/usr/share/emacs/site-lisp/vala-mode && \ - cp stuff/vala-mode.el $fs/usr/share/emacs/site-lisp/vala-mode + cp -a stuff/vala-mode.el $fs/usr/share/emacs/site-lisp/vala-mode status - echo -n "Installing start file" - mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \ - cp stuff/80-vala-init.el $fs/usr/share/emacs/site-lisp/site-start.d - status + # byte-compile files, remove src + cd $fs/usr/share/emacs/site-lisp/vala-mode/ + for file in vala*.el ; do + echo -n "Byte-compiling $file" + emacs -batch -f batch-byte-compile $file 2> /dev/null + status + rm -f $file + done } post_install()