wok-next view emacs-pkg-lua-mode/receipt @ rev 21569
updated cryptopp (5.6.5 -> 8.2.0)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Jun 22 16:34:56 2020 +0100 (2020-06-22) |
parents | d5aab818505e |
children |
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 HOST_ARCH="any"
11 REPOLOGY="emacs-lua-mode"
13 BUILD_DEPENDS="emacs"
14 TAGS="emacs lua"
16 DEPENDS="emacs"
18 genpkg_rules() {
19 echo -n "Installing start file"
20 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d &&
21 cp -a $stuff/90-lua-mode.el $fs/usr/share/emacs/site-lisp/site-start.d
22 status
24 echo -n "Installing lua-mode"
25 mkdir -p $fs/usr/share/emacs/site-lisp/lua-mode &&
26 cp -a $stuff/lua-mode.el $fs/usr/share/emacs/site-lisp/lua-mode
27 status
29 # byte-compile files, remove src
30 for file in $fs/usr/share/emacs/site-lisp/lua-mode/*.el; do
31 echo -n "Byte-compiling $(basename file)"
32 emacs -batch -f batch-byte-compile $file 2> /dev/null; err=$?
33 status
34 [ "$err" = "0" ] && rm -f $file
35 done
36 true
37 }
39 post_install() {
40 chroot "$1/" tazpkg reconfigure emacs
41 }
43 post_remove() {
44 chroot "$1/" tazpkg reconfigure emacs
45 }