wok-current view emacs-pkg-lua-mode/receipt @ rev 25618

Use default gcc 6.3 for libgphoto2
author Stanislas Leduc <shann@slitaz.org>
date Sun Sep 03 19:59:46 2023 +0000 (14 months ago)
parents 5ea0ce1cecc0
children
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 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 echo -n "Installing start file"
28 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d &&
29 cp -a $stuff/90-lua-mode.el \
30 $fs/usr/share/emacs/site-lisp/site-start.d
31 status
33 echo -n "Installing lua-mode"
34 mkdir -p $fs/usr/share/emacs/site-lisp/lua-mode &&
35 cp -a $src/lua-mode.el \
36 $fs/usr/share/emacs/site-lisp/lua-mode
37 status
39 # byte-compile files, remove src
40 for file in $fs/usr/share/emacs/site-lisp/lua-mode/*.el
41 do
42 echo -n "Byte-compiling $(basename $file)"
43 emacs -batch -f batch-byte-compile $file 2> /dev/null; err=$?
44 status
45 [ "$err" = "0" ] && rm -f $file
46 done
47 true
48 }
50 post_install()
51 {
52 chroot "$1/" tazpkg reconfigure emacs
53 }
55 post_remove()
56 {
57 chroot "$1/" tazpkg reconfigure emacs
58 }