wok view emacs-pkg-lua-mode/receipt @ rev 14614
Up: php to 5.4.13.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Jun 01 06:40:14 2013 +0000 (2013-06-01) |
parents | 11e8d8600d29 |
children | 223b265f40fd |
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 true
35 }
37 post_install()
38 {
39 tazpkg reconfigure emacs
40 }
42 post_remove()
43 {
44 tazpkg reconfigure emacs
45 }