Merge branch 'master' of github.com:cycojesus/slackbuilds

This commit is contained in:
Gwenhael Le Moine 2011-10-05 09:33:55 +02:00
commit 4d3c70ef1c
3 changed files with 70 additions and 13 deletions

View file

@ -4,7 +4,7 @@ set -x -e
CWD=$(pwd)
PRGNAM=$(basename $CWD)
VERSION=${VERSION:-1.3.0-alpha4}
VERSION=${VERSION:-1.3.0}
ARCH=${ARCH:-java}
BUILD=${BUILD:-1}
@ -21,7 +21,7 @@ rm -fr $PKG
# do we have the sources?
if [ ! -e $CWD/$PRGNAM-$VERSION.zip ] ; then
( cd $CWD
wget -c --no-check-certificate http://github.com/downloads/clojure/clojure/$PRGNAM-$VERSION.zip
wget -c http://repo1.maven.org/maven2/org/clojure/clojure/$VERSION/clojure-$VERSION.zip
)
fi
@ -44,19 +44,18 @@ java -jar $PREFIX/libexec/$PRGNAM-$VERSION/clojure.jar \$@
EOF
chmod +x $PKG$PREFIX/bin/$PRGNAM
( cd $PKG$PREFIX/libexec/$PRGNAM-$VERSION
mv *.html *.txt test/ $PKG$PREFIX/doc/$PRGNAM-$VERSION
cd $PKG$PREFIX/libexec/$PRGNAM-$VERSION
mv doc/ *.html *.txt test/ $PKG$PREFIX/doc/$PRGNAM-$VERSION
rm *.xml .gitignore
rm -r classes src
rm *.xml #.gitignore
rm -r src #classes
rm $PRGNAM.jar
ln -s $PRGNAM-$VERSION.jar $PRGNAM.jar
rm $PRGNAM-sources.jar
ln -s $PRGNAM-sources-$VERSION.jar $PRGNAM-sources.jar
rm $PRGNAM-slim.jar
ln -s $PRGNAM-slim-$VERSION.jar $PRGNAM-slim.jar
)
rm $PRGNAM.jar
ln -s $PRGNAM-$VERSION.jar $PRGNAM.jar
# rm $PRGNAM-sources.jar
# ln -s $PRGNAM-sources-$VERSION.jar $PRGNAM-sources.jar
# rm $PRGNAM-slim.jar
# ln -s $PRGNAM-slim-$VERSION.jar $PRGNAM-slim.jar
# packaging
cd $PKG

View file

@ -0,0 +1,57 @@
#!/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
REPOSITORIES=/home/installs/SlackBuilds/repositories
PREFIX=/usr
# cleaning
rm -fr $PKG
# get sources
if [ ! -e $REPOSITORIES/$PRGNAM ]; then
mkdir -p $REPOSITORIES/$PRGNAM
( cd $REPOSITORIES/$PRGNAM
httrack http://c.learncodethehardway.org/book -*.dmg -*.exe +*.txt
)
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 <<EOF > install/slack-desc
$PRGNAM: $PRGNAM («Learn C the Hard way» book)
$PRGNAM:
$PRGNAM: Zed Shaw Python learning book project, for C
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM: http://c.learncodethehardway.org/
$PRGNAM:
EOF
chown -R root:root *
makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
)

View file

@ -39,6 +39,7 @@ elfileget_or_update() {
cd $CWD/els
for el in \
"http://codphilosophy.com/software/auto-indent.el" \
"http://kanis.fr/hg/lisp/ivan/verbiste.el" \
"http://homepages.cs.ncl.ac.uk/phillip.lord/download/emacs/pabbrev.el" \
"http://xpt.sourceforge.net/tools/doc-mode/doc-mode.el" \