wok annotate emacs-pkg-vala-mode/receipt @ rev 16799

Fix some missing icons (alsamixer, nanochess)
author Paul Issott <paul@slitaz.org>
date Fri Jul 04 13:41:24 2014 +0100 (2014-07-04)
parents 4e8a13288f6b
children dfef8de3d270
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"
pascal@15202 8 LICENSE="GPL3"
domcox@14094 9 BUILD_DEPENDS="emacs"
domcox@8443 10 WEB_SITE="http://live.gnome.org/Vala/Emacs"
domcox@8443 11 TAGS="emacs vala"
domcox@8443 12
pascal@15202 13 DEPENDS="emacs"
domcox@8443 14
domcox@8443 15 # Rules to gen a SliTaz package suitable for Tazpkg.
domcox@8443 16 genpkg_rules()
domcox@8443 17 {
domcox@14088 18 echo -n "Installing start file"
domcox@14088 19 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \
domcox@14088 20 cp -a stuff/80-vala-init.el $fs/usr/share/emacs/site-lisp/site-start.d
domcox@14088 21 status
domcox@14088 22
domcox@8443 23 echo -n "Installing vala-mode"
domcox@8443 24 mkdir -p $fs/usr/share/emacs/site-lisp/vala-mode && \
domcox@14088 25 cp -a stuff/vala-mode.el $fs/usr/share/emacs/site-lisp/vala-mode
domcox@8443 26 status
domcox@8443 27
domcox@14088 28 # byte-compile files, remove src
domcox@14195 29 for file in $fs/usr/share/emacs/site-lisp/vala-mode/vala*.el ; do
domcox@14195 30 echo -n "Byte-compiling $(basename file)"
domcox@14195 31 emacs -batch -f batch-byte-compile $file 2> /dev/null; err=$?
domcox@14088 32 status
domcox@14195 33 [ "$err" = "0" ] && rm -f $file
domcox@14088 34 done
pascal@14196 35 true
domcox@8443 36 }
domcox@8443 37
domcox@8443 38 post_install()
domcox@8443 39 {
domcox@8443 40 tazpkg reconfigure emacs
domcox@8443 41 }
domcox@8443 42
domcox@8443 43 post_remove()
domcox@8443 44 {
domcox@8443 45 tazpkg reconfigure emacs
domcox@8443 46 }