wok-next view emacs-pkg-vala-mode/receipt @ rev 20902
brotli: up (1.0.5); compton: re-version (0.1_beta2+87 -> 20170907); cookutils: up (1087); curl: up (7.61.0); file: up (5.33); gnutls: up (3.5.19); gvfs: up (1.36.2); meson: up (0.47.1); webkit2gtk: update bdeps; add libgdata and uhttpmock
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Jul 28 15:39:37 2018 +0300 (2018-07-28) |
parents | dfef8de3d270 |
children | d5aab818505e |
line source
1 # SliTaz package receipt.
3 PACKAGE="emacs-pkg-vala-mode"
4 VERSION="0.1"
5 CATEGORY="development"
6 SHORT_DESC="An Emacs major mode for editing Vala code."
7 MAINTAINER="domcox@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://live.gnome.org/Vala/Emacs"
10 REPOLOGY="emacs-vala-mode"
12 BUILD_DEPENDS="emacs"
13 TAGS="emacs vala"
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/80-vala-init.el $fs/usr/share/emacs/site-lisp/site-start.d
23 status
25 echo -n "Installing vala-mode"
26 mkdir -p $fs/usr/share/emacs/site-lisp/vala-mode && \
27 cp -a stuff/vala-mode.el $fs/usr/share/emacs/site-lisp/vala-mode
28 status
30 # byte-compile files, remove src
31 for file in $fs/usr/share/emacs/site-lisp/vala-mode/vala*.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 }