wok-next view emacs-pkg-vala-mode/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents d5aab818505e
children
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="devel@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://wiki.gnome.org/Projects/Vala/Emacs"
10 HOST_ARCH="any"
11 REPOLOGY="emacs-vala-mode"
13 BUILD_DEPENDS="emacs"
15 genpkg_rules() {
16 echo -n "Installing start file"
17 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d &&
18 cp -a $stuff/80-vala-init.el $fs/usr/share/emacs/site-lisp/site-start.d
19 status
21 echo -n "Installing vala-mode"
22 mkdir -p $fs/usr/share/emacs/site-lisp/vala-mode &&
23 cp -a $stuff/vala-mode.el $fs/usr/share/emacs/site-lisp/vala-mode
24 status
26 # byte-compile files, remove src
27 for file in $fs/usr/share/emacs/site-lisp/vala-mode/vala*.el; do
28 echo -n "Byte-compiling $(basename file)"
29 emacs -batch -f batch-byte-compile $file 2>/dev/null; err=$?
30 status
31 [ "$err" = "0" ] && rm -f $file
32 done
33 true
34 DEPENDS="emacs"
35 TAGS="emacs vala"
36 }
38 post_install() {
39 chroot "$1/" tazpkg reconfigure emacs
40 }
42 post_remove() {
43 chroot "$1/" tazpkg reconfigure emacs
44 }