wok-6.x view emacs-pkg-lua-mode/receipt @ rev 11670

Up: youtube-dl to 2012.01.08b.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Feb 17 14:36:38 2012 -0500 (2012-02-17)
parents 6585bd69dddb
children 755fb3544005
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"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 mkdir -p $DESTDIR
19 cp -a $src/*.el $DESTDIR/
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 echo -n "Installing lua-mode"
26 mkdir -p $fs/usr/share/emacs/site-lisp/lua-mode && \
27 cp $_pkg/*.el $fs/usr/share/emacs/site-lisp/lua-mode
28 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 # byte-compile files, remove src
39 cd /usr/share/emacs/site-lisp/lua-mode/
40 for file in *.el ; do
41 echo -n "Byte-compiling $file"
42 emacs -batch -f batch-byte-compile $file 2> /dev/null
43 status
44 rm -f $file
45 done
46 tazpkg reconfigure emacs
47 }
49 pre_remove()
50 {
51 # remove byte-compiled files,
52 # created by post_install()
53 cd /usr/share/emacs/site-lisp/lua-mode/
54 for file in *.elc ; do
55 echo -n "Deleting byte-compiled code $file"
56 touch "$file" "`basename $file .elc`.el"
57 rm -f $file
58 status
59 done
60 }
62 post_remove()
63 {
64 tazpkg reconfigure emacs
65 }