wok-next annotate emacs-pkg-lua-mode/receipt @ rev 21057
Deal with HOST_ARCH="any"
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Dec 03 14:47:30 2018 +0200 (2018-12-03) |
parents | d5aab818505e |
children |
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" |
al@21020 | 6 SHORT_DESC="An Emacs major mode for editing Lua code" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
pascal@15202 | 8 LICENSE="GPL3" |
al@21020 | 9 WEB_SITE="http://immerrr.github.io/lua-mode/" |
al@21057 | 10 HOST_ARCH="any" |
al@20882 | 11 REPOLOGY="emacs-lua-mode" |
al@20882 | 12 |
domcox@14093 | 13 BUILD_DEPENDS="emacs" |
domcox@6096 | 14 TAGS="emacs lua" |
domcox@3938 | 15 |
pascal@15202 | 16 DEPENDS="emacs" |
domcox@3938 | 17 |
al@21020 | 18 genpkg_rules() { |
domcox@14086 | 19 echo -n "Installing start file" |
al@21020 | 20 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && |
domcox@14086 | 21 cp -a $stuff/90-lua-mode.el $fs/usr/share/emacs/site-lisp/site-start.d |
domcox@14086 | 22 status |
domcox@14086 | 23 |
domcox@3938 | 24 echo -n "Installing lua-mode" |
al@21020 | 25 mkdir -p $fs/usr/share/emacs/site-lisp/lua-mode && |
domcox@14086 | 26 cp -a $stuff/lua-mode.el $fs/usr/share/emacs/site-lisp/lua-mode |
domcox@3938 | 27 status |
domcox@8127 | 28 |
domcox@8127 | 29 # byte-compile files, remove src |
al@21020 | 30 for file in $fs/usr/share/emacs/site-lisp/lua-mode/*.el; do |
domcox@14193 | 31 echo -n "Byte-compiling $(basename file)" |
domcox@14193 | 32 emacs -batch -f batch-byte-compile $file 2> /dev/null; err=$? |
domcox@8127 | 33 status |
domcox@14193 | 34 [ "$err" = "0" ] && rm -f $file |
domcox@8127 | 35 done |
pascal@14196 | 36 true |
domcox@3939 | 37 } |
domcox@3939 | 38 |
al@21020 | 39 post_install() { |
pascal@17552 | 40 chroot "$1/" tazpkg reconfigure emacs |
domcox@8127 | 41 } |
domcox@8127 | 42 |
al@21020 | 43 post_remove() { |
pascal@17552 | 44 chroot "$1/" tazpkg reconfigure emacs |
domcox@3939 | 45 } |