wok-6.x view emacs-pkg-po-mode/receipt @ rev 22619

updated cssc (1.3.0 -> 1.4.1)
author Hans-G?nter Theisgen
date Sun Jan 12 11:14:55 2020 +0100 (2020-01-12)
parents 9122458e5bb5
children 82d54eca72be
line source
1 # SliTaz package receipt.
3 PACKAGE="emacs-pkg-po-mode"
4 VERSION="0.19.8.1"
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 chroot "$1/" tazpkg reconfigure emacs
42 }
44 post_remove()
45 {
46 chroot "$1/" tazpkg reconfigure emacs
47 }