multimedia/mirage2iso: Added (convert CD images to ISO).

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2022-01-25 15:25:31 -05:00 committed by Willy Sudiarto Raharjo
parent 97da18cf64
commit 1dd2afaff1
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
6 changed files with 328 additions and 0 deletions

View File

@ -0,0 +1,4 @@
mirage2iso (extract iso images from CD images)
mirage2iso is a simple tool to convert various CD/DVD image formats into
.iso images through use of libmirage (same one as used by cdemu).

View File

@ -0,0 +1,109 @@
.\" Man page generated from reStructuredText.
.
.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\$1 \\n[an-margin]
level \\n[rst2man-indent-level]
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
-
\\n[rst2man-indent0]
\\n[rst2man-indent1]
\\n[rst2man-indent2]
..
.de1 INDENT
.\" .rstReportMargin pre:
. RS \\$1
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
. nr rst2man-indent-level +1
.\" .rstReportMargin post:
..
.de UNINDENT
. RE
.\" indent \\n[an-margin]
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.TH "MIRAGE2ISO" 1 "2022-01-25" "0.4.2" "SlackBuilds.org"
.SH NAME
mirage2iso \- convert various CD/DVD image formats to ISO
.\" RST source for mirage2iso(1) man page. Convert with:
.
.\" rst2man.py mirage2iso.rst > mirage2iso.1
.
.\" rst2man.py comes from the SBo development/docutils package.
.
.SH SYNOPSIS
.sp
mirage2iso [\fI\-options\fP] \fIinput\-file\fP [\fIoutput.iso\fP]
.SH DESCRIPTION
.sp
\fBmirage2iso\fP extracts an ISO\-9660 image from a CD/DVD image in any
format supported by \fBlibmirage\fP\&. This includes \fIbin/cue\fP, \fInrg\fP
(Nero), \fImds\fP (Alcohol 120%), and many more; see the libmirage
documentation for the full list.
.sp
The \fIinput\-file\fP argument is required, and there\(aqs no way to read
from standard input. For multi\-file formats (\fIbin/cue\fP, \fIbin/toc\fP,
etc), the \fIinput\-file\fP must be the one containing the table of
contents (the \fIcue\fP or \fItoc\fP file, which will also be the smallest
file of the set).
.sp
With no \fIoutput.iso\fP argument, the output filename is "guessed" based
on the input filename, with the extension changed to \fI\&.iso\fP\&. If this
file already exists, it will not be overwritten (unless the \fB\-f\fP,
\fB\-\-force\fP option is given).
.SH OPTIONS
.INDENT 0.0
.TP
.B \-f\fP,\fB \-\-force
Force replacing the guessed output file.
.TP
.BI \-p\fP,\fB \-\-password\fB= PASS
Password for the encrypted image.
.TP
.B \-q\fP,\fB \-\-quiet
Disable progress reporting, output only errors.
.TP
.BI \-s\fP,\fB \-\-session\fB= N
Session to use (default: the last one).
.TP
.B \-c\fP,\fB \-\-stdout
Output the image into stdout instead of a file.
.TP
.B \-v\fP,\fB \-\-verbose
Increase progress reporting verbosity.
.TP
.B \-V\fP,\fB \-\-version
Print program version and exit.
.TP
.B \-h\fP,\fB \-\-help
Print built\-in help and exit.
.UNINDENT
.SH LIMITATIONS
.sp
\fBmirage2iso\fP doesn\(aqt support images with multiple data tracks in the
same session. Only the first data (Mode1) track will be converted.
.sp
It doesn\(aqt support tracks other than Mode1 either, i.e. it is able to
convert only standard data tracks. It won\(aqt work with your PSX games
and other stuff relying on Mode2.
.SH COPYRIGHT
.sp
See the file /usr/doc/mirage2iso\-0.4.2/COPYING for license information.
.SH AUTHORS
.sp
mirage2iso was written by Michał Górny.
.sp
This man page written for the SlackBuilds.org project
by B. Watson, and is licensed under the WTFPL.
.SH SEE ALSO
.sp
\fBbchunk\fP(1)
.sp
/usr/doc/mirage2iso\-0.4.2/README
.\" Generated by docutils manpage writer.
.

View File

@ -0,0 +1,86 @@
#!/bin/bash
# Slackware build script for mirage2iso
# Written by B. Watson (yalhcru@gmail.com)
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=mirage2iso
VERSION=${VERSION:-0.4.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD.$PKGTYPE"
exit 0
fi
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -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.xz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
mkdir -p $PKG/usr/man/man1
gzip -9c < $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz
PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKGDOC
cp -a README* NEWS* COPYING* $PKGDOC
cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View File

@ -0,0 +1,10 @@
PRGNAM="mirage2iso"
VERSION="0.4.2"
HOMEPAGE="https://github.com/mgorny/mirage2iso"
DOWNLOAD="https://github.com/mgorny/mirage2iso/releases/download/v0.4.2/mirage2iso-0.4.2.tar.xz"
MD5SUM="e4e38aa47cbc63211c882f2ce8f62cd0"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="B. Watson"
EMAIL="yalhcru@gmail.com"

View File

@ -0,0 +1,100 @@
.. RST source for mirage2iso(1) man page. Convert with:
.. rst2man.py mirage2iso.rst > mirage2iso.1
.. rst2man.py comes from the SBo development/docutils package.
.. |version| replace:: 0.4.2
.. |date| date::
==========
mirage2iso
==========
-------------------------------------------
convert various CD/DVD image formats to ISO
-------------------------------------------
:Manual section: 1
:Manual group: SlackBuilds.org
:Date: |date|
:Version: |version|
SYNOPSIS
========
mirage2iso [*-options*] *input-file* [*output.iso*]
DESCRIPTION
===========
**mirage2iso** extracts an ISO-9660 image from a CD/DVD image in any
format supported by **libmirage**. This includes *bin/cue*, *nrg*
(Nero), *mds* (Alcohol 120%), and many more; see the libmirage
documentation for the full list.
The *input-file* argument is required, and there's no way to read
from standard input. For multi-file formats (*bin/cue*, *bin/toc*,
etc), the *input-file* must be the one containing the table of
contents (the *cue* or *toc* file, which will also be the smallest
file of the set).
With no *output.iso* argument, the output filename is "guessed" based
on the input filename, with the extension changed to *.iso*. If this
file already exists, it will not be overwritten (unless the **-f**,
**--force** option is given).
OPTIONS
=======
-f, --force
Force replacing the guessed output file.
-p, --password=PASS
Password for the encrypted image.
-q, --quiet
Disable progress reporting, output only errors.
-s, --session=N
Session to use (default: the last one).
-c, --stdout
Output the image into stdout instead of a file.
-v, --verbose
Increase progress reporting verbosity.
-V, --version
Print program version and exit.
-h, --help
Print built-in help and exit.
LIMITATIONS
===========
**mirage2iso** doesn't support images with multiple data tracks in the
same session. Only the first data (Mode1) track will be converted.
It doesn't support tracks other than Mode1 either, i.e. it is able to
convert only standard data tracks. It won't work with your PSX games
and other stuff relying on Mode2.
COPYRIGHT
=========
See the file /usr/doc/mirage2iso-|version|/COPYING for license information.
AUTHORS
=======
mirage2iso was written by Michał Górny.
This man page written for the SlackBuilds.org project
by B. Watson, and is licensed under the WTFPL.
SEE ALSO
========
**bchunk**\(1)
/usr/doc/mirage2iso-|version|/README

View File

@ -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 ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
mirage2iso: mirage2iso (extract iso images from CD images)
mirage2iso:
mirage2iso: mirage2iso is a simple tool to convert various CD/DVD image formats
mirage2iso: into .iso images through use of libmirage (same one as used by cdemu).
mirage2iso:
mirage2iso:
mirage2iso:
mirage2iso:
mirage2iso:
mirage2iso:
mirage2iso: