wok annotate emacs-pkg-lua-mode/receipt @ rev 11578
Compat: fix krb5 to build with tazwok
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Mon Jan 02 23:06:19 2012 +0100 (2012-01-02) |
parents | 6585bd69dddb |
children | 755fb3544005 |
rev | line source |
---|---|
domcox@3938 | 1 # SliTaz package receipt. |
domcox@3938 | 2 |
domcox@3938 | 3 PACKAGE="emacs-pkg-lua-mode" |
domcox@8127 | 4 VERSION="20100617" |
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" |
domcox@3938 | 8 DEPENDS="emacs" |
domcox@3938 | 9 SOURCE="lua-mode" |
domcox@3938 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
domcox@3938 | 11 WEB_SITE="http://lua-mode.luaforge.net" |
domcox@3938 | 12 WGET_URL="http://luaforge.net/frs/download.php/2724/$TARBALL" |
domcox@6096 | 13 TAGS="emacs lua" |
domcox@3938 | 14 |
pascal@9093 | 15 # Rules to configure and make the package. |
pascal@9093 | 16 compile_rules() |
pascal@9093 | 17 { |
pascal@9093 | 18 mkdir -p $DESTDIR |
pascal@9093 | 19 cp -a $src/*.el $DESTDIR/ |
pascal@9093 | 20 } |
domcox@3938 | 21 |
domcox@3938 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
domcox@3938 | 23 genpkg_rules() |
domcox@3938 | 24 { |
domcox@3938 | 25 echo -n "Installing lua-mode" |
domcox@3938 | 26 mkdir -p $fs/usr/share/emacs/site-lisp/lua-mode && \ |
pascal@9098 | 27 cp $_pkg/*.el $fs/usr/share/emacs/site-lisp/lua-mode |
domcox@3938 | 28 status |
domcox@8127 | 29 |
domcox@3938 | 30 echo -n "Installing start file" |
domcox@3938 | 31 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \ |
pascal@9089 | 32 cp $stuff/*.el $fs/usr/share/emacs/site-lisp/site-start.d |
domcox@3938 | 33 status |
domcox@3938 | 34 } |
domcox@3939 | 35 |
domcox@3939 | 36 post_install() |
domcox@3939 | 37 { |
domcox@8127 | 38 # byte-compile files, remove src |
domcox@8127 | 39 cd /usr/share/emacs/site-lisp/lua-mode/ |
domcox@8127 | 40 for file in *.el ; do |
domcox@8127 | 41 echo -n "Byte-compiling $file" |
domcox@8127 | 42 emacs -batch -f batch-byte-compile $file 2> /dev/null |
domcox@8127 | 43 status |
domcox@8127 | 44 rm -f $file |
domcox@8127 | 45 done |
domcox@3939 | 46 tazpkg reconfigure emacs |
domcox@3939 | 47 } |
domcox@3939 | 48 |
domcox@8127 | 49 pre_remove() |
domcox@8127 | 50 { |
domcox@8127 | 51 # remove byte-compiled files, |
domcox@8127 | 52 # created by post_install() |
domcox@8127 | 53 cd /usr/share/emacs/site-lisp/lua-mode/ |
domcox@8127 | 54 for file in *.elc ; do |
domcox@8127 | 55 echo -n "Deleting byte-compiled code $file" |
domcox@8127 | 56 touch "$file" "`basename $file .elc`.el" |
domcox@8127 | 57 rm -f $file |
domcox@8127 | 58 status |
domcox@8127 | 59 done |
domcox@8127 | 60 } |
domcox@8127 | 61 |
domcox@3939 | 62 post_remove() |
domcox@3939 | 63 { |
domcox@3939 | 64 tazpkg reconfigure emacs |
domcox@3939 | 65 } |