wok-current view emacs-pkg-lua-mode/receipt @ rev 5934
netsurf: add missing file.
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Fri Jul 30 22:41:51 2010 +0200 (2010-07-30) |
parents | 4cf5da7c32ac |
children | 805d7c16ae38 |
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"
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 }