# SliTaz package receipt. PACKAGE="emacs-pkg-go-mode" VERSION="1.2.1" CATEGORY="development" SHORT_DESC="An Emacs major mode for editing Go code." MAINTAINER="domcox@slitaz.org" LICENSE="GPL3" BUILD_DEPENDS="emacs" WEB_SITE="http://www.golang.org" WANTED="go" TAGS="emacs go" DEPENDS="emacs" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { echo -n "Installing start file" mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \ cp -a stuff/80-go-init.el $fs/usr/share/emacs/site-lisp/site-start.d status echo -n "Installing go-mode" mkdir -p $fs/usr/share/emacs/site-lisp/go-mode && \ cp -a $src/misc/emacs/* $fs/usr/share/emacs/site-lisp/go-mode status } post_install() { chroot "$1/" tazpkg reconfigure emacs } post_remove() { chroot "$1/" tazpkg reconfigure emacs }