mirror of
https://github.com/SlackBuildsOrg/slackbuilds
synced 2024-09-28 15:21:00 +02:00
system/ecm-tools: New maintainer.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
a6b16d8c96
commit
8cff95e725
4 changed files with 39 additions and 53 deletions
|
@ -1,5 +1,12 @@
|
|||
Error Code Modeler
|
||||
ecm-tools (encoder/decoder for error code modeler CD/DVD compression)
|
||||
|
||||
Fork of ECM primarily to host the code because upstream seems dead,
|
||||
with a minor change to how binaries are called to avoid conflicts
|
||||
with Sage Mathematics' ECM.
|
||||
ECM is a compression format for ".bin" CD/DVD images, typically used
|
||||
to distribute Playstation ROMs.
|
||||
|
||||
This is a fork of the original ECM, primarily to host the code because
|
||||
upstream seems dead, with a minor change to how binaries are named to
|
||||
avoid conflicts with Sage Mathematics' ECM.
|
||||
|
||||
The commands are "ecm2bin" and "bin2ecm". There are no man pages, but
|
||||
you can run the commands with no arguments to see the built-in help
|
||||
messages.
|
||||
|
|
|
@ -2,31 +2,22 @@
|
|||
|
||||
# Slackware build script for ecm-tools
|
||||
|
||||
# Copyright 2016, 2018 Hunter Sezen California, USA
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
# permitted provided that the following conditions are met:
|
||||
#
|
||||
# 1. Redistributions of this script must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
||||
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
# Original author: Hunter Sezen.
|
||||
# Modified and now maintained by B. Watson <urchlay@slackware.uk>.
|
||||
|
||||
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
|
||||
|
||||
# 20240905 bkw: BUILD=2
|
||||
# - new maintainer.
|
||||
# - explain what the heck ECM is, in the README and slack-desc. I didn't
|
||||
# know, never heard of it, and neither has Wikipedia. This way I won't
|
||||
# forget...
|
||||
|
||||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=ecm-tools
|
||||
VERSION=${VERSION:-1.0.3}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
||||
|
@ -38,9 +29,6 @@ if [ -z "$ARCH" ]; then
|
|||
esac
|
||||
fi
|
||||
|
||||
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
|
||||
# the name of the created package would be, and then exit. This information
|
||||
# could be useful to other scripts.
|
||||
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
||||
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
||||
exit 0
|
||||
|
@ -52,19 +40,15 @@ 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 -eu
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
|
@ -73,21 +57,16 @@ rm -rf $PRGNAM-$VERSION
|
|||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \
|
||||
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} +
|
||||
|
||||
CFLAGS="$SLKCFLAGS" make
|
||||
CFLAGS="$SLKCFLAGS -Wl,-s" make
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
find $PKG -print0 | xargs -0 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 LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
mkdir -p $PKGDOC
|
||||
cp -a LICENSE README.md $PKGDOC
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
|
|
@ -6,5 +6,5 @@ MD5SUM="3f06496a0ae14c740f4a8b80ece4bfb9"
|
|||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
MAINTAINER="Hunter Sezen"
|
||||
EMAIL="orbea@riseup.net"
|
||||
MAINTAINER="B. Watson"
|
||||
EMAIL="urchlay@slackware.uk"
|
||||
|
|
|
@ -6,14 +6,14 @@
|
|||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
ecm-tools: ecm-tools (Error Code Modeler)
|
||||
ecm-tools: ecm-tools (encoder/decoder for error code modeler CD/DVD compression)
|
||||
ecm-tools:
|
||||
ecm-tools: Fork of ECM primarily to host the code because upstream seems dead,
|
||||
ecm-tools: with a minor change to how binaries are called to avoid conflicts
|
||||
ecm-tools: with Sage Mathematics' ECM.
|
||||
ecm-tools: ECM is a compression format for ".bin" CD/DVD images, typically used
|
||||
ecm-tools: to distribute Playstation ROMs.
|
||||
ecm-tools:
|
||||
ecm-tools: This is a fork of the original ECM, primarily to host the code because
|
||||
ecm-tools: upstream seems dead, with a minor change to how binaries are named to
|
||||
ecm-tools: avoid conflicts with Sage Mathematics' ECM.
|
||||
ecm-tools:
|
||||
ecm-tools: Homepage: https://github.com/alucryd/ecm-tools
|
||||
ecm-tools:
|
||||
ecm-tools:
|
||||
ecm-tools:
|
||||
ecm-tools:
|
||||
|
|
Loading…
Reference in a new issue