wok-current annotate emacs-pkg-vala-mode/receipt @ rev 14088

Up: emacs-pkg-vala-mode: tidy receipt
author Dominique Corbex <domcox@slitaz.org>
date Fri Feb 22 21:15:53 2013 +0100 (2013-02-22)
parents 3c8ac4fce2c9
children 5bd4f2f4f104
rev   line source
domcox@8443 1 # SliTaz package receipt.
domcox@8443 2
domcox@8443 3 PACKAGE="emacs-pkg-vala-mode"
domcox@8443 4 VERSION="0.1"
domcox@8443 5 CATEGORY="development"
domcox@8443 6 SHORT_DESC="An Emacs major mode for editing Vala code."
domcox@8443 7 MAINTAINER="domcox@slitaz.org"
domcox@8443 8 DEPENDS="emacs"
domcox@8443 9 WEB_SITE="http://live.gnome.org/Vala/Emacs"
domcox@8443 10 TAGS="emacs vala"
domcox@8443 11
domcox@8443 12
domcox@8443 13 # Rules to gen a SliTaz package suitable for Tazpkg.
domcox@8443 14 genpkg_rules()
domcox@8443 15 {
domcox@14088 16 echo -n "Installing start file"
domcox@14088 17 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \
domcox@14088 18 cp -a stuff/80-vala-init.el $fs/usr/share/emacs/site-lisp/site-start.d
domcox@14088 19 status
domcox@14088 20
domcox@8443 21 echo -n "Installing vala-mode"
domcox@8443 22 mkdir -p $fs/usr/share/emacs/site-lisp/vala-mode && \
domcox@14088 23 cp -a stuff/vala-mode.el $fs/usr/share/emacs/site-lisp/vala-mode
domcox@8443 24 status
domcox@8443 25
domcox@14088 26 # byte-compile files, remove src
domcox@14088 27 cd $fs/usr/share/emacs/site-lisp/vala-mode/
domcox@14088 28 for file in vala*.el ; do
domcox@14088 29 echo -n "Byte-compiling $file"
domcox@14088 30 emacs -batch -f batch-byte-compile $file 2> /dev/null
domcox@14088 31 status
domcox@14088 32 rm -f $file
domcox@14088 33 done
domcox@8443 34 }
domcox@8443 35
domcox@8443 36 post_install()
domcox@8443 37 {
domcox@8443 38 tazpkg reconfigure emacs
domcox@8443 39 }
domcox@8443 40
domcox@8443 41 post_remove()
domcox@8443 42 {
domcox@8443 43 tazpkg reconfigure emacs
domcox@8443 44 }