wok-next view emacs-pkg-po-mode/receipt @ rev 18793
Up tazlito (411). get-vivaldi: update deps.
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Thu Jan 07 00:53:23 2016 +0000 (2016-01-07) |
parents | 9b7b70c9feef |
children | 2c32f769918a |
line source
1 # SliTaz package receipt.
3 PACKAGE="emacs-pkg-po-mode"
4 VERSION="0.19.4"
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 }