wok view emacs-pkg-vala-mode/receipt @ rev 14113
arping: up 2.13
author | Samuel Trassare <samuel_trassare@yahoo.com> |
---|---|
date | Sun Feb 24 15:51:42 2013 -0800 (2013-02-24) |
parents | 62aaad21141d |
children | fddbfa2d4fb3 |
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 cd $fs/usr/share/emacs/site-lisp/vala-mode/
29 for file in vala*.el ; do
30 echo -n "Byte-compiling $file"
31 emacs -batch -f batch-byte-compile $file 2> /dev/null
32 status
33 rm -f $file
34 done
35 }
37 post_install()
38 {
39 tazpkg reconfigure emacs
40 }
42 post_remove()
43 {
44 tazpkg reconfigure emacs
45 }