wok-6.x annotate emacs-pkg-lua-mode/receipt @ rev 14000
Up: emacs-pkg-lua-mode (20111107)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Thu Feb 14 13:36:00 2013 +0100 (2013-02-14) |
parents | f6b0df74c928 |
children | d0643861276a |
rev | line source |
---|---|
domcox@3938 | 1 # SliTaz package receipt. |
domcox@3938 | 2 |
domcox@3938 | 3 PACKAGE="emacs-pkg-lua-mode" |
domcox@14000 | 4 VERSION="20111107" |
domcox@3938 | 5 CATEGORY="development" |
domcox@3938 | 6 SHORT_DESC="An Emacs major mode for editing Lua code." |
domcox@3938 | 7 MAINTAINER="domcox@slitaz.org" |
domcox@3938 | 8 DEPENDS="emacs" |
domcox@3938 | 9 WEB_SITE="http://lua-mode.luaforge.net" |
domcox@6096 | 10 TAGS="emacs lua" |
domcox@3938 | 11 |
domcox@3938 | 12 |
domcox@3938 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
domcox@3938 | 14 genpkg_rules() |
domcox@3938 | 15 { |
domcox@3938 | 16 echo -n "Installing lua-mode" |
domcox@3938 | 17 mkdir -p $fs/usr/share/emacs/site-lisp/lua-mode && \ |
domcox@14000 | 18 cp $stuff/lua-mode.el $fs/usr/share/emacs/site-lisp/lua-mode |
domcox@3938 | 19 status |
domcox@8127 | 20 |
domcox@3938 | 21 echo -n "Installing start file" |
domcox@3938 | 22 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \ |
domcox@14000 | 23 cp $stuff/90-lua-mode.el $fs/usr/share/emacs/site-lisp/site-start.d |
domcox@3938 | 24 status |
domcox@3938 | 25 } |
domcox@3939 | 26 |
domcox@3939 | 27 post_install() |
domcox@3939 | 28 { |
domcox@8127 | 29 # byte-compile files, remove src |
domcox@8127 | 30 cd /usr/share/emacs/site-lisp/lua-mode/ |
domcox@8127 | 31 for file in *.el ; do |
domcox@8127 | 32 echo -n "Byte-compiling $file" |
domcox@8127 | 33 emacs -batch -f batch-byte-compile $file 2> /dev/null |
domcox@8127 | 34 status |
domcox@8127 | 35 rm -f $file |
domcox@8127 | 36 done |
domcox@3939 | 37 tazpkg reconfigure emacs |
domcox@3939 | 38 } |
domcox@3939 | 39 |
domcox@8127 | 40 pre_remove() |
domcox@8127 | 41 { |
domcox@8127 | 42 # remove byte-compiled files, |
domcox@8127 | 43 # created by post_install() |
domcox@8127 | 44 cd /usr/share/emacs/site-lisp/lua-mode/ |
domcox@8127 | 45 for file in *.elc ; do |
domcox@8127 | 46 echo -n "Deleting byte-compiled code $file" |
domcox@8127 | 47 touch "$file" "`basename $file .elc`.el" |
domcox@8127 | 48 rm -f $file |
domcox@8127 | 49 status |
domcox@8127 | 50 done |
domcox@8127 | 51 } |
domcox@8127 | 52 |
domcox@3939 | 53 post_remove() |
domcox@3939 | 54 { |
domcox@3939 | 55 tazpkg reconfigure emacs |
domcox@3939 | 56 } |