diff options
author | Iskar Enev <iskar.enev[@]gmail.com> | 2010-05-13 00:24:34 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:24:34 +0200 |
commit | bb1e8ad1ad9aa6981d965f04105c4fce86c93a3e (patch) | |
tree | c78d1e7c7214a32abb76657812e9b7a4f02307fb /development/esvn/esvn.SlackBuild | |
parent | 1c6648ea2816eeca36fcc82fae5d38c3df213cc9 (diff) | |
download | slackbuilds-bb1e8ad1ad9aa6981d965f04105c4fce86c93a3e.tar.gz |
development/esvn: Updated for version 0.6.12.1
Diffstat (limited to 'development/esvn/esvn.SlackBuild')
-rw-r--r-- | development/esvn/esvn.SlackBuild | 36 |
1 files changed, 28 insertions, 8 deletions
diff --git a/development/esvn/esvn.SlackBuild b/development/esvn/esvn.SlackBuild index cb82fa677c..13e6f3f210 100644 --- a/development/esvn/esvn.SlackBuild +++ b/development/esvn/esvn.SlackBuild @@ -5,7 +5,7 @@ PRGNAM=esvn VERSION=0.6.12.1 -PKGVERSION=0.6.12-1 +SRCVERSION=0.6.12-1 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -19,8 +19,13 @@ DOCUMENTATION="AUTHORS ChangeLog COPYING html-docs/ docs/ LICENSE README" if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi set -e @@ -29,24 +34,39 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$PKGVERSION.tar.gz +tar xvf $CWD/$PRGNAM-$SRCVERSION.tar.gz mv $PRGNAM $PRGNAM-$VERSION cd $PRGNAM-$VERSION chown -R root:root . -chmod -R u+w,go+r-w,a-s . +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 {} \; # 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 +PATH=$QTDIR"/bin":$PATH \ + qmake \ + "QMAKE_CXXFLAGS+=$SLKCFLAGS" \ + "QMAKE_CFLAGS+=$SLKCFLAGS" \ + esvn.pro +PATH=$QTDIR"/bin":$PATH \ + 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 + 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 @@ -58,4 +78,4 @@ 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 +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |