wok-current annotate emacs-pkg-lua-mode/receipt @ rev 24633
updated gtick again (0.5.4 -> 0.5.5)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 08 16:29:56 2022 +0100 (2022-03-08) |
parents | 5ea0ce1cecc0 |
children |
rev | line source |
---|---|
domcox@3938 | 1 # SliTaz package receipt. |
domcox@3938 | 2 |
domcox@3938 | 3 PACKAGE="emacs-pkg-lua-mode" |
Hans-G?nter@22695 | 4 VERSION="20130419" |
domcox@3938 | 5 CATEGORY="development" |
Hans-G?nter@22695 | 6 TAGS="emacs lua" |
domcox@3938 | 7 SHORT_DESC="An Emacs major mode for editing Lua code." |
domcox@3938 | 8 MAINTAINER="domcox@slitaz.org" |
pascal@15202 | 9 LICENSE="GPL3" |
Hans-G?nter@22695 | 10 WEB_SITE="https://github.com/immerrr/lua-mode/" |
Hans-G?nter@22695 | 11 |
Hans-G?nter@22695 | 12 TARBALL="$PACKAGE-rel-$VERSION.tar.gz" |
Hans-G?nter@22695 | 13 WGET_URL="${WEB_SITE}archive/rel-$VERSION.tar.gz" |
domcox@3938 | 14 |
pascal@15202 | 15 DEPENDS="emacs" |
Hans-G?nter@22695 | 16 BUILD_DEPENDS="emacs" |
domcox@3938 | 17 |
pascal@24055 | 18 current_version() |
pascal@24055 | 19 { |
pascal@24299 | 20 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ |
pascal@24055 | 21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 22 } |
pascal@24055 | 23 |
domcox@3938 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
domcox@3938 | 25 genpkg_rules() |
domcox@3938 | 26 { |
domcox@14086 | 27 echo -n "Installing start file" |
Hans-G?nter@22695 | 28 mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && |
Hans-G?nter@22695 | 29 cp -a $stuff/90-lua-mode.el \ |
Hans-G?nter@22695 | 30 $fs/usr/share/emacs/site-lisp/site-start.d |
domcox@14086 | 31 status |
domcox@14086 | 32 |
domcox@3938 | 33 echo -n "Installing lua-mode" |
Hans-G?nter@22695 | 34 mkdir -p $fs/usr/share/emacs/site-lisp/lua-mode && |
Hans-G?nter@22695 | 35 cp -a $src/lua-mode.el \ |
Hans-G?nter@22695 | 36 $fs/usr/share/emacs/site-lisp/lua-mode |
domcox@3938 | 37 status |
domcox@8127 | 38 |
domcox@8127 | 39 # byte-compile files, remove src |
Hans-G?nter@22695 | 40 for file in $fs/usr/share/emacs/site-lisp/lua-mode/*.el |
Hans-G?nter@22695 | 41 do |
Hans-G?nter@22695 | 42 echo -n "Byte-compiling $(basename $file)" |
domcox@14193 | 43 emacs -batch -f batch-byte-compile $file 2> /dev/null; err=$? |
domcox@8127 | 44 status |
domcox@14193 | 45 [ "$err" = "0" ] && rm -f $file |
Hans-G?nter@22695 | 46 done |
pascal@14196 | 47 true |
domcox@3939 | 48 } |
domcox@3939 | 49 |
domcox@14086 | 50 post_install() |
domcox@8127 | 51 { |
pascal@17552 | 52 chroot "$1/" tazpkg reconfigure emacs |
domcox@8127 | 53 } |
domcox@8127 | 54 |
domcox@3939 | 55 post_remove() |
domcox@3939 | 56 { |
pascal@17552 | 57 chroot "$1/" tazpkg reconfigure emacs |
domcox@3939 | 58 } |