wok-next annotate emacs-pkg-lua-mode/receipt @ rev 14093
emacs-pkg-lua-mode: fix bdeps
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Fri Feb 22 23:00:56 2013 +0100 (2013-02-22) |
parents | d0643861276a |
children | 11e8d8600d29 |
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@14086 | 28 cd $fs/usr/share/emacs/site-lisp/lua-mode |
domcox@8127 | 29 for file in *.el ; do |
domcox@8127 | 30 echo -n "Byte-compiling $file" |
domcox@8127 | 31 emacs -batch -f batch-byte-compile $file 2> /dev/null |
domcox@8127 | 32 status |
domcox@8127 | 33 rm -f $file |
domcox@8127 | 34 done |
domcox@3939 | 35 } |
domcox@3939 | 36 |
domcox@14086 | 37 post_install() |
domcox@8127 | 38 { |
domcox@14086 | 39 tazpkg reconfigure emacs |
domcox@8127 | 40 } |
domcox@8127 | 41 |
domcox@3939 | 42 post_remove() |
domcox@3939 | 43 { |
domcox@3939 | 44 tazpkg reconfigure emacs |
domcox@3939 | 45 } |