diff --git a/SBo/gem2tgz/README b/SBo/gem2tgz/README new file mode 100644 index 00000000..553f4553 --- /dev/null +++ b/SBo/gem2tgz/README @@ -0,0 +1,22 @@ +Script to create Slackware packages from rubygems. + +see ./gem2tgz --help for more details and the full list of options. + +Examples: +- Create packages for rails and all its dependencies: + gem2tgz --gem rails + +- Create packages for rails, version 3.0.4 and all its dependencies: + gem2tgz --gem rails --version 3.0.4 + +- Create and install packages for rails, version 3.0.4 and all its dependencies: + gem2tgz --gem rails --version 3.0.4 --install + +- Create packages for rails only (no dependencies): + gem2tgz --gem rails --version 3.0.4 --no-deps + +- Generate packages for ALL gems installed locally + gem2tgz --backup + +- Display a list of gems installed in more than one version (can be used in /etc/slackpkg/blacklist) + gem2tgz --duplicates diff --git a/SBo/gem2tgz/gem2tgz.SlackBuild b/SBo/gem2tgz/gem2tgz.SlackBuild new file mode 100755 index 00000000..a0cc7fd2 --- /dev/null +++ b/SBo/gem2tgz/gem2tgz.SlackBuild @@ -0,0 +1,47 @@ +#!/bin/sh + +# Slackware build script for gem2tgz + +# Written by Gwenhael Le Moine + +PRGNAM=gem2tgz +VERSION=1.1 +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +ARCH=noarch + +SRCNAM="cycojesus-gem2tgz-v1.1-0-ge3dd583.tar.gz" + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e # Exit on most errors + +rm -fr $TMP/$PRGNAM-$VERSION $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +tar xvf $CWD/$SRCNAM +mv cycojesus-gem2tgz-139fea7 $PRGNAM-$VERSION +cd $PRGNAM-$VERSION +chown -R root.root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +mkdir -p $PKG/usr/{bin,doc/$PRGNAM-$VERSION} +cp gem2tgz $PKG/usr/bin +chmod +x $PKG/usr/bin/gem2tgz + +cp README TODO $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/SBo/gem2tgz/gem2tgz.info b/SBo/gem2tgz/gem2tgz.info new file mode 100644 index 00000000..d8445df7 --- /dev/null +++ b/SBo/gem2tgz/gem2tgz.info @@ -0,0 +1,9 @@ +PRGNAM="gem2tgz" +VERSION="1.1" +HOMEPAGE="http://github.com/cycojesus/gem2tgz" +DOWNLOAD="https://github.com/cycojesus/gem2tgz/tarball/v1.1" +MD5SUM="930c0f7c8f5efa6c1ebbafd05ab04a79" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Gwenhael Le Moine" +EMAIL="gwenhael.le.moine@gmail.com" diff --git a/SBo/gem2tgz/slack-desc b/SBo/gem2tgz/slack-desc new file mode 100644 index 00000000..1e5499a6 --- /dev/null +++ b/SBo/gem2tgz/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + |-----handy-ruler------------------------------------------------------| +gem2tgz: gem2tgz (Rubygems' Slackware's packager) +gem2tgz: +gem2tgz: Make Slackware packages out of Rubygems. +gem2tgz: +gem2tgz: +gem2tgz: +gem2tgz: +gem2tgz: +gem2tgz: +gem2tgz: http://github.com/cycojesus/gem2tgz +gem2tgz: + diff --git a/ap/httrack/httrack.SlackBuild b/ap/httrack/httrack.SlackBuild index b69c6181..b1afcd40 100755 --- a/ap/httrack/httrack.SlackBuild +++ b/ap/httrack/httrack.SlackBuild @@ -1,13 +1,12 @@ -#!/bin/sh -set -x +#!/bin/sh -x PRGNAM=httrack -VERSION=3.43.12 +VERSION=3.44.1 BUILD=1 ARCH=$(uname -m) -LIBSUFFIX=$(echo $ARCH | grep -o "\(64\)") +LIBSUFFIX=$(echo $ARCH | grep -o "64") CWD=$(pwd) TAG=cyco @@ -18,64 +17,49 @@ PKG=$TMP/pkg-$PRGNAM PREFIX=/usr # Cleaning -( cd $TMP - rm -fr $PRGNAM-* - rm -fr $PKG -) +rm -fr $TMP/$PRGNAM-* $PKG # Fetching sources -( cd $TMP - if [ ! -e $CWD/$PRGNAM-$VERSION.tar.?z* ] ; then - ( cd $CWD - wget -c "http://download.httrack.com/cserv.php3?File=httrack.tar.gz" - ) - fi - tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* -) - -VERSION=$(echo $VERSION | tr - .) +cd $TMP +[ ! -e $CWD/$PRGNAM-$VERSION.tar.?z* ] && wget -c "http://download.httrack.com/cserv.php3?File=httrack.tar.gz" -O $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz # Preparation -( cd $TMP/$PRGNAM-$VERSION - chown -R root:root . - find . \ - \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; -) +cd $TMP/$PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; # Building -( cd $TMP/$PRGNAM-$VERSION - ./configure \ - --prefix=$PREFIX \ - --mandir=$PREFIX/man \ - --libdir=$PREFIX/lib$LIBSUFFIX +./configure \ + --prefix=$PREFIX \ + --mandir=$PREFIX/man \ + --libdir=$PREFIX/lib$LIBSUFFIX - make +make - make install DESTDIR=$PKG -) +make install DESTDIR=$PKG # Cleaning -( 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 +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 - find $PKG$PREFIX/man -type f -name "*.?" -exec gzip -9 {} \; - - chown -R root:root . - find . \ - \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; -) +find $PKG$PREFIX/man -type f -name "*.?" -exec gzip -9 {} \; +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + # Packaging -( cd $PKG - mkdir install - cat < install/slack-desc +mkdir install +cat < install/slack-desc $PRGNAM: $PRGNAM (offline browser utility) $PRGNAM: $PRGNAM: It allows you to download a World Wide Web site from the Internet to a local @@ -89,6 +73,4 @@ $PRGNAM: http://www.httrack.com/ $PRGNAM: EOF - makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz -) - +makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz diff --git a/ap/nut/nut.SlackBuild b/ap/nut/nut.SlackBuild index d1378bf8..4031bf68 100755 --- a/ap/nut/nut.SlackBuild +++ b/ap/nut/nut.SlackBuild @@ -2,7 +2,7 @@ set -x PRGNAM=nut -VERSION=${VERSION:-16.7} +VERSION=${VERSION:-16.8} BUILD=${BUILD:-1} diff --git a/ap/webrowse/webrowse.SlackBuild b/ap/webrowse/webrowse.SlackBuild index a01f9920..6a283cf4 100755 --- a/ap/webrowse/webrowse.SlackBuild +++ b/ap/webrowse/webrowse.SlackBuild @@ -2,7 +2,7 @@ set -x PRGNAM=webrowse -VERSION=1.6.3 +VERSION=1.7.0 BUILD=1 diff --git a/d/clojure/clojure.SlackBuild b/d/clojure/clojure.SlackBuild index c24ce0d8..07f167e1 100755 --- a/d/clojure/clojure.SlackBuild +++ b/d/clojure/clojure.SlackBuild @@ -4,7 +4,7 @@ set -x -e CWD=$(pwd) PRGNAM=$(basename $CWD) -VERSION=${VERSION:-1.2.0} +VERSION=${VERSION:-1.3.0-alpha4} ARCH=${ARCH:-java} BUILD=${BUILD:-1} diff --git a/d/rpl/rpl.SlackBuild b/d/rpl/rpl.SlackBuild index 90506543..7bb61bce 100755 --- a/d/rpl/rpl.SlackBuild +++ b/d/rpl/rpl.SlackBuild @@ -19,71 +19,57 @@ PKG=$TMP/pkg-$PRGNAM PREFIX=/usr # Cleaning -( cd $TMP - rm -fr $PRGNAM-$VERSION - rm -fr $PKG -) +cd $TMP +rm -fr $PRGNAM-$VERSION +rm -fr $PKG # Fetching sources -( cd $TMP - [ -e $CWD/$PRGNAM-$VERSION.tar.?z* ] \ - && tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* - # [ ! -e $PRGNAM-$VERSION ] \ - # && wget -c http://$PRGNAM.googlecode.com/files/$PRGNAM-$VERSION.tar.bz2 \ - # && tar xvf $PRGNAM-$VERSION.tar.?z* -) +[ ! -e $CWD/$PRGNAM-$VERSION.tar.?z* ] && wget -c http://www.rpl2.net/download/$PRGNAM-$VERSION.tar.bz2 -O $CWD/$PRGNAM-$VERSION.tar.bz2 +tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* # Preparation -( cd $TMP/$PRGNAM-$VERSION - chown -R root:root . - find . \ - \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; -) +cd $PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; # Configuration -( cd $TMP/$PRGNAM-$VERSION - ./configure \ - --prefix=$PREFIX \ - --mandir=$PREFIX/man \ - --infodir=$PREFIX/info \ - --libdir=$PREFIX/lib$LIBSUFFIX \ - --enable-experimental #I heart danger -) +./configure \ + --prefix=$PREFIX \ + --mandir=$PREFIX/man \ + --infodir=$PREFIX/info \ + --libdir=$PREFIX/lib$LIBSUFFIX \ + --enable-experimental #I heart danger # Building -( cd $TMP/$PRGNAM-$VERSION - make -) +make # Installation -( cd $TMP/$PRGNAM-$VERSION - make install DESTDIR=$PKG -) +make install DESTDIR=$PKG # Cleaning -( 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 +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 - find $PKG$PREFIX/man -type f -name "*.?" -exec gzip -9 {} \; - find $PKG$PREFIX/info -name "dir" -exec rm {} \; - find $PKG$PREFIX/info -type f -exec gzip -9 {} \; +find $PKG$PREFIX/man -type f -name "*.?" -exec gzip -9 {} \; +find $PKG$PREFIX/info -name "dir" -exec rm {} \; +find $PKG$PREFIX/info -type f -exec gzip -9 {} \; + +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; - chown -R root:root . - find . \ - \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; -) # Packaging -( cd $PKG - mkdir install - cat < $PKG/install/doinst.sh +mkdir install +cat < $PKG/install/doinst.sh cd /usr/info for file in \$(ls *.gz | grep -v ".*\-[0-9]\+\.gz") do @@ -91,7 +77,7 @@ do done EOF - cat < $PKG/install/slack-desc +cat < $PKG/install/slack-desc $PRGNAM: $PRGNAM (programming language) $PRGNAM: $PRGNAM: a programming language designed for scientific computations. @@ -105,6 +91,5 @@ $PRGNAM: http://www.rpl2.net/ $PRGNAM: EOF - makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz -) +makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz diff --git a/doc/Essential-JavaScript-Design-Patterns/Essential-JavaScript-Design-Patterns.SlackBuild b/doc/Essential-JavaScript-Design-Patterns/Essential-JavaScript-Design-Patterns.SlackBuild new file mode 100755 index 00000000..55aab02f --- /dev/null +++ b/doc/Essential-JavaScript-Design-Patterns/Essential-JavaScript-Design-Patterns.SlackBuild @@ -0,0 +1,47 @@ +#!/bin/sh + +CWD=$(pwd) + +PRGNAM=$(basename $CWD) +VERSION=1.1 +BUILD=1 + +ARCH=noarch + +TAG=cyco +TMP=/tmp/$TAG +PKG=$TMP/pkg-$PRGNAM +OUTPUT=/tmp + +PREFIX=/usr + +# cleaning +rm -fr $PKG + +# get sources +[ ! -e $CWD/essentialjsdesignpatterns$VERSION.zip ] && wget -c http://www.addyosmani.com/resources/essentialjsdesignpatterns/book/essentialjsdesignpatterns$VERSION.zip -O $CWD/essentialjsdesignpatterns$VERSION.zip + +mkdir -p $PKG$PREFIX/doc/$PRGNAM +unzip $CWD/essentialjsdesignpatterns$VERSION.zip -d $PKG$PREFIX/doc/$PRGNAM +rm -fr $PKG$PREFIX/doc/$PRGNAM/__MACOSX +find $PKG$PREFIX/doc/$PRGNAM/ -name .DS_Store -delete + +cd $PKG +mkdir -p install +cat < install/slack-desc +$PRGNAM: $PRGNAM («Essential JavaScript Patterns» book) +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: Authored By Addy Osmani +$PRGNAM: Copyright 2011 © Addy Osmani. +$PRGNAM: +$PRGNAM: +$PRGNAM: http://www.addyosmani.com/resources/essentialjsdesignpatterns/book/ +EOF + +chown -R root:root * + +makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz diff --git a/doc/Network-programming-with-Go/Network-programming-with-Go.SlackBuild b/doc/Network-programming-with-Go/Network-programming-with-Go.SlackBuild new file mode 100755 index 00000000..714e6ae6 --- /dev/null +++ b/doc/Network-programming-with-Go/Network-programming-with-Go.SlackBuild @@ -0,0 +1,55 @@ +#!/bin/sh + +CWD=$(pwd) + +PRGNAM=$(basename $CWD) +VERSION=$(date +"%Y.%m.%d_%H.%M") +BUILD=1 + +ARCH=noarch + +TAG=cyco +TMP=/tmp/$TAG +PKG=$TMP/pkg-$PRGNAM +OUTPUT=/tmp + +REPOSITORIES=/home/cycojesus/projets/packages/repositories/ +PREFIX=/usr + +# cleaning +rm -fr $PKG + +# get sources +if [ ! -e $REPOSITORIES/$PRGNAM ]; then + mkdir -p $REPOSITORIES/$PRGNAM + ( cd $REPOSITORIES/$PRGNAM + httrack http://jan.newmarch.name/go/index.html + ) +else + ( cd $REPOSITORIES/$PRGNAM + httrack --update + ) +fi + +mkdir -p $PKG$PREFIX/doc/ +cp -R $REPOSITORIES/$PRGNAM $PKG$PREFIX/doc/$PRGNAM + +cd $PKG +mkdir -p install +cat < install/slack-desc +$PRGNAM: $PRGNAM («Network programming with Go» book) +$PRGNAM: +$PRGNAM: An e-book on building network applications using the Google Go programming language. +$PRGNAM: +$PRGNAM: +$PRGNAM: Copyright Jan Newmarch, jan@newmarch.name +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: http://jan.newmarch.name/go/ +$PRGNAM: +EOF + +chown -R root:root * + +makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz diff --git a/doc/The-Scheme-Programming-Language/The-Scheme-Programming-Language.SlackBuild b/doc/The-Scheme-Programming-Language/The-Scheme-Programming-Language.SlackBuild new file mode 100755 index 00000000..46da7ddf --- /dev/null +++ b/doc/The-Scheme-Programming-Language/The-Scheme-Programming-Language.SlackBuild @@ -0,0 +1,55 @@ +#!/bin/sh + +CWD=$(pwd) + +PRGNAM=$(basename $CWD) +VERSION=$(date +"%Y.%m.%d_%H.%M") +BUILD=1 + +ARCH=noarch + +TAG=cyco +TMP=/tmp/$TAG +PKG=$TMP/pkg-$PRGNAM +OUTPUT=/tmp + +REPOSITORIES=/home/cycojesus/projets/packages/repositories/ +PREFIX=/usr + +# cleaning +rm -fr $PKG + +# get sources +if [ ! -e $REPOSITORIES/$PRGNAM ]; then + mkdir -p $REPOSITORIES/$PRGNAM + ( cd $REPOSITORIES/$PRGNAM + httrack http://scheme.com/tspl4/ + ) +else + ( cd $REPOSITORIES/$PRGNAM + httrack --update + ) +fi + +mkdir -p $PKG$PREFIX/doc/ +cp -R $REPOSITORIES/$PRGNAM $PKG$PREFIX/doc/$PRGNAM + +cd $PKG +mkdir -p install +cat < install/slack-desc +$PRGNAM: $PRGNAM («The Scheme Programming Language» book) +$PRGNAM: +$PRGNAM: Fourth Edition +$PRGNAM: +$PRGNAM: R. Kent Dybvig +$PRGNAM: +$PRGNAM: Illustrations by Jean-Pierre Hébert +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: http://scheme.com/tspl4/ +EOF + +chown -R root:root * + +makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz 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 +) diff --git a/doc/sinatra-book/sinatra-book.SlackBuild b/doc/sinatra-book/sinatra-book.SlackBuild new file mode 100755 index 00000000..edc5ce83 --- /dev/null +++ b/doc/sinatra-book/sinatra-book.SlackBuild @@ -0,0 +1,55 @@ +#!/bin/sh + +CWD=$(pwd) + +PRGNAM=$(basename $CWD) +VERSION=$(date +"%Y.%m.%d_%H.%M") +BUILD=1 + +ARCH=noarch + +TAG=cyco +TMP=/tmp/$TAG +PKG=$TMP/pkg-$PRGNAM +OUTPUT=/tmp + +REPOSITORIES=/home/cycojesus/projets/packages/repositories/ +PREFIX=/usr + +# cleaning +rm -fr $PKG + +# get sources +if [ ! -e $REPOSITORIES/$PRGNAM ]; then + mkdir -p $REPOSITORIES/$PRGNAM + ( cd $REPOSITORIES/$PRGNAM + httrack http://sinatra-book.gittr.com/ + ) +else + ( cd $REPOSITORIES/$PRGNAM + httrack --update + ) +fi + +mkdir -p $PKG$PREFIX/doc/ +cp -R $REPOSITORIES/$PRGNAM $PKG$PREFIX/doc/$PRGNAM + +cd $PKG +mkdir -p install +cat < install/slack-desc +$PRGNAM: $PRGNAM (A book about the sinatra ruby micro-framework) +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: http://sinatra-book.gittr.com/ +EOF + +chown -R root:root * + +makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz diff --git a/doc/starting-forth/starting-forth.SlackBuild b/doc/starting-forth/starting-forth.SlackBuild index 0f7afbcd..05a2ea45 100755 --- a/doc/starting-forth/starting-forth.SlackBuild +++ b/doc/starting-forth/starting-forth.SlackBuild @@ -3,7 +3,7 @@ CWD=$(pwd) PRGNAM=$(basename $CWD) -VERSION=$(date +"%Y.%m.%d_%M") +VERSION=$(date +"%Y.%m.%d_%H.%M") BUILD=1 ARCH=noarch diff --git a/e/emacs/emacs.SlackBuild b/e/emacs/emacs.SlackBuild index 52ea9c8a..1365d651 100755 --- a/e/emacs/emacs.SlackBuild +++ b/e/emacs/emacs.SlackBuild @@ -27,10 +27,10 @@ # Modified by Patrick Volkerding # Modified by Gwenhael Le Moine -ONLY_X11=1 +ONLY_X11=${ONLY_X11:=NO} PRGNAM=emacs -BRANCH=trunk +BRANCH=${BRANCH:=trunk} VERSION=${VERSION:-${BRANCH}_$(date +"%Y.%m.%d_%H.%M")} ARCH=${ARCH:-$(uname -m)} NUMJOBS=${NUMJOBS:-" -j3 "} @@ -50,7 +50,7 @@ fi CWD=$(pwd) TAG=cyco OUTPUT=/tmp -TMP=${TMP:-/tmp} +TMP=${TMP:-/tmp/$TAG} PKG=$TMP/pkg-$PRGNAM REPOSITORIES=/home/cycojesus/projets/packages/repositories/ @@ -70,10 +70,7 @@ if [ ! -e $CWD/$PRGNAM-$VERSION.tar.?z* ] ; then ( cd $REPOSITORIES/$PRGNAM/$BRANCH [ -e Makefile ] && make distclean bzr pull - # bzr update ) - # FIXME: Hackish hack - # cp -R $REPOSITORIES/$PRGNAM/$BRANCH $TMP/$PRGNAM-$VERSION mkdir -p $TMP/$PRGNAM-$VERSION SRCDIR=$REPOSITORIES/$PRGNAM/$BRANCH else @@ -99,8 +96,6 @@ $SRCDIR/configure \ --program-suffix="" \ --mandir=/usr/man \ --infodir=/usr/info \ - --enable-static=no \ - --enable-shared=yes \ --with-x \ --with-x-toolkit=gtk \ --without-gconf \ @@ -113,59 +108,57 @@ make install DESTDIR=$PKG || exit 1 EMACS_VERSION=$(echo "$(basename $(ls $PKG/usr/bin/emacs-2*))" | grep -o "[0-9\.]*") ( cd $PKG/usr/bin - rm emacs - mv emacs-${EMACS_VERSION} emacs-${EMACS_VERSION}-with-x11 - cat < $PKG/usr/bin/emacs + rm emacs + mv emacs-${EMACS_VERSION} emacs-${EMACS_VERSION}-with-x11 + cat < $PKG/usr/bin/emacs #!/bin/sh XMODIFIERS= GTK_IM_MODULE= QT_IM_MODULE= /usr/bin/emacs-${EMACS_VERSION}-with-x11 "\$@" EOF - chmod +x $PKG/usr/bin/emacs + chmod +x $PKG/usr/bin/emacs ) -if [ $ONLY_X11 == 0 ] ; then +if [ ! "x$ONLY_X11" == "xYES" ] ; then # Also add a version of the binary that is not linked to X11: -cd $TMP -rm -rf $PRGNAM-$VERSION -if [ ! -e $CWD/$PRGNAM-$VERSION.tar.?z* ] ; then - # FIXME: Hackish hack - cp -R $REPOSITORIES/$PRGNAM/$BRANCH $TMP/$PRGNAM-$VERSION - SRCDIR=$REPOSITORIES/$PRGNAM/$BRANCH -else - tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* || exit 1 - SRCDIR=. -fi + cd $TMP + rm -rf $PRGNAM-$VERSION + if [ ! -e $CWD/$PRGNAM-$VERSION.tar.?z* ] ; then + [ -e $TMP/$PRGNAM-$VERSION ] && rm -fr $TMP/$PRGNAM-$VERSION + mkdir -p $TMP/$PRGNAM-$VERSION + SRCDIR=$REPOSITORIES/$PRGNAM/$BRANCH + else + tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* || exit 1 + SRCDIR=. + fi -cd $PRGNAM-$VERSION || exit 1 -chown -R root:root . -find . \ - \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + cd $PRGNAM-$VERSION || exit 1 + chown -R root:root . + find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -$SRCDIR/configure \ - --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --program-prefix="" \ - --program-suffix="" \ - --mandir=/usr/man \ - --infodir=/usr/info \ - --enable-static=no \ - --enable-shared=yes \ - --with-x=no \ - --without-gconf \ - --build=${ARCH}-slackware-linux + CFLAGS="$SLKCFLAGS" \ + CXXFLAGS="$SLKCFLAGS" \ + $SRCDIR/configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --program-prefix="" \ + --program-suffix="" \ + --mandir=/usr/man \ + --infodir=/usr/info \ + --with-x=no \ + --without-gconf \ + --build=${ARCH}-slackware-linux + + make $NUMJOBS || make || exit 1 -make $NUMJOBS || make || exit 1 - -# Install the non-x version: -cat src/emacs > $PKG/usr/bin/emacs-${EMACS_VERSION}-no-x11 -chown root:root $PKG/usr/bin/emacs-${EMACS_VERSION}-no-x11 -chmod 1755 $PKG/usr/bin/emacs-${EMACS_VERSION}-no-x11 + # Install the non-x version: + cat src/emacs > $PKG/usr/bin/emacs-${EMACS_VERSION}-no-x11 + chown root:root $PKG/usr/bin/emacs-${EMACS_VERSION}-no-x11 + chmod 1755 $PKG/usr/bin/emacs-${EMACS_VERSION}-no-x11 fi # I don't care for broken permissions. diff --git a/e/emacswiki/emacswiki.SlackBuild b/e/emacswiki/emacswiki.SlackBuild index baebd015..1069a9ec 100755 --- a/e/emacswiki/emacswiki.SlackBuild +++ b/e/emacswiki/emacswiki.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh PRGNAM=emacswiki -VERSION=svn_$(date +"%Y.%m.%d_%H.%M") +VERSION=$(date +"%Y.%m.%d_%H.%M") BUILD=${BUILD:-1} ARCH=emacs @@ -9,7 +9,7 @@ ARCH=emacs CWD=$(pwd) TAG=cyco OUTPUT=/tmp -TMP=${TMP:-/tmp} +TMP=${TMP:-/tmp/$TAG} PKG=$TMP/pkg-$PRGNAM REPOSITORIES=/home/cycojesus/projets/packages/repositories @@ -36,6 +36,7 @@ mkdir -p $PKG/$PREFIX/doc/ mkdir -p $PKG$PREFIX/share/emacs/site-lisp/$PRGNAM/ ( cd $PKG$PREFIX/share/emacs/site-lisp/$PRGNAM/ for el in \ + "quick-jump.el" \ "alarm.el" \ "multi-term.el" \ "lusty-explorer.el" \ @@ -71,11 +72,9 @@ mkdir -p $PKG$PREFIX/share/emacs/site-lisp/$PRGNAM/ "cus-edit+.el" \ "xml-rpc.el" \ "weblogger.el" \ - "color-theme-tango.el" \ - "color-theme-inkpot.el" \ "newsticker-notify.el" ; do - ln -s "$PREFIX/doc/$PRGNAM/$el" "$el" ; + [ -e "$PREFIX/doc/$PRGNAM/$el" ] && ln -s "$PREFIX/doc/$PRGNAM/$el" "$el" ; done ) diff --git a/e/ruby-misc-el/ruby-misc-el.SlackBuild b/e/ruby-misc-el/ruby-misc-el.SlackBuild index 95de1cc5..cf0d9131 100755 --- a/e/ruby-misc-el/ruby-misc-el.SlackBuild +++ b/e/ruby-misc-el/ruby-misc-el.SlackBuild @@ -8,7 +8,7 @@ ARCH=emacs CWD=$(pwd) TAG=cyco OUTPUT=/tmp -TMP=${TMP:-/tmp} +TMP=${TMP:-/tmp/$TAG} PKG=$TMP/pkg-ruby-misc-el rm -rf $PKG diff --git a/fonts/AnonymousPro/AnonymousPro.SlackBuild b/fonts/AnonymousPro/AnonymousPro.SlackBuild index 1fd64ab2..36e9af14 100755 --- a/fonts/AnonymousPro/AnonymousPro.SlackBuild +++ b/fonts/AnonymousPro/AnonymousPro.SlackBuild @@ -9,6 +9,7 @@ TAG=${TAG:-cyco} CWD=$(pwd) # Place to build (TMP) package (PKG) and output (OUTPUT) the program: +TMP=${TMP:=/tmp/$TAG} PKG=$TMP/pkg-$PRGNAM OUTPUT=${OUTPUT:-/tmp} diff --git a/fonts/Bodoni-SvtyTwo-OS-ITC-TT/Bodoni-SvtyTwo-OS-ITC-TT.SlackBuild b/fonts/Bodoni-SvtyTwo-OS-ITC-TT/Bodoni-SvtyTwo-OS-ITC-TT.SlackBuild index 1ff4bdab..ace5beee 100755 --- a/fonts/Bodoni-SvtyTwo-OS-ITC-TT/Bodoni-SvtyTwo-OS-ITC-TT.SlackBuild +++ b/fonts/Bodoni-SvtyTwo-OS-ITC-TT/Bodoni-SvtyTwo-OS-ITC-TT.SlackBuild @@ -9,9 +9,9 @@ TAG=${TAG:-cyco} CWD=$(pwd) # Place to build (TMP) package (PKG) and output (OUTPUT) the program: -PKG=$TMP/pkg-$PRGNAM TAG=cyco TMP=/tmp/$TAG +PKG=$TMP/pkg-$PRGNAM OUTPUT=${OUTPUT:-/tmp} # Create working directories: diff --git a/fonts/CentSchBook-Mono/CentSchBook-Mono.SlackBuild b/fonts/CentSchBook-Mono/CentSchBook-Mono.SlackBuild index b7907a10..f7fef8b5 100755 --- a/fonts/CentSchBook-Mono/CentSchBook-Mono.SlackBuild +++ b/fonts/CentSchBook-Mono/CentSchBook-Mono.SlackBuild @@ -9,9 +9,9 @@ TAG=${TAG:-cyco} CWD=$(pwd) # Place to build (TMP) package (PKG) and output (OUTPUT) the program: -PKG=$TMP/pkg-$PRGNAM TAG=cyco TMP=/tmp/$TAG +PKG=$TMP/pkg-$PRGNAM OUTPUT=${OUTPUT:-/tmp} # Create working directories: diff --git a/fonts/DroidSansMonoDotted/DroidSansMonoDotted.SlackBuild b/fonts/DroidSansMonoDotted/DroidSansMonoDotted.SlackBuild index 83336e1a..6e8c0dbf 100755 --- a/fonts/DroidSansMonoDotted/DroidSansMonoDotted.SlackBuild +++ b/fonts/DroidSansMonoDotted/DroidSansMonoDotted.SlackBuild @@ -9,6 +9,7 @@ TAG=${TAG:-cyco} CWD=$(pwd) # Place to build (TMP) package (PKG) and output (OUTPUT) the program: +TMP=${TMP:=/tmp/$TAG} PKG=$TMP/pkg-$PRGNAM OUTPUT=${OUTPUT:-/tmp} diff --git a/fonts/DroidSansMonoSlashed/DroidSansMonoSlashed.SlackBuild b/fonts/DroidSansMonoSlashed/DroidSansMonoSlashed.SlackBuild index 6a84bb03..e6c205db 100755 --- a/fonts/DroidSansMonoSlashed/DroidSansMonoSlashed.SlackBuild +++ b/fonts/DroidSansMonoSlashed/DroidSansMonoSlashed.SlackBuild @@ -9,6 +9,7 @@ TAG=${TAG:-cyco} CWD=$(pwd) # Place to build (TMP) package (PKG) and output (OUTPUT) the program: +TMP=${TMP:=/tmp/$TAG} PKG=$TMP/pkg-$PRGNAM OUTPUT=${OUTPUT:-/tmp} diff --git a/fonts/Hoefler-Text/Hoefler-Text.SlackBuild b/fonts/Hoefler-Text/Hoefler-Text.SlackBuild index 4d790b05..65ff1a0f 100755 --- a/fonts/Hoefler-Text/Hoefler-Text.SlackBuild +++ b/fonts/Hoefler-Text/Hoefler-Text.SlackBuild @@ -9,9 +9,9 @@ TAG=${TAG:-cyco} CWD=$(pwd) # Place to build (TMP) package (PKG) and output (OUTPUT) the program: -PKG=$TMP/pkg-$PRGNAM TAG=cyco -TMP=/tmp/$TAG +TMP=${TMP:=/tmp/$TAG} +PKG=$TMP/pkg-$PRGNAM OUTPUT=${OUTPUT:-/tmp} # Create working directories: diff --git a/fonts/MarainScript/MarainScript.SlackBuild b/fonts/MarainScript/MarainScript.SlackBuild index 22feaef4..6d1785d0 100755 --- a/fonts/MarainScript/MarainScript.SlackBuild +++ b/fonts/MarainScript/MarainScript.SlackBuild @@ -9,6 +9,7 @@ TAG=${TAG:-cyco} CWD=$(pwd) # Place to build (TMP) package (PKG) and output (OUTPUT) the program: +TMP=${TMP:=/tmp/$TAG} PKG=$TMP/pkg-$PRGNAM OUTPUT=${OUTPUT:-/tmp} diff --git a/fonts/cantarell-fonts/cantarell-fonts.SlackBuild b/fonts/cantarell-fonts/cantarell-fonts.SlackBuild index f1ae00af..dabccdc9 100755 --- a/fonts/cantarell-fonts/cantarell-fonts.SlackBuild +++ b/fonts/cantarell-fonts/cantarell-fonts.SlackBuild @@ -9,6 +9,7 @@ TAG=${TAG:-cyco} CWD=$(pwd) # Place to build (TMP) package (PKG) and output (OUTPUT) the program: +TMP=${TMP:=/tmp/$TAG} PKG=$TMP/pkg-$PRGNAM OUTPUT=${OUTPUT:-/tmp} diff --git a/fonts/exljbris/exljbris.SlackBuild b/fonts/exljbris/exljbris.SlackBuild index bfe8c016..b8e52677 100755 --- a/fonts/exljbris/exljbris.SlackBuild +++ b/fonts/exljbris/exljbris.SlackBuild @@ -9,9 +9,9 @@ BUILD=${BUILD:-1} TAG=${TAG:-cyco} # Place to build (TMP) package (PKG) and output (OUTPUT) the program: -PKG=$TMP/pkg-$PRGNAM TAG=cyco TMP=/tmp/$TAG +PKG=$TMP/pkg-$PRGNAM OUTPUT=${OUTPUT:-/tmp} # Create working directories: diff --git a/fonts/fontsquirrel.com-Monospaced/fontsquirrel.com-Monospaced.SlackBuild b/fonts/fontsquirrel.com-Monospaced/fontsquirrel.com-Monospaced.SlackBuild index 6a4ed1da..cc1345c2 100755 --- a/fonts/fontsquirrel.com-Monospaced/fontsquirrel.com-Monospaced.SlackBuild +++ b/fonts/fontsquirrel.com-Monospaced/fontsquirrel.com-Monospaced.SlackBuild @@ -9,9 +9,9 @@ TAG=${TAG:-cyco} CWD=$(pwd) # Place to build (TMP) package (PKG) and output (OUTPUT) the program: -PKG=$TMP/pkg-$PRGNAM TAG=cyco TMP=/tmp/$TAG +PKG=$TMP/pkg-$PRGNAM OUTPUT=${OUTPUT:-/tmp} # Create working directories: diff --git a/fonts/googlefontdirectory/googlefontdirectory.SlackBuild b/fonts/googlefontdirectory/googlefontdirectory.SlackBuild index 54571754..3e86a9b6 100755 --- a/fonts/googlefontdirectory/googlefontdirectory.SlackBuild +++ b/fonts/googlefontdirectory/googlefontdirectory.SlackBuild @@ -9,9 +9,9 @@ BUILD=${BUILD:-1} TAG=${TAG:-cyco} # Place to build (TMP) package (PKG) and output (OUTPUT) the program: -PKG=$TMP/pkg-$PRGNAM TAG=cyco TMP=/tmp/$TAG +PKG=$TMP/pkg-$PRGNAM OUTPUT=${OUTPUT:-/tmp} REPOSITORIES=/home/cycojesus/projets/packages/repositories/ diff --git a/fonts/helvetica/helvetica.SlackBuild b/fonts/helvetica/helvetica.SlackBuild index efcaf052..08f08cdf 100755 --- a/fonts/helvetica/helvetica.SlackBuild +++ b/fonts/helvetica/helvetica.SlackBuild @@ -9,6 +9,7 @@ BUILD=${BUILD:-1} TAG=${TAG:-cyco} # Place to build (TMP) package (PKG) and output (OUTPUT) the program: +TMP=${TMP:=/tmp/$TAG} PKG=$TMP/pkg-$PRGNAM OUTPUT=${OUTPUT:-/tmp} diff --git a/fonts/inconsolata/inconsolata.SlackBuild b/fonts/inconsolata/inconsolata.SlackBuild index 12c35d1f..45285c75 100755 --- a/fonts/inconsolata/inconsolata.SlackBuild +++ b/fonts/inconsolata/inconsolata.SlackBuild @@ -9,6 +9,7 @@ TAG=${TAG:-cyco} CWD=$(pwd) # Place to build (TMP) package (PKG) and output (OUTPUT) the program: +TMP=${TMP:=/tmp/$TAG} PKG=$TMP/pkg-$PRGNAM OUTPUT=${OUTPUT:-/tmp} diff --git a/fonts/mensch/mensch.SlackBuild b/fonts/mensch/mensch.SlackBuild index 97e02308..e5c98ca8 100755 --- a/fonts/mensch/mensch.SlackBuild +++ b/fonts/mensch/mensch.SlackBuild @@ -9,6 +9,7 @@ TAG=${TAG:-cyco} CWD=$(pwd) # Place to build (TMP) package (PKG) and output (OUTPUT) the program: +TMP=${TMP:=/tmp/$TAG} PKG=$TMP/pkg-$PRGNAM OUTPUT=${OUTPUT:-/tmp} diff --git a/fonts/otf-District-Thin/otf-District-Thin.SlackBuild b/fonts/otf-District-Thin/otf-District-Thin.SlackBuild index 531425c7..4c35cb23 100755 --- a/fonts/otf-District-Thin/otf-District-Thin.SlackBuild +++ b/fonts/otf-District-Thin/otf-District-Thin.SlackBuild @@ -9,6 +9,7 @@ TAG=${TAG:-cyco} CWD=$(pwd) # Place to build (TMP) package (PKG) and output (OUTPUT) the program: +TMP=${TMP:=/tmp/$TAG} PKG=$TMP/pkg-$PRGNAM OUTPUT=${OUTPUT:-/tmp} diff --git a/fonts/ttf-CharisSIL/ttf-CharisSIL.SlackBuild b/fonts/ttf-CharisSIL/ttf-CharisSIL.SlackBuild index c7ab109a..840d7785 100755 --- a/fonts/ttf-CharisSIL/ttf-CharisSIL.SlackBuild +++ b/fonts/ttf-CharisSIL/ttf-CharisSIL.SlackBuild @@ -9,6 +9,7 @@ TAG=${TAG:-cyco} CWD=$(pwd) # Place to build (TMP) package (PKG) and output (OUTPUT) the program: +TMP=${TMP:=/tmp/$TAG} PKG=$TMP/pkg-$PRGNAM OUTPUT=${OUTPUT:-/tmp} diff --git a/fonts/ttf-DoulosSIL/ttf-DoulosSIL.SlackBuild b/fonts/ttf-DoulosSIL/ttf-DoulosSIL.SlackBuild index 1b261b09..ac206a43 100755 --- a/fonts/ttf-DoulosSIL/ttf-DoulosSIL.SlackBuild +++ b/fonts/ttf-DoulosSIL/ttf-DoulosSIL.SlackBuild @@ -9,6 +9,7 @@ TAG=${TAG:-cyco} CWD=$(pwd) # Place to build (TMP) package (PKG) and output (OUTPUT) the program: +TMP=${TMP:=/tmp/$TAG} PKG=$TMP/pkg-$PRGNAM OUTPUT=${OUTPUT:-/tmp} diff --git a/fonts/ttf-MgOpen/ttf-MgOpen.SlackBuild b/fonts/ttf-MgOpen/ttf-MgOpen.SlackBuild index 0d2fde6b..01d51873 100755 --- a/fonts/ttf-MgOpen/ttf-MgOpen.SlackBuild +++ b/fonts/ttf-MgOpen/ttf-MgOpen.SlackBuild @@ -9,6 +9,7 @@ TAG=${TAG:-cyco} CWD=$(pwd) # Place to build (TMP) package (PKG) and output (OUTPUT) the program: +TMP=${TMP:=/tmp/$TAG} PKG=$TMP/pkg-$PRGNAM OUTPUT=${OUTPUT:-/tmp} diff --git a/fonts/ttf-gentium-basic/ttf-gentium-basic.SlackBuild b/fonts/ttf-gentium-basic/ttf-gentium-basic.SlackBuild index 17962fdf..11dd6726 100755 --- a/fonts/ttf-gentium-basic/ttf-gentium-basic.SlackBuild +++ b/fonts/ttf-gentium-basic/ttf-gentium-basic.SlackBuild @@ -9,6 +9,7 @@ TAG=${TAG:-cyco} CWD=$(pwd) # Place to build (TMP) package (PKG) and output (OUTPUT) the program: +TMP=${TMP:=/tmp/$TAG} PKG=$TMP/pkg-$PRGNAM OUTPUT=${OUTPUT:-/tmp} diff --git a/fonts/ttf-gentium/ttf-gentium.SlackBuild b/fonts/ttf-gentium/ttf-gentium.SlackBuild index 544830f9..b209306d 100755 --- a/fonts/ttf-gentium/ttf-gentium.SlackBuild +++ b/fonts/ttf-gentium/ttf-gentium.SlackBuild @@ -9,6 +9,7 @@ TAG=${TAG:-cyco} CWD=$(pwd) # Place to build (TMP) package (PKG) and output (OUTPUT) the program: +TMP=${TMP:=/tmp/$TAG} PKG=$TMP/pkg-$PRGNAM OUTPUT=${OUTPUT:-/tmp} diff --git a/fonts/ubuntu-font-family/ubuntu-font-family.SlackBuild b/fonts/ubuntu-font-family/ubuntu-font-family.SlackBuild deleted file mode 100755 index de25c1f8..00000000 --- a/fonts/ubuntu-font-family/ubuntu-font-family.SlackBuild +++ /dev/null @@ -1,73 +0,0 @@ -#!/bin/sh - -PRGNAM=$(basename $(pwd)) -VERSION=${VERSION:-0.69} -ARCH=font -BUILD=${BUILD:-1} -TAG=${TAG:-cyco} - -CWD=$(pwd) - -# Place to build (TMP) package (PKG) and output (OUTPUT) the program: -TAG=cyco -TMP=${TMP:-/tmp} -PKG=$TMP/pkg-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -# Create working directories: -mkdir -p $OUTPUT # place for the package to be saved -mkdir -p $PKG # place for the package to be built -rm -rf $PKG/* # always erase old package's contents -rm -rf $OUTPUT/{configure,make,install,error,makepkg}-$PRGNAM.log - # remove old log files - -FONTDIR="/usr/share/fonts/TTF" - -# Move the fonts into place: -mkdir -p $PKG$FONTDIR $PKG/usr/doc/$PRGNAM -( cd $PKG$FONTDIR/ - [ ! -e $CWD/$PRGNAM-$VERSION.zip ] && \ - wget -c http://font.ubuntu.com/download/ubuntu-font-family-$VERSION+ufl.zip -O $CWD/$PRGNAM-$VERSION.zip - unzip $CWD/$PRGNAM-$VERSION.zip - find . -type f -name \*.ttf -exec mv {} . \; - find . -type f -not -name \*.ttf -exec mv {} $PKG/usr/doc/$PRGNAM \; - find . -type d -exec rm -fr {} \; -) - -# Post-install script: -mkdir -p $PKG/install -cat < $PKG/install/doinst.sh -# Update X font indexes and the font cache: -if [ -x .$XPREF/bin/mkfontdir ]; then - chroot . $XPREF/bin/mkfontscale $FONTDIR - chroot . $XPREF/bin/mkfontdir $FONTDIR -fi -if [ -x .$XPREF/bin/fc-cache ]; then - chroot . $XPREF/bin/fc-cache -f $FONTDIR -fi -EOT - -# Add a package description: -mkdir -p $PKG/install -cat < $PKG/install/slack-desc -$PRGNAM: $PRGNAM (ubuntu font family) -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: -$PRGNAM: http://font.ubuntu.com/ -$PRGNAM: -EOF - -# Build the package: -cd $PKG -makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.tgz 2>&1 | tee $OUTPUT/makepkg-${PRGNAM}.log -cd $OUTPUT -md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.tgz > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.tgz.md5 -cd - -cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt - diff --git a/y/scribble/scribble.SlackBuild b/y/scribble/scribble.SlackBuild index 1a01afa7..e4ec8cf8 100755 --- a/y/scribble/scribble.SlackBuild +++ b/y/scribble/scribble.SlackBuild @@ -8,7 +8,7 @@ TMP=/tmp/$TAG PRGNAM=$(basename $CWD) VERSION=1.11-1 ARCH=${ARCH:-$(uname -m)} -BUILD=1 +BUILD=3 PKG=$TMP/pkg-$PRGNAM @@ -26,6 +26,15 @@ find . -perm 777 -exec chmod 755 {} \; make prefix=$PKG/usr mandir=$PKG/usr/man +# Racket also has a 'scribble' binary in /usr/bin +# Scribble's scribble is in /usr/games but Racket's steal its place in $PATH +( cd $PKG/usr/games/ + ln -s scribble scribble-scrabble +) +( cd $PKG/usr/man/man6/ + ln -s scribble.6.gz scribble-scrabble.6.gz +) + # Compress the man page(s) [ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;