wok-6.x annotate 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 |
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 BUILD_DEPENDS="emacs" |
domcox@3938 | 10 SOURCE="lua-mode" |
domcox@3938 | 11 TARBALL="$SOURCE-$VERSION.tar.gz" |
domcox@3938 | 12 WEB_SITE="http://lua-mode.luaforge.net" |
domcox@3938 | 13 WGET_URL="http://luaforge.net/frs/download.php/2724/$TARBALL" |
domcox@6096 | 14 TAGS="emacs lua" |
domcox@3938 | 15 |
domcox@3938 | 16 |
domcox@3938 | 17 # Rules to gen a SliTaz package suitable for Tazpkg. |
domcox@3938 | 18 genpkg_rules() |
domcox@3938 | 19 { |
domcox@3938 | 20 echo -n "Installing lua-mode" |
domcox@3938 | 21 mkdir -p $fs/usr/share/emacs/site-lisp/lua-mode && \ |
domcox@8127 | 22 cp $WOK/$PACKAGE/*.el $fs/usr/share/emacs/site-lisp/lua-mode |
domcox@3938 | 23 status |
domcox@8127 | 24 |
domcox@3938 | 25 echo -n "Installing start file" |
domcox@3938 | 26 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \ |
domcox@3938 | 27 cp stuff/*.el $fs/usr/share/emacs/site-lisp/site-start.d |
domcox@3938 | 28 status |
domcox@3938 | 29 } |
domcox@3939 | 30 |
domcox@3939 | 31 post_install() |
domcox@3939 | 32 { |
domcox@8127 | 33 # byte-compile files, remove src |
domcox@8127 | 34 cd /usr/share/emacs/site-lisp/lua-mode/ |
domcox@8127 | 35 for file in *.el ; do |
domcox@8127 | 36 echo -n "Byte-compiling $file" |
domcox@8127 | 37 emacs -batch -f batch-byte-compile $file 2> /dev/null |
domcox@8127 | 38 status |
domcox@8127 | 39 rm -f $file |
domcox@8127 | 40 done |
domcox@3939 | 41 tazpkg reconfigure emacs |
domcox@3939 | 42 } |
domcox@3939 | 43 |
domcox@8127 | 44 pre_remove() |
domcox@8127 | 45 { |
domcox@8127 | 46 # remove byte-compiled files, |
domcox@8127 | 47 # created by post_install() |
domcox@8127 | 48 cd /usr/share/emacs/site-lisp/lua-mode/ |
domcox@8127 | 49 for file in *.elc ; do |
domcox@8127 | 50 echo -n "Deleting byte-compiled code $file" |
domcox@8127 | 51 touch "$file" "`basename $file .elc`.el" |
domcox@8127 | 52 rm -f $file |
domcox@8127 | 53 status |
domcox@8127 | 54 done |
domcox@8127 | 55 } |
domcox@8127 | 56 |
domcox@3939 | 57 post_remove() |
domcox@3939 | 58 { |
domcox@3939 | 59 tazpkg reconfigure emacs |
domcox@3939 | 60 } |