diff options
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} |