wok-current view emacs-pkg-vala-mode/receipt @ rev 14532
openssh: privsep-path fixs no start
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Sun May 19 00:48:28 2013 +0000 (2013-05-19) |
parents | fddbfa2d4fb3 |
children | 223b265f40fd |
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 DEPENDS="emacs"
9 BUILD_DEPENDS="emacs"
10 WEB_SITE="http://live.gnome.org/Vala/Emacs"
11 TAGS="emacs vala"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 echo -n "Installing start file"
18 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \
19 cp -a stuff/80-vala-init.el $fs/usr/share/emacs/site-lisp/site-start.d
20 status
22 echo -n "Installing vala-mode"
23 mkdir -p $fs/usr/share/emacs/site-lisp/vala-mode && \
24 cp -a stuff/vala-mode.el $fs/usr/share/emacs/site-lisp/vala-mode
25 status
27 # byte-compile files, remove src
28 for file in $fs/usr/share/emacs/site-lisp/vala-mode/vala*.el ; do
29 echo -n "Byte-compiling $(basename file)"
30 emacs -batch -f batch-byte-compile $file 2> /dev/null; err=$?
31 status
32 [ "$err" = "0" ] && rm -f $file
33 done
34 true
35 }
37 post_install()
38 {
39 tazpkg reconfigure emacs
40 }
42 post_remove()
43 {
44 tazpkg reconfigure emacs
45 }