wok-next annotate emacs-pkg-lua-mode/receipt @ rev 14297
Up: embryo-dev (1.7.5)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sun Apr 07 10:08:46 2013 +0200 (2013-04-07) |
parents | 11e8d8600d29 |
children | 223b265f40fd |
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 |
pascal@14196 | 34 true |
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 } |