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

Up: emacs-pkg-lua-mode to 20100617
author Dominique Corbex <domcox@slitaz.org>
date Mon Jan 24 20:40:25 2011 +0100 (2011-01-24)
parents 805d7c16ae38
children 6fa87be78418
line source
1 # SliTaz package receipt.
3 PACKAGE="emacs-pkg-lua-mode"
4 VERSION="20100617"
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"
17 # Rules to gen a SliTaz package suitable for Tazpkg.
18 genpkg_rules()
19 {
20 echo -n "Installing lua-mode"
21 mkdir -p $fs/usr/share/emacs/site-lisp/lua-mode && \
22 cp $WOK/$PACKAGE/*.el $fs/usr/share/emacs/site-lisp/lua-mode
23 status
25 echo -n "Installing start file"
26 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \
27 cp stuff/*.el $fs/usr/share/emacs/site-lisp/site-start.d
28 status
29 }
31 post_install()
32 {
33 # byte-compile files, remove src
34 cd /usr/share/emacs/site-lisp/lua-mode/
35 for file in *.el ; do
36 echo -n "Byte-compiling $file"
37 emacs -batch -f batch-byte-compile $file 2> /dev/null
38 status
39 rm -f $file
40 done
41 tazpkg reconfigure emacs
42 }
44 pre_remove()
45 {
46 # remove byte-compiled files,
47 # created by post_install()
48 cd /usr/share/emacs/site-lisp/lua-mode/
49 for file in *.elc ; do
50 echo -n "Deleting byte-compiled code $file"
51 touch "$file" "`basename $file .elc`.el"
52 rm -f $file
53 status
54 done
55 }
57 post_remove()
58 {
59 tazpkg reconfigure emacs
60 }