slackbuilds/d/Kivy/Kivy.SlackBuild
Gwenhael Le Moine 2c99795a7c https fails if certificates aren't there
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
2012-01-11 11:15:38 +01:00

55 lines
1 KiB
Bash
Executable file

#!/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
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
# cleaning
rm -fr $PKG
rm -fr $PRGNAM-$VERSION
mkdir -p $TMP
[ ! -e $REPOSITORY ] \
&& git clone http://github.com/kivy/kivy.git $REPOSITORY \
|| (cd $REPOSITORY; git pull)
cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION
cd $TMP/$PRGNAM-$VERSION
python setup.py build
python setup.py install --root=$PKG
mkdir -p $PKG$PREFIX/doc/$PRGNAM
cp -R AUTHORS README COPYING doc/ $PKG$PREFIX/doc/$PRGNAM
cd $PKG
mkdir -p install
cat <<EOF > install/slack-desc
$PRGNAM: $PRGNAM (RAD library)
$PRGNAM:
$PRGNAM: Open source library for rapid development of applications
$PRGNAM: that make use of innovative user interfaces, such as multi-touch apps.
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM: http://kivy.org/
$PRGNAM:
EOF
chown -R root:root *
makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz