diff options
Diffstat (limited to 'misc/fileinfo/fileinfo.SlackBuild')
-rw-r--r-- | misc/fileinfo/fileinfo.SlackBuild | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/misc/fileinfo/fileinfo.SlackBuild b/misc/fileinfo/fileinfo.SlackBuild deleted file mode 100644 index 2d8486ab8855..000000000000 --- a/misc/fileinfo/fileinfo.SlackBuild +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/sh - -PRGNAM=fileinfo -VERSION=1.0.4 -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 - -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" -elif [ "$ARCH" = "s390" ]; then - SLKCFLAGS="-O2" -fi - -set -e - -rm -rf $TMP/$PRGNAM-$VERSION $PKG -mkdir -p $TMP $PKG $OUTPUT -cd $TMP -tar xvf $CWD/Fileinfo-$VERSION.tgz -cd Fileinfo-$VERSION -chown -R root:root . -chmod -R u+w,go+r-w,a-s . - -phpize -CFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix=/usr -make -make install INSTALL_ROOT=$PKG - -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - CREDITS \ - $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.${PKGTYPE:-tgz} |