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

created recipes for libmypaint, libmypaint-dev and libmypaint-lang
author Hans-G?nter Theisgen
date Tue Mar 22 16:52:59 2022 +0100 (2022-03-22)
parents 82d54eca72be
children
line source
1 # SliTaz package receipt.
3 PACKAGE="emacs-pkg-po-mode"
4 VERSION="0.21"
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/emacs/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/emacs/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 }