wok-current annotate emacs-pkg-lua-mode/receipt @ rev 8754

Up: gegl to 0.1.6.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Feb 20 08:18:54 2011 +0000 (2011-02-20)
parents c6f1305ec65d
children cb0af9eb8bcb
rev   line source
domcox@3938 1 # SliTaz package receipt.
domcox@3938 2
domcox@3938 3 PACKAGE="emacs-pkg-lua-mode"
domcox@8127 4 VERSION="20100617"
domcox@3938 5 CATEGORY="development"
domcox@3938 6 SHORT_DESC="An Emacs major mode for editing Lua code."
domcox@3938 7 MAINTAINER="domcox@slitaz.org"
domcox@3938 8 DEPENDS="emacs"
domcox@3938 9 SOURCE="lua-mode"
domcox@3938 10 TARBALL="$SOURCE-$VERSION.tar.gz"
domcox@3938 11 WEB_SITE="http://lua-mode.luaforge.net"
domcox@3938 12 WGET_URL="http://luaforge.net/frs/download.php/2724/$TARBALL"
domcox@6096 13 TAGS="emacs lua"
domcox@3938 14
domcox@3938 15
domcox@3938 16 # Rules to gen a SliTaz package suitable for Tazpkg.
domcox@3938 17 genpkg_rules()
domcox@3938 18 {
domcox@3938 19 echo -n "Installing lua-mode"
domcox@3938 20 mkdir -p $fs/usr/share/emacs/site-lisp/lua-mode && \
domcox@8127 21 cp $WOK/$PACKAGE/*.el $fs/usr/share/emacs/site-lisp/lua-mode
domcox@3938 22 status
domcox@8127 23
domcox@3938 24 echo -n "Installing start file"
domcox@3938 25 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \
domcox@3938 26 cp stuff/*.el $fs/usr/share/emacs/site-lisp/site-start.d
domcox@3938 27 status
domcox@3938 28 }
domcox@3939 29
domcox@3939 30 post_install()
domcox@3939 31 {
domcox@8127 32 # byte-compile files, remove src
domcox@8127 33 cd /usr/share/emacs/site-lisp/lua-mode/
domcox@8127 34 for file in *.el ; do
domcox@8127 35 echo -n "Byte-compiling $file"
domcox@8127 36 emacs -batch -f batch-byte-compile $file 2> /dev/null
domcox@8127 37 status
domcox@8127 38 rm -f $file
domcox@8127 39 done
domcox@3939 40 tazpkg reconfigure emacs
domcox@3939 41 }
domcox@3939 42
domcox@8127 43 pre_remove()
domcox@8127 44 {
domcox@8127 45 # remove byte-compiled files,
domcox@8127 46 # created by post_install()
domcox@8127 47 cd /usr/share/emacs/site-lisp/lua-mode/
domcox@8127 48 for file in *.elc ; do
domcox@8127 49 echo -n "Deleting byte-compiled code $file"
domcox@8127 50 touch "$file" "`basename $file .elc`.el"
domcox@8127 51 rm -f $file
domcox@8127 52 status
domcox@8127 53 done
domcox@8127 54 }
domcox@8127 55
domcox@3939 56 post_remove()
domcox@3939 57 {
domcox@3939 58 tazpkg reconfigure emacs
domcox@3939 59 }