wok-next view emacs-pkg-lua-mode/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | d958fec46c9f |
children | 0cbe4b1f2230 |
line source
1 # SliTaz package receipt.
3 PACKAGE="emacs-pkg-lua-mode"
4 VERSION="20111107"
5 CATEGORY="development"
6 SHORT_DESC="An Emacs major mode for editing Lua code"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://immerrr.github.io/lua-mode/"
10 REPOLOGY="emacs-lua-mode"
12 BUILD_DEPENDS="emacs"
13 TAGS="emacs lua"
15 DEPENDS="emacs"
17 genpkg_rules() {
18 echo -n "Installing start file"
19 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d &&
20 cp -a $stuff/90-lua-mode.el $fs/usr/share/emacs/site-lisp/site-start.d
21 status
23 echo -n "Installing lua-mode"
24 mkdir -p $fs/usr/share/emacs/site-lisp/lua-mode &&
25 cp -a $stuff/lua-mode.el $fs/usr/share/emacs/site-lisp/lua-mode
26 status
28 # byte-compile files, remove src
29 for file in $fs/usr/share/emacs/site-lisp/lua-mode/*.el; do
30 echo -n "Byte-compiling $(basename file)"
31 emacs -batch -f batch-byte-compile $file 2> /dev/null; err=$?
32 status
33 [ "$err" = "0" ] && rm -f $file
34 done
35 true
36 }
38 post_install() {
39 chroot "$1/" tazpkg reconfigure emacs
40 }
42 post_remove() {
43 chroot "$1/" tazpkg reconfigure emacs
44 }