From 3d16ef941d769132461a96aa9e36e0232f5580d1 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Thu, 24 Feb 2011 20:14:30 +0700 Subject: [PATCH] added --- .../learn-elisp-for-emacs.SlackBuild | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100755 doc/learn-elisp-for-emacs/learn-elisp-for-emacs.SlackBuild diff --git a/doc/learn-elisp-for-emacs/learn-elisp-for-emacs.SlackBuild b/doc/learn-elisp-for-emacs/learn-elisp-for-emacs.SlackBuild new file mode 100755 index 00000000..7f440d6c --- /dev/null +++ b/doc/learn-elisp-for-emacs/learn-elisp-for-emacs.SlackBuild @@ -0,0 +1,47 @@ +#!/bin/sh + +CWD=$(pwd) + +PRGNAM=$(basename $CWD) +VERSION=$(date +"%Y.%m.%d_%H.%M") +BUILD=1 + +ARCH=$(uname -m) + +TAG=cyco +TMP=/tmp/$TAG +PKG=$TMP/pkg-$PRGNAM +OUTPUT=/tmp + +PREFIX=/usr + +# cleaning +rm -fr $PKG + +# get sources +[ -e $CWD/Learn-eLisp-For-Emacs.pdf ] && mv $CWD/Learn-eLisp-For-Emacs.pdf $CWD/Learn-eLisp-For-Emacs.pdf.orig +wget -c http://learn-elisp-for-emacs.org/files/Learn-eLisp-For-Emacs.pdf -O $CWD/Learn-eLisp-For-Emacs.pdf + +mkdir -p $PKG$PREFIX/doc/$PRGNAM +cp -R $CWD/Learn-eLisp-For-Emacs.pdf $PKG$PREFIX/doc/$PRGNAM + +( cd $PKG + mkdir -p install + cat < install/slack-desc +$PRGNAM: $PRGNAM («Learn eLisp For Emacs» book) +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: http://learn-elisp-for-emacs.org/ +$PRGNAM: +EOF + + chown -R root:root * + + makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz +)