diff options
author | dsomero <xgizzmo@slackbuilds.org> | 2012-09-29 20:10:33 -0400 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-09-30 20:01:03 -0500 |
commit | 1a95f18e55ed9b53db0cc3feb4eb7051c0130286 (patch) | |
tree | 9485ddd25d36471e6ffb41734a51e6dc02b16491 /libraries/librtfcomp | |
parent | 16a2ea6f51342e8c1da908160bb5508bd470e141 (diff) |
libraries/librtfcomp: Fixed (Don't overwrite /usr/bin/test)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/librtfcomp')
-rw-r--r-- | libraries/librtfcomp/librtfcomp.SlackBuild | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/libraries/librtfcomp/librtfcomp.SlackBuild b/libraries/librtfcomp/librtfcomp.SlackBuild index 261fa756d05ef..aa76e96341dc8 100644 --- a/libraries/librtfcomp/librtfcomp.SlackBuild +++ b/libraries/librtfcomp/librtfcomp.SlackBuild @@ -2,17 +2,15 @@ # Slackware build script for librtfcomp # Written by Lionel Young (redtricycle@gmail.com) -PRGNAM=librtfcomp +PRGNAM=librtfcomp VERSION=${VERSION:-1.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi @@ -36,7 +34,7 @@ else LIBDIRSUFFIX="" fi -set -e # Exit on most errors +set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT @@ -45,7 +43,6 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION -# Permissions chown -R root:root . find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -53,7 +50,6 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# Configure CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -65,15 +61,16 @@ CXXFLAGS="$SLKCFLAGS" \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --build=$ARCH-slackware-linux -# Compile the application and install it into the $PKG directory make make install DESTDIR=$PKG -# Strip binaries and libraries +# File /usr/bin/test would be overwritten +# Per fedora: upstream said that these are not needed +rm -fr $PKG/usr/bin/ + find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -# Documentation mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ LICENCE CHANGELOG \ |