wok-current view emacs-pkg-po-mode/receipt @ rev 15759
Add Spk (SliTaz Packages Toolset)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Jan 05 02:48:00 2014 +0100 (2014-01-05) |
parents | 2b9f96603415 |
children | dfef8de3d270 |
line source
1 # SliTaz package receipt.
3 PACKAGE="emacs-pkg-po-mode"
4 VERSION="0.18.3"
5 CATEGORY="development"
6 SHORT_DESC="An Emacs major mode for editing or modifying PO files."
7 MAINTAINER="domcox@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.gnu.org/software/hello/manual/gettext/PO-Mode.html"
10 WANTED="gettext"
12 DEPENDS="emacs"
13 BUILD_DEPENDS="emacs"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 echo -n "Installing start file"
19 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \
20 cp -a $src/gettext-tools/misc/start-po.el \
21 $fs/usr/share/emacs/site-lisp/site-start.d/50-start-po.el
22 status
24 echo -n "Installing po-mode"
25 mkdir -p $fs/usr/share/emacs/site-lisp/po-mode && \
26 cp -a $src/gettext-tools/misc/po*.el $fs/usr/share/emacs/site-lisp/po-mode
27 status
29 # byte-compile files, remove src
30 for file in $fs/usr/share/emacs/site-lisp/po-mode/*.el ; do
31 echo -n "Byte-compiling $(basename $file)"
32 emacs -batch -f batch-byte-compile $file 2> /dev/null; err=$?
33 status
34 [ "$err" = "0" ] && rm -f $file
35 done
36 true
37 }
39 post_install()
40 {
41 tazpkg reconfigure emacs
42 }
44 post_remove()
45 {
46 tazpkg reconfigure emacs
47 }