wok view emacs-pkg-lua-mode/receipt @ rev 8335
tazpkg now depends on libtaz
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Wed Feb 02 00:58:48 2011 +0100 (2011-02-02) |
parents | c6f1305ec65d |
children | cb0af9eb8bcb |
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 SOURCE="lua-mode"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://lua-mode.luaforge.net"
12 WGET_URL="http://luaforge.net/frs/download.php/2724/$TARBALL"
13 TAGS="emacs lua"
16 # Rules to gen a SliTaz package suitable for Tazpkg.
17 genpkg_rules()
18 {
19 echo -n "Installing lua-mode"
20 mkdir -p $fs/usr/share/emacs/site-lisp/lua-mode && \
21 cp $WOK/$PACKAGE/*.el $fs/usr/share/emacs/site-lisp/lua-mode
22 status
24 echo -n "Installing start file"
25 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \
26 cp stuff/*.el $fs/usr/share/emacs/site-lisp/site-start.d
27 status
28 }
30 post_install()
31 {
32 # byte-compile files, remove src
33 cd /usr/share/emacs/site-lisp/lua-mode/
34 for file in *.el ; do
35 echo -n "Byte-compiling $file"
36 emacs -batch -f batch-byte-compile $file 2> /dev/null
37 status
38 rm -f $file
39 done
40 tazpkg reconfigure emacs
41 }
43 pre_remove()
44 {
45 # remove byte-compiled files,
46 # created by post_install()
47 cd /usr/share/emacs/site-lisp/lua-mode/
48 for file in *.elc ; do
49 echo -n "Deleting byte-compiled code $file"
50 touch "$file" "`basename $file .elc`.el"
51 rm -f $file
52 status
53 done
54 }
56 post_remove()
57 {
58 tazpkg reconfigure emacs
59 }