wok-6.x annotate emacs-pkg-lua-mode/receipt @ rev 17680

Rollback socat
author Yuri Pourre <yuripourre@gmail.com>
date Thu Feb 19 12:49:41 2015 -0200 (2015-02-19)
parents 223b265f40fd
children 3e80b32cca09
rev   line source
domcox@3938 1 # SliTaz package receipt.
domcox@3938 2
domcox@3938 3 PACKAGE="emacs-pkg-lua-mode"
domcox@14000 4 VERSION="20111107"
domcox@3938 5 CATEGORY="development"
domcox@3938 6 SHORT_DESC="An Emacs major mode for editing Lua code."
domcox@3938 7 MAINTAINER="domcox@slitaz.org"
pascal@15202 8 LICENSE="GPL3"
domcox@14093 9 BUILD_DEPENDS="emacs"
domcox@14086 10 WEB_SITE="http://immerrr.github.com/lua-mode/"
domcox@6096 11 TAGS="emacs lua"
domcox@3938 12
pascal@15202 13 DEPENDS="emacs"
domcox@3938 14
domcox@3938 15 # Rules to gen a SliTaz package suitable for Tazpkg.
domcox@3938 16 genpkg_rules()
domcox@3938 17 {
domcox@14086 18 echo -n "Installing start file"
domcox@14086 19 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \
domcox@14086 20 cp -a $stuff/90-lua-mode.el $fs/usr/share/emacs/site-lisp/site-start.d
domcox@14086 21 status
domcox@14086 22
domcox@3938 23 echo -n "Installing lua-mode"
domcox@3938 24 mkdir -p $fs/usr/share/emacs/site-lisp/lua-mode && \
domcox@14086 25 cp -a $stuff/lua-mode.el $fs/usr/share/emacs/site-lisp/lua-mode
domcox@3938 26 status
domcox@8127 27
domcox@8127 28 # byte-compile files, remove src
domcox@14193 29 for file in $fs/usr/share/emacs/site-lisp/lua-mode/*.el ; do
domcox@14193 30 echo -n "Byte-compiling $(basename file)"
domcox@14193 31 emacs -batch -f batch-byte-compile $file 2> /dev/null; err=$?
domcox@8127 32 status
domcox@14193 33 [ "$err" = "0" ] && rm -f $file
domcox@8127 34 done
pascal@14196 35 true
domcox@3939 36 }
domcox@3939 37
domcox@14086 38 post_install()
domcox@8127 39 {
pascal@17552 40 chroot "$1/" tazpkg reconfigure emacs
domcox@8127 41 }
domcox@8127 42
domcox@3939 43 post_remove()
domcox@3939 44 {
pascal@17552 45 chroot "$1/" tazpkg reconfigure emacs
domcox@3939 46 }