wok-next view emacs-pkg-lua-mode/receipt @ rev 20882

Check Repology info from a* to g* packages
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Jul 10 20:08:05 2018 +0300 (2018-07-10)
parents dfef8de3d270
children d5aab818505e
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="domcox@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://immerrr.github.com/lua-mode/"
10 REPOLOGY="emacs-lua-mode"
12 BUILD_DEPENDS="emacs"
13 TAGS="emacs lua"
15 DEPENDS="emacs"
17 # Rules to gen a SliTaz package suitable for Tazpkg.
18 genpkg_rules()
19 {
20 echo -n "Installing start file"
21 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \
22 cp -a $stuff/90-lua-mode.el $fs/usr/share/emacs/site-lisp/site-start.d
23 status
25 echo -n "Installing lua-mode"
26 mkdir -p $fs/usr/share/emacs/site-lisp/lua-mode && \
27 cp -a $stuff/lua-mode.el $fs/usr/share/emacs/site-lisp/lua-mode
28 status
30 # byte-compile files, remove src
31 for file in $fs/usr/share/emacs/site-lisp/lua-mode/*.el ; do
32 echo -n "Byte-compiling $(basename file)"
33 emacs -batch -f batch-byte-compile $file 2> /dev/null; err=$?
34 status
35 [ "$err" = "0" ] && rm -f $file
36 done
37 true
38 }
40 post_install()
41 {
42 chroot "$1/" tazpkg reconfigure emacs
43 }
45 post_remove()
46 {
47 chroot "$1/" tazpkg reconfigure emacs
48 }