wok-next view emacs-pkg-lua-mode/receipt @ rev 4642

Up: apr (1.3.9) security fix.
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Sat Dec 26 10:37:24 2009 +0100 (2009-12-26)
parents 6aae08641f1e
children 979a5ed3bfd6
line source
1 # SliTaz package receipt.
3 PACKAGE="emacs-pkg-lua-mode"
4 VERSION="20071122"
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"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 echo -n "Byte-compilating lua-mode.el"
19 emacs -batch -f batch-byte-compile $WOK/$PACKAGE/$SOURCE.el 2> /dev/null
20 status
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 echo -n "Installing lua-mode"
27 mkdir -p $fs/usr/share/emacs/site-lisp/lua-mode && \
28 cp $WOK/$PACKAGE/*.elc $fs/usr/share/emacs/site-lisp/lua-mode
29 status
30 echo -n "Installing start file"
31 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \
32 cp stuff/*.el $fs/usr/share/emacs/site-lisp/site-start.d
33 status
34 }
36 post_install()
37 {
38 tazpkg reconfigure emacs
39 }
41 post_remove()
42 {
43 tazpkg reconfigure emacs
44 }