wok view emacs-pkg-lua-mode/receipt @ rev 14086

Up: emacs-pkg-lua-mode: tidy receipt
author Dominique Corbex <domcox@slitaz.org>
date Fri Feb 22 21:14:47 2013 +0100 (2013-02-22)
parents 755fb3544005
children b970647424eb
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://immerrr.github.com/lua-mode/"
10 TAGS="emacs lua"
13 # Rules to gen a SliTaz package suitable for Tazpkg.
14 genpkg_rules()
15 {
16 echo -n "Installing start file"
17 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \
18 cp -a $stuff/90-lua-mode.el $fs/usr/share/emacs/site-lisp/site-start.d
19 status
21 echo -n "Installing lua-mode"
22 mkdir -p $fs/usr/share/emacs/site-lisp/lua-mode && \
23 cp -a $stuff/lua-mode.el $fs/usr/share/emacs/site-lisp/lua-mode
24 status
26 # byte-compile files, remove src
27 cd $fs/usr/share/emacs/site-lisp/lua-mode
28 for file in *.el ; do
29 echo -n "Byte-compiling $file"
30 emacs -batch -f batch-byte-compile $file 2> /dev/null
31 status
32 rm -f $file
33 done
34 }
36 post_install()
37 {
38 tazpkg reconfigure emacs
39 }
41 post_remove()
42 {
43 tazpkg reconfigure emacs
44 }