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

This commit is contained in:
Gwenhael Le Moine 2011-09-08 14:59:59 +02:00
commit cd6e9513ef
9 changed files with 187 additions and 6 deletions

View file

@ -0,0 +1,54 @@
#!/bin/sh
set -x
CWD=$(pwd)
PKGNAM=$(basename $CWD)
VERSION=${VERSION:-0}
BUILD=${BUILD:-1}
ARCH=noarch
TAG=cyco
TMP=${TMP:-/tmp/$TAG}
PKG=$TMP/pkg-$PKGNAM
OUTPUT=${OUTPUT:-/tmp}
# Cleaning
rm -fr $TMP/$PKGNAM-$VERSION
rm -fr $PKG
mkdir -p $PKG/
# $CWD/config is pre-configured alread (permissions and all)
cp -a $CWD/config/etc $PKG/
# Activate some non-default fonts adjustements
(cd $PKG/etc/fonts/conf.d
ln -s ../conf.avail/35-cycojesus.conf
ln -s ../conf.avail/10-sub-pixel-rgb.conf
ln -s ../conf.avail/10-autohint.conf
)
cd $PKG
# Cleaning
chown -R root:root .
# Packaging
mkdir install
cat <<EOF > install/slack-desc
$PKGNAM: $PKGNAM (Cycojesus' post-install configuration)
$PKGNAM:
$PKGNAM:
$PKGNAM:
$PKGNAM:
$PKGNAM:
$PKGNAM:
$PKGNAM:
$PKGNAM:
$PKGNAM:
$PKGNAM:
EOF
makepkg -l y -c n $OUTPUT/$PKGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz

View file

@ -0,0 +1,22 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<family>serif</family>
<prefer>
<family>Droid Serif</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Ubuntu</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Droid Sans Mono</family>
</prefer>
</alias>
</fontconfig>

View file

@ -0,0 +1,4 @@
#!/bin/sh
# "Fix" compilation on a multilib system
export LDFLAGS="-L/usr/lib64 "

View file

@ -0,0 +1,30 @@
#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local startup commands in here. Also, if you have
# anything that needs to be run at shutdown time you can
# make an /etc/rc.d/rc.local_shutdown script and put those
# commands in there.
# Start vboxdrv
# If you do not wish this to be executed here then comment it out,
# and the installer will skip it next time.
if [ -x /etc/rc.d/rc.vboxdrv ]; then
/etc/rc.d/rc.vboxdrv start
fi
# Start vboxballoonctrl-service
# If you do not wish this to be executed here then comment it out,
# and the installer will skip it next time.
if [ -x /etc/rc.d/rc.vboxballoonctrl-service ]; then
/etc/rc.d/rc.vboxballoonctrl-service start
fi
# Start vboxweb-service
# If you do not wish this to be executed here then comment it out,
# and the installer will skip it next time.
if [ -x /etc/rc.d/rc.vboxweb-service ]; then
/etc/rc.d/rc.vboxweb-service start
fi

View file

@ -0,0 +1,11 @@
#!/bin/sh
PKGS_REPO=/home/installs/PKGs
# Move all recently built packages into our packages repository
mkdir -p $PKGS_REPO
find /tmp -name \*.t\?z -maxdepth 1 -exec mv {} $PKGS_REPO \;
# Clean up said repository of obsolete (not installed) packages
cd $PKGS_REPO
for i in *.t?z; do [ ! -e /var/adm/packages/${i%.t?z} ] && rm $i; done

View file

@ -15,7 +15,7 @@ TMP=/tmp/$TAG
PKG=$TMP/pkg-$PRGNAM
OUTPUT=/tmp
NUMJOBS=${NUMJOBS:-" -j2 "}
NUMJOBS=${NUMJOBS:-" -j4 "}
SRC_URL="http://www.kernel.org/pub/linux/kernel/v$(echo \"$VERSION\" | sed 's|\([0-9]*\.[0-9]*\).*|\1|')$(echo \"$VERSION\" | grep -q \"\-rc\" && echo \"/testing\" )"

View file

@ -5,7 +5,8 @@ CWD=$(pwd)
PRGNAM=$(basename $CWD)
ARCH=java
VERSION=1.2.2
VERSION=2.0-preview
DIRVERSION=2.0
BUILD=1
TAG=cyco
@ -23,12 +24,13 @@ rm -fr $PKG
mkdir -p $PKG/opt $PKG$PREFIX/doc/$PRGNAM $PKG$PREFIX/bin
cd $PKG/opt
unzip $CWD/$PRGNAM-$VERSION.zip
mv $PRGNAM-$DIRVERSION $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
rm play.bat
[ -e play.bat ] && rm play.bat
chmod +x play
cd $PKG$PREFIX/doc/$PRGNAM
ln -s ../../../opt/$PRGNAM-$VERSION/COPYING
ln -s ../../../opt/$PRGNAM-$VERSION/README.textile
ln -s ../../../opt/$PRGNAM-$VERSION/documentation
ln -s ../../../opt/$PRGNAM-$VERSION/samples
cd $PKG$PREFIX/bin
ln -s ../../../opt/$PRGNAM-$VERSION/play

View file

@ -0,0 +1,58 @@
#!/bin/sh
CWD=$(pwd)
PRGNAM=$(basename $CWD)
VERSION=git$(date +"%Y.%m.%d_%H.%M")
BUILD=1
ARCH=$(uname -m)
REPOSITORIES=/home/installs/SlackBuilds/repositories
TAG=cyco
TMP=/tmp/$TAG
PKG=$TMP/pkg-$PRGNAM
OUTPUT=/tmp
PREFIX=/usr
# cleaning
rm -fr $PKG
# get sources
[ ! -e $REPOSITORIES ] && mkdir -p $REPOSITORIES
( cd $REPOSITORIES
if [ -e $REPOSITORIES/$PRGNAM ] ; then
( cd $REPOSITORIES/$PRGNAM
git pull
)
else
git clone https://github.com/bryanbibat/rails-3_0-tutorial.git $REPOSITORIES/$PRGNAM
fi
)
mkdir -p $PKG$PREFIX/doc/
cp -R $REPOSITORIES/$PRGNAM $PKG$PREFIX/doc/$PRGNAM
find $PKG$PREFIX/doc/$PRGNAM -name \.git\* -exec rm -fr {} \;
( cd $PKG
mkdir -p install
cat <<EOF > install/slack-desc
$PRGNAM: $PRGNAM (Ruby on Rails 3.0, a free student manual)
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM: https://github.com/bryanbibat/rails-3_0-tutorial
$PRGNAM:
EOF
chown -R root:root *
makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
)

View file

@ -4,7 +4,7 @@
CWD=$(pwd)
PRGNAM=$(basename $CWD)
VERSION=1.12
VERSION=1.13
ARCH=$(uname -m)
BUILD=1