wok-current view emacs-pkg-lua-mode/receipt @ rev 6926

Up: git to 1.7.3.2.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Oct 22 17:13:31 2010 +0000 (2010-10-22)
parents 979a5ed3bfd6
children c6f1305ec65d
line source
1 # SliTaz package receipt.
3 PACKAGE="emacs-pkg-lua-mode"
4 VERSION="20100404"
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 SOURCE="lua-mode"
11 TARBALL="$SOURCE-$VERSION.tar.gz"
12 WEB_SITE="http://lua-mode.luaforge.net"
13 WGET_URL="http://luaforge.net/frs/download.php/2724/$TARBALL"
14 TAGS="emacs lua"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 echo -n "Byte-compilating lua-mode.el"
20 emacs -batch -f batch-byte-compile $WOK/$PACKAGE/$SOURCE.el 2> /dev/null
21 status
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 echo -n "Installing lua-mode"
28 mkdir -p $fs/usr/share/emacs/site-lisp/lua-mode && \
29 cp $WOK/$PACKAGE/*.elc $fs/usr/share/emacs/site-lisp/lua-mode
30 status
31 echo -n "Installing start file"
32 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \
33 cp stuff/*.el $fs/usr/share/emacs/site-lisp/site-start.d
34 status
35 }
37 post_install()
38 {
39 tazpkg reconfigure emacs
40 }
42 post_remove()
43 {
44 tazpkg reconfigure emacs
45 }