wok view emacs-pkg-lua-mode/receipt @ rev 14193
emacs-pkg-lua-mode: tidy receipt
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Tue Mar 12 23:04:56 2013 +0100 (2013-03-12) |
parents | b970647424eb |
children | 4e8a13288f6b |
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 BUILD_DEPENDS="emacs"
10 WEB_SITE="http://immerrr.github.com/lua-mode/"
11 TAGS="emacs lua"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 echo -n "Installing start file"
18 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \
19 cp -a $stuff/90-lua-mode.el $fs/usr/share/emacs/site-lisp/site-start.d
20 status
22 echo -n "Installing lua-mode"
23 mkdir -p $fs/usr/share/emacs/site-lisp/lua-mode && \
24 cp -a $stuff/lua-mode.el $fs/usr/share/emacs/site-lisp/lua-mode
25 status
27 # byte-compile files, remove src
28 for file in $fs/usr/share/emacs/site-lisp/lua-mode/*.el ; do
29 echo -n "Byte-compiling $(basename file)"
30 emacs -batch -f batch-byte-compile $file 2> /dev/null; err=$?
31 status
32 [ "$err" = "0" ] && rm -f $file
33 done
34 }
36 post_install()
37 {
38 tazpkg reconfigure emacs
39 }
41 post_remove()
42 {
43 tazpkg reconfigure emacs
44 }