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