wok-next annotate emacs-pkg-lua-mode/receipt @ rev 14193
emacs-pkg-lua-mode: tidy receipt
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Tue Mar 12 23:04:56 2013 +0100 (2013-03-12) |
parents | b970647424eb |
children | 4e8a13288f6b |
rev | line source |
---|---|
domcox@3938 | 1 # SliTaz package receipt. |
domcox@3938 | 2 |
domcox@3938 | 3 PACKAGE="emacs-pkg-lua-mode" |
domcox@14000 | 4 VERSION="20111107" |
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@14093 | 9 BUILD_DEPENDS="emacs" |
domcox@14086 | 10 WEB_SITE="http://immerrr.github.com/lua-mode/" |
domcox@6096 | 11 TAGS="emacs lua" |
domcox@3938 | 12 |
domcox@3938 | 13 |
domcox@3938 | 14 # Rules to gen a SliTaz package suitable for Tazpkg. |
domcox@3938 | 15 genpkg_rules() |
domcox@3938 | 16 { |
domcox@14086 | 17 echo -n "Installing start file" |
domcox@14086 | 18 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \ |
domcox@14086 | 19 cp -a $stuff/90-lua-mode.el $fs/usr/share/emacs/site-lisp/site-start.d |
domcox@14086 | 20 status |
domcox@14086 | 21 |
domcox@3938 | 22 echo -n "Installing lua-mode" |
domcox@3938 | 23 mkdir -p $fs/usr/share/emacs/site-lisp/lua-mode && \ |
domcox@14086 | 24 cp -a $stuff/lua-mode.el $fs/usr/share/emacs/site-lisp/lua-mode |
domcox@3938 | 25 status |
domcox@8127 | 26 |
domcox@8127 | 27 # byte-compile files, remove src |
domcox@14193 | 28 for file in $fs/usr/share/emacs/site-lisp/lua-mode/*.el ; do |
domcox@14193 | 29 echo -n "Byte-compiling $(basename file)" |
domcox@14193 | 30 emacs -batch -f batch-byte-compile $file 2> /dev/null; err=$? |
domcox@8127 | 31 status |
domcox@14193 | 32 [ "$err" = "0" ] && rm -f $file |
domcox@8127 | 33 done |
domcox@3939 | 34 } |
domcox@3939 | 35 |
domcox@14086 | 36 post_install() |
domcox@8127 | 37 { |
domcox@14086 | 38 tazpkg reconfigure emacs |
domcox@8127 | 39 } |
domcox@8127 | 40 |
domcox@3939 | 41 post_remove() |
domcox@3939 | 42 { |
domcox@3939 | 43 tazpkg reconfigure emacs |
domcox@3939 | 44 } |