diff options
-rw-r--r-- | system/image-analyzer/README | 7 | ||||
-rw-r--r-- | system/image-analyzer/doinst.sh | 3 | ||||
-rw-r--r-- | system/image-analyzer/image-analyzer.SlackBuild | 84 | ||||
-rw-r--r-- | system/image-analyzer/image-analyzer.desktop | 12 | ||||
-rw-r--r-- | system/image-analyzer/image-analyzer.info | 10 | ||||
-rw-r--r-- | system/image-analyzer/image-analyzer.png | bin | 0 -> 30324 bytes | |||
-rw-r--r-- | system/image-analyzer/slack-desc | 19 |
7 files changed, 135 insertions, 0 deletions
diff --git a/system/image-analyzer/README b/system/image-analyzer/README new file mode 100644 index 0000000000000..3c755c8fb2bdc --- /dev/null +++ b/system/image-analyzer/README @@ -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 diff --git a/system/image-analyzer/doinst.sh b/system/image-analyzer/doinst.sh new file mode 100644 index 0000000000000..2e82bb7622c69 --- /dev/null +++ b/system/image-analyzer/doinst.sh @@ -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 diff --git a/system/image-analyzer/image-analyzer.SlackBuild b/system/image-analyzer/image-analyzer.SlackBuild new file mode 100644 index 0000000000000..01b82d2a22d33 --- /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} diff --git a/system/image-analyzer/image-analyzer.desktop b/system/image-analyzer/image-analyzer.desktop new file mode 100644 index 0000000000000..ab10d347b194d --- /dev/null +++ b/system/image-analyzer/image-analyzer.desktop @@ -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; + diff --git a/system/image-analyzer/image-analyzer.info b/system/image-analyzer/image-analyzer.info new file mode 100644 index 0000000000000..c3b1ebd78afbe --- /dev/null +++ b/system/image-analyzer/image-analyzer.info @@ -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" diff --git a/system/image-analyzer/image-analyzer.png b/system/image-analyzer/image-analyzer.png Binary files differnew file mode 100644 index 0000000000000..a03b315e8cfd4 --- /dev/null +++ b/system/image-analyzer/image-analyzer.png diff --git a/system/image-analyzer/slack-desc b/system/image-analyzer/slack-desc new file mode 100644 index 0000000000000..67ba5a6ff293b --- /dev/null +++ b/system/image-analyzer/slack-desc @@ -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: |