system/image-analyzer: Added (analyzer of disc images)
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
This commit is contained in:
parent
7c41f40cfa
commit
3be3080a7e
|
@ -0,0 +1,7 @@
|
|||
Image Analyzer is a simple Gtk+ application that displays tree structure
|
||||
of disc image created by libMirage.
|
||||
It is mostly intended as a demonstration of libMirage API use, although
|
||||
it can be also used to verify that an image is correctly handled by
|
||||
libMirage.
|
||||
|
||||
This requires libmirage and gtkextra
|
|
@ -0,0 +1,3 @@
|
|||
if [ -x /usr/bin/update-desktop-database ]; then
|
||||
/usr/bin/update-desktop-database usr/share/applications >/dev/null 2>&1
|
||||
fi
|
|
@ -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}
|
|
@ -0,0 +1,12 @@
|
|||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Name=Image Analyzer
|
||||
Comment=Analyze optical media (CD/DVD) images
|
||||
TryExec=image-analyzer
|
||||
Exec=image-analyzer %F
|
||||
MimeType=application/libmirage-image;application/x-cd-image;application/x-cue;application/x-cdrdao-toc;
|
||||
Icon=image-analyzer
|
||||
Terminal=false
|
||||
Categories=System;
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="image-analyzer"
|
||||
VERSION="svn_v722"
|
||||
HOMEPAGE="http://cdemu.sourceforge.net/pkg_analyzer.php"
|
||||
DOWNLOAD="http://www.nielshorn.net/_download/slackware/source/image-analyzer-svn_v722.tar.gz"
|
||||
MD5SUM="8822808f04176fc90ff84ef300f6fd46"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Niels Horn"
|
||||
EMAIL="niels.horn@gmail.com"
|
||||
APPROVED="Erik Hanson"
|
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|'
|
||||
# on the right side marks the last column you can put a character in. You must
|
||||
# make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
image-analyzer: image-analyzer (analyzer of disc images)
|
||||
image-analyzer:
|
||||
image-analyzer: Image Analyzer is a simple Gtk+ application that displays tree
|
||||
image-analyzer: structure of disc image created by libMirage.
|
||||
image-analyzer: It is mostly intended as a demonstration of libMirage API use,
|
||||
image-analyzer: although it can be also used to verify that an image is correctly
|
||||
image-analyzer: handled by libMirage.
|
||||
image-analyzer:
|
||||
image-analyzer: Homepage: http://cdemu.sourceforge.net/pkg_analyzer.php
|
||||
image-analyzer:
|
||||
image-analyzer:
|
Loading…
Reference in New Issue