wok-current view emacs-pkg-po-mode/receipt @ rev 14087
Up: emacs-pkg-po-mode: tidy receipt
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Fri Feb 22 21:15:31 2013 +0100 (2013-02-22) |
parents | 8808f618b300 |
children | d9e0b6aa4cb6 |
line source
1 # SliTaz package receipt.
3 PACKAGE="emacs-pkg-po-mode"
4 VERSION="0.18.1.1"
5 CATEGORY="development"
6 SHORT_DESC="An Emacs major mode for editing or modifying PO files."
7 MAINTAINER="domcox@slitaz.org"
8 DEPENDS="emacs"
9 WEB_SITE="http://www.gnu.org/software/hello/manual/gettext/PO-Mode.html"
10 WANTED="gettext"
13 # Rules to gen a SliTaz package suitable for Tazpkg.
14 genpkg_rules()
15 {
16 echo -n "Installing start file"
17 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \
18 cp -a $src/gettext-tools/misc/start-po.el \
19 $fs/usr/share/emacs/site-lisp/site-start.d/50-start-po.el
20 status
22 echo -n "Installing po-mode"
23 mkdir -p $fs/usr/share/emacs/site-lisp/po-mode && \
24 cp -a $src/gettext-tools/misc/po*.el $fs/usr/share/emacs/site-lisp/po-mode
25 status
27 # byte-compile files, remove src
28 cd $fs/usr/share/emacs/site-lisp/po-mode/
29 for file in *.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 }