wok-next view emacs-pkg-vala-mode/receipt @ rev 19752
Up gvfs, cookutils, harfbuzz, libxml2.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Jun 08 19:49:38 2017 +0300 (2017-06-08) |
parents | 223b265f40fd |
children | d958fec46c9f |
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 BUILD_DEPENDS="emacs"
10 WEB_SITE="http://live.gnome.org/Vala/Emacs"
11 TAGS="emacs vala"
13 DEPENDS="emacs"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 echo -n "Installing start file"
19 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \
20 cp -a stuff/80-vala-init.el $fs/usr/share/emacs/site-lisp/site-start.d
21 status
23 echo -n "Installing vala-mode"
24 mkdir -p $fs/usr/share/emacs/site-lisp/vala-mode && \
25 cp -a stuff/vala-mode.el $fs/usr/share/emacs/site-lisp/vala-mode
26 status
28 # byte-compile files, remove src
29 for file in $fs/usr/share/emacs/site-lisp/vala-mode/vala*.el ; do
30 echo -n "Byte-compiling $(basename file)"
31 emacs -batch -f batch-byte-compile $file 2> /dev/null; err=$?
32 status
33 [ "$err" = "0" ] && rm -f $file
34 done
35 true
36 }
38 post_install()
39 {
40 chroot "$1/" tazpkg reconfigure emacs
41 }
43 post_remove()
44 {
45 chroot "$1/" tazpkg reconfigure emacs
46 }