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

This commit is contained in:
Gwenhael Le Moine 2011-12-20 14:46:44 +01:00
commit dda84c9d1f
4 changed files with 91 additions and 9 deletions

View file

@ -5,14 +5,14 @@
# Written by Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
PRGNAM=gem2tgz
VERSION=1.2
VERSION=1.3
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
ARCH=noarch
SRCNAM="cycojesus-gem2tgz-v1.2-0-g3e84f91.tar.gz"
SRCDIRNAM="cycojesus-gem2tgz-3e84f91"
SRCNAM="cycojesus-gem2tgz-v1.3-0-g8e897f5.tar.gz"
SRCDIRNAM="cycojesus-gem2tgz-8e897f5/"
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}

View file

@ -1,8 +1,8 @@
PRGNAM="gem2tgz"
VERSION="1.2"
VERSION="1.3"
HOMEPAGE="http://github.com/cycojesus/gem2tgz"
DOWNLOAD="https://github.com/cycojesus/gem2tgz/tarball/v1.2"
MD5SUM="469c7e4b83d3091112783a6815564030"
DOWNLOAD="https://github.com/cycojesus/gem2tgz/tarball/v1.3"
MD5SUM="fccfc52c6753f9f2de2f547996cf335f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Gwenhael Le Moine"

View file

@ -7,7 +7,7 @@ VERSION=$(date +%Y.%m.%d_%H.%M)
ARCH=${ARCH:-x86_64}
BUILD=${BUILD:-1cyco}
NUMJOBS=${NUMJOBS:-" -j2 "}
NUMJOBS=${NUMJOBS:-" -j4 "}
REPOSITORIES=/home/installs/SlackBuilds/repositories
@ -15,7 +15,7 @@ PREFIX=/usr
TAG=cyco
OUTPUT=/tmp
TMP=${TMP:-/tmp}
TMP=${TMP:-/tmp/$TAG}
PKG=$TMP/pkg-$PRGNAM
rm -rf $PKG
mkdir -p $TMP $PKG
@ -62,7 +62,10 @@ echo "$ARCH" | grep -q "64" && sed -i 's|${PREFIX}/lib|${PREFIX}/lib64|g' wscrip
--prefix=$PREFIX
make $NUMJOBS PREFIX=$PREFIX
make install DESTDIR=$PKG PREFIX=$PREFIX
sed -i "s|\"node_prefix\": \"/usr\",|\"node_prefix\": \"$PKG/usr\",|g" options.gypi
make install
mv $PKG$PREFIX/share/man $PKG$PREFIX
rm -fr $PKG$PREFIX/share

79
l/libyaml/libyaml.SlackBuild Executable file
View file

@ -0,0 +1,79 @@
#!/bin/sh -x
# variables
VERSION=$(date +"%Y.%m.%d_%H.%M")
BUILD=1
TAG=cyco
OUTPUT=/tmp
TMP=/tmp/$TAG
CWD=$(pwd)
PRGNAM=$(basename $CWD)
PKG=$TMP/pkg-$PRGNAM
ARCH=$(uname -m)
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
PREFIX=/usr
# nettoyage préalable
rm -fr $PKG $TMP/$PRGNAM-$VERSION
mkdir -p $PKG
# mise en place
cd $TMP
if [ ! -e $REPOSITORY ] ; then
mkdir -p $(dirname $REPOSITORY)
# svn checkout http://svn.pyyaml.org/libyaml/trunk/ $REPOSITORY
svn checkout http://svn.pyyaml.org/libyaml/branches/stable/ $REPOSITORY
else
( cd $REPOSITORY
svn update
)
fi
cp -R $REPOSITORY $TMP/
cd $TMP/$PRGNAM
./bootstrap
./configure \
--prefix=$PREFIX \
--libdir=$PREFIX/lib$(echo "$ARCH" | grep -o 64)
--mandir=$PREFIX/man
make
make install DESTDIR=$PKG
# correction
cd $PKG
chown -R root:root *
find $PKG$PREFIX/man -name "*.?" -type f -exec gzip -9 {} \;
# embaumement
mkdir -p $PKG/install
cat <<EOF > $PKG/install/slack-desc
# 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------------------------------------------------------|
$PRGNAM: $PRGNAM (A C library for parsing and emitting YAML.)
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM: http://pyyaml.org/wiki/LibYAML
$PRGNAM:
EOF
# empaquetage
makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz