wok-6.x annotate emacs-pkg-lua-mode/receipt @ rev 15384
Add licenses
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Mon Oct 21 23:10:53 2013 +0200 (2013-10-21) |
parents | 4e8a13288f6b |
children | dfef8de3d270 |
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" |
pascal@15202 | 8 LICENSE="GPL3" |
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 |
pascal@15202 | 13 DEPENDS="emacs" |
domcox@3938 | 14 |
domcox@3938 | 15 # Rules to gen a SliTaz package suitable for Tazpkg. |
domcox@3938 | 16 genpkg_rules() |
domcox@3938 | 17 { |
domcox@14086 | 18 echo -n "Installing start file" |
domcox@14086 | 19 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \ |
domcox@14086 | 20 cp -a $stuff/90-lua-mode.el $fs/usr/share/emacs/site-lisp/site-start.d |
domcox@14086 | 21 status |
domcox@14086 | 22 |
domcox@3938 | 23 echo -n "Installing lua-mode" |
domcox@3938 | 24 mkdir -p $fs/usr/share/emacs/site-lisp/lua-mode && \ |
domcox@14086 | 25 cp -a $stuff/lua-mode.el $fs/usr/share/emacs/site-lisp/lua-mode |
domcox@3938 | 26 status |
domcox@8127 | 27 |
domcox@8127 | 28 # byte-compile files, remove src |
domcox@14193 | 29 for file in $fs/usr/share/emacs/site-lisp/lua-mode/*.el ; do |
domcox@14193 | 30 echo -n "Byte-compiling $(basename file)" |
domcox@14193 | 31 emacs -batch -f batch-byte-compile $file 2> /dev/null; err=$? |
domcox@8127 | 32 status |
domcox@14193 | 33 [ "$err" = "0" ] && rm -f $file |
domcox@8127 | 34 done |
pascal@14196 | 35 true |
domcox@3939 | 36 } |
domcox@3939 | 37 |
domcox@14086 | 38 post_install() |
domcox@8127 | 39 { |
domcox@14086 | 40 tazpkg reconfigure emacs |
domcox@8127 | 41 } |
domcox@8127 | 42 |
domcox@3939 | 43 post_remove() |
domcox@3939 | 44 { |
domcox@3939 | 45 tazpkg reconfigure emacs |
domcox@3939 | 46 } |