diff options
author | Lionel Young <redtricycle@gmail.com> | 2010-05-12 23:28:21 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-12 23:28:21 +0200 |
commit | 30b3f40172dea68720b5d91c5e6813a7d3c583ca (patch) | |
tree | db7d35bec23efc0c4724c3d7663271787dcfa5d8 /desktop/sync-engine/sync-engine.SlackBuild | |
parent | 2b010ce19c23d3a16140c6e15ffc61ec781afcf2 (diff) |
desktop/sync-engine: Added to 12.2 repository
Diffstat (limited to 'desktop/sync-engine/sync-engine.SlackBuild')
-rw-r--r-- | desktop/sync-engine/sync-engine.SlackBuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/desktop/sync-engine/sync-engine.SlackBuild b/desktop/sync-engine/sync-engine.SlackBuild new file mode 100644 index 000000000000..98172ead708b --- /dev/null +++ b/desktop/sync-engine/sync-engine.SlackBuild @@ -0,0 +1,59 @@ +#!/bin/sh +# Slackware build script for sync-engine +# Written by Lionel Young (redtricycle@gmail.com) + +PRGNAM=sync-engine +VERSION=${VERSION:-0.13} +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" +fi + +set -e # Exit on most errors + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +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 {} \; + +python setup.py install --root=$PKG + +( cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; + for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + CHANGELOG COPYING \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +mv $PKG/usr/share/doc/sync-engine/* $PKG/usr/doc/$PRGNAM-$VERSION +rm -rf $PKG/usr/share +( cd $PKG/usr/doc ; ln -s $PRGNAM-$VERSION $PRGNAM ) + +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.tgz |