diff options
author | Niels Horn <niels.horn@gmail.com> | 2010-12-15 16:23:03 -0600 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-12-17 07:56:26 -0600 |
commit | 3be3080a7e38fc6bf3a679a10ce69fecc8622e4e (patch) | |
tree | a3cd8e73993cef306a0f06540339bbab6ed4d790 /system/image-analyzer/image-analyzer.SlackBuild | |
parent | 7c41f40cfa160914859ba0c5dea74f3eb97b77cb (diff) | |
download | slackbuilds-3be3080a7e38fc6bf3a679a10ce69fecc8622e4e.tar.gz |
system/image-analyzer: Added (analyzer of disc images)
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'system/image-analyzer/image-analyzer.SlackBuild')
-rw-r--r-- | system/image-analyzer/image-analyzer.SlackBuild | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/system/image-analyzer/image-analyzer.SlackBuild b/system/image-analyzer/image-analyzer.SlackBuild new file mode 100644 index 0000000000..01b82d2a22 --- /dev/null +++ b/system/image-analyzer/image-analyzer.SlackBuild @@ -0,0 +1,84 @@ +#!/bin/sh + +# Slackware build script for image-analyser +# Application to display tree structure of disc images + +# Written by Niels Horn <niels.horn@gmail.com> +# Revision date: 2010/11/01 + +PRGNAM=image-analyzer +VERSION=${VERSION:-svn_v722} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +GROUP=${GROUP:-cdrom} + +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" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +chmod -R a-s,u+rw,go+r-w . + +# This is from svn, so we need to run autogen first +./autogen.sh + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib$LIBDIRSUFFIX \ + --sysconfdir=/etc \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux + +make +make install-strip DESTDIR=$PKG + +mkdir -p $PKG/usr/share/{applications,pixmaps} +cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop +cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp AUTHORS ChangeLog COPYING INSTALL NEWS README \ + $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} |