diff --git a/e/org-mode/org-mode.SlackBuild b/e/org-mode/org-mode.SlackBuild index 37159de2..2f200313 100755 --- a/e/org-mode/org-mode.SlackBuild +++ b/e/org-mode/org-mode.SlackBuild @@ -56,11 +56,16 @@ cp -R $REPOSITORY $TMP/$APP_NAME-$VERSION rm $PKG$PREFIX/info/dir # install contrib - # mkdir -p $PKG$PREFIX/share/emacs/site-lisp/org-mode-contrib cp -R contrib/lisp $PKG$PREFIX/share/emacs/site-lisp/org-mode-contrib - # mkdir -p $PKG$PREFIX/share/emacs/site-lisp/org-mode-contrib/babel + # install org-babel cp -R contrib/babel/lisp $PKG$PREFIX/share/emacs/site-lisp/org-mode-contrib/babel + ( cd $PKG$PREFIX/share/emacs/site-lisp/org-mode-contrib + emacs -batch -f batch-byte-compile-file *.el + ) + ( cd $PKG$PREFIX/share/emacs/site-lisp/org-mode-contrib/babel + emacs -batch -f batch-byte-compile-file *.el + ) mkdir -p $PKG$PREFIX/doc/$APP_NAME cp -R contrib $PKG$PREFIX/doc/$APP_NAME ) @@ -71,11 +76,11 @@ cp -R $REPOSITORY $TMP/$APP_NAME-$VERSION [ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \; [ -d $PKG/usr/info ] && find $PKG/usr/info -type f -name "*" -exec gzip -9f {} \; - [ -d $PKG$PREFIX/share/emacs/$EMACS_VERSION/lisp/org ] && \ - find $PKG$PREFIX/share/emacs/$EMACS_VERSION/lisp/org -type f -name "*.el" -exec gzip -9f {} \; - [ -d $PKG$PREFIX/share/emacs/site-lisp ] && \ - find $PKG$PREFIX/share/emacs/site-lisp -type f -name "*.el" -exec gzip -9f {} \; - gunzip $PKG/usr/info/dir.gz + # [ -d $PKG$PREFIX/share/emacs/$EMACS_VERSION/lisp/org ] && \ + # find $PKG$PREFIX/share/emacs/$EMACS_VERSION/lisp/org -type f -name "*.el" -exec gzip -9f {} \; + # [ -d $PKG$PREFIX/share/emacs/site-lisp ] && \ + # find $PKG$PREFIX/share/emacs/site-lisp -type f -name "*.el" -exec gzip -9f {} \; + # gunzip $PKG/usr/info/dir.gz ) # embaumement diff --git a/y/gnugo/gnugo-3.8.tar.gz b/y/gnugo/gnugo-3.8.tar.gz new file mode 100644 index 00000000..43e9384e Binary files /dev/null and b/y/gnugo/gnugo-3.8.tar.gz differ diff --git a/y/gnugo/gnugo.SlackBuild b/y/gnugo/gnugo.SlackBuild new file mode 100755 index 00000000..a2229af0 --- /dev/null +++ b/y/gnugo/gnugo.SlackBuild @@ -0,0 +1,91 @@ +#!/bin/sh -x + +# variables +TMP=/tmp +CWD=$(pwd) + +APP_NAME=gnugo +PKG=$TMP/package-$APP_NAME + +VERSION=3.8 + +EXT=tar.gz + +DOCS="AUTHORS ChangeLog COPYING INSTALL NEWS README TODO" + +ARCH=x86_64 +BUILD=1cyco + +PREFIX=/usr + +SLCKFLAGS="-fPIC -O2" + +# nettoyage préalable +rm -fr $PKG $TMP/$APP_NAME-$VERSION + +mkdir -p $PKG + +# mise en place +cd $TMP +tar xf $CWD/$APP_NAME-$VERSION.$EXT +cd $APP_NAME-$VERSION + +# configuration +CFLAGS=$SLCKFLAGS \ +CPPFLAGS=$SLCKFLAGS \ +./configure \ + --prefix=$PREFIX \ + --mandir=$PREFIX/man \ + --infodir=$PREFIX/info + +# compilation +make -j3 PREFIX=$PREFIX + +# installation +make install DESTDIR=$PKG + +# correction +cd $PKG +chown -R root:root * + +mkdir -p $PKG/usr/doc/$APP_NAME-$VERSION +cd $TMP/$APP_NAME-$VERSION +cp -R $DOCS $PKG/usr/doc/$APP_NAME-$VERSION + +[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \; +[ -d $PKG/usr/info ] && find $PKG/usr/info -type f -name "*.info*" -exec gzip -9f {} \; +[ -d $PKG/usr/info ] && rm $PKG/usr/info/dir + +# Strip binaries +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +) + + +# embaumement +mkdir -p $PKG/install +cat < $PKG/install/doinst.sh +cd /usr/info +for file in $(ls *.gz | grep -v ".*\-[0-9]\+\.gz") +do + install-info \$file ./dir +done +EOF +cat < $PKG/install/slack-desc +$APP_NAME: $APP_NAME (Go game) +$APP_NAME: +$APP_NAME: GNU Go is a free program that plays the game of Go. GNU Go has played +$APP_NAME: thousands of games on the NNGS Go server. GNU Go is now also playing +$APP_NAME: regularly on the Legend Go Server in Taiwan, on the WING server in Japan, +$APP_NAME: and many volunteers run GNU Go clients on KGS. GNU Go has established itself +$APP_NAME: as the leading non-commercial go program in the recent tournaments that it +$APP_NAME: has taken part in. +$APP_NAME: +$APP_NAME: http://www.gnu.org/software/gnugo/gnugo.html +$APP_NAME: +EOF + +# empaquetage +cd $PKG +makepkg -l y -c n $TMP/$APP_NAME-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD.txz