diff options
author | Iskar Enev <iskar.enev[@]gmail.com> | 2010-05-11 20:00:24 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-11 20:00:24 +0200 |
commit | c1ec4738f95c3450354bee6ba6e880d0f9ad2083 (patch) | |
tree | 48178876af5f321ee4a37317f15c280cc268bc18 /development/esvn/esvn.SlackBuild | |
parent | 298b9e3f352e8fe4fb7c7041275b08c183c9539c (diff) |
development/esvn: Added to 12.0 repository
Diffstat (limited to 'development/esvn/esvn.SlackBuild')
-rw-r--r-- | development/esvn/esvn.SlackBuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/development/esvn/esvn.SlackBuild b/development/esvn/esvn.SlackBuild new file mode 100644 index 0000000000000..cb82fa677c3a9 --- /dev/null +++ b/development/esvn/esvn.SlackBuild @@ -0,0 +1,61 @@ +#!/bin/sh + +# Slackware build script for esvn +# Written by Iskar Enev <iskar.enev[@]gmail.com> + +PRGNAM=esvn +VERSION=0.6.12.1 +PKGVERSION=0.6.12-1 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +DOCUMENTATION="AUTHORS ChangeLog COPYING html-docs/ docs/ LICENSE README" + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$PKGVERSION.tar.gz +mv $PRGNAM $PRGNAM-$VERSION +cd $PRGNAM-$VERSION +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +# This patch enables the use of Slackware compile flags and fixes the +# binary install targets (esvn and esvn-diff-wrapper) in the .mak files +patch -p0 < $CWD/esvn-Makefile.diff + +qmake "QMAKE_CXXFLAGS+=$SLKCFLAGS" "QMAKE_CFLAGS+=$SLKCFLAGS" esvn.pro +qmake "QMAKE_CXXFLAGS+=$SLKCFLAGS" "QMAKE_CFLAGS+=$SLKCFLAGS" esvn-diff-wrapper.pro +make +make install INSTALL_ROOT=$PKG + +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCUMENTATION $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz |