wok-6.x view emacs-pkg-lua-mode/receipt @ rev 23569
updated python-tweepy (1.10 -> 3.8.0)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 07 09:19:28 2020 +0100 (2020-04-07) |
parents | dfef8de3d270 |
children | 5ea0ce1cecc0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="emacs-pkg-lua-mode"
4 VERSION="20130419"
5 CATEGORY="development"
6 TAGS="emacs lua"
7 SHORT_DESC="An Emacs major mode for editing Lua code."
8 MAINTAINER="domcox@slitaz.org"
9 LICENSE="GPL3"
10 WEB_SITE="https://github.com/immerrr/lua-mode/"
12 TARBALL="$PACKAGE-rel-$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}archive/rel-$VERSION.tar.gz"
15 DEPENDS="emacs"
16 BUILD_DEPENDS="emacs"
18 # Rules to gen a SliTaz package suitable for Tazpkg.
19 genpkg_rules()
20 {
21 echo -n "Installing start file"
22 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d &&
23 cp -a $stuff/90-lua-mode.el \
24 $fs/usr/share/emacs/site-lisp/site-start.d
25 status
27 echo -n "Installing lua-mode"
28 mkdir -p $fs/usr/share/emacs/site-lisp/lua-mode &&
29 cp -a $src/lua-mode.el \
30 $fs/usr/share/emacs/site-lisp/lua-mode
31 status
33 # byte-compile files, remove src
34 for file in $fs/usr/share/emacs/site-lisp/lua-mode/*.el
35 do
36 echo -n "Byte-compiling $(basename $file)"
37 emacs -batch -f batch-byte-compile $file 2> /dev/null; err=$?
38 status
39 [ "$err" = "0" ] && rm -f $file
40 done
41 true
42 }
44 post_install()
45 {
46 chroot "$1/" tazpkg reconfigure emacs
47 }
49 post_remove()
50 {
51 chroot "$1/" tazpkg reconfigure emacs
52 }