mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
system/cdwrite: Added (CD/DVD reading/writing/encoding shell)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
This commit is contained in:
parent
dfa57e7165
commit
ce538ef95c
5 changed files with 115 additions and 0 deletions
10
system/cdwrite/README
Normal file
10
system/cdwrite/README
Normal file
|
@ -0,0 +1,10 @@
|
|||
cdwrite is a console shell for reading, writing, and copying audio CDs
|
||||
as well as for creating and writing ISO images on CD media and data or
|
||||
ISO images on DVD media. It can also encode WAV files or audio CDs to
|
||||
FLAC, MP3, or OGG files, using optionally CDDB data and setting ID3
|
||||
tags.
|
||||
|
||||
It requires id3lib and id3v2 packages available in SlackBuilds.org for
|
||||
mass ID3 tagging as well CDDB_get package available in cpan.org for
|
||||
communication with CDDB servers.
|
||||
|
62
system/cdwrite/cdwrite.SlackBuild
Normal file
62
system/cdwrite/cdwrite.SlackBuild
Normal file
|
@ -0,0 +1,62 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for cdwrite
|
||||
# Written by Cezary M. Kruk (c.kruk@bigfoot.com)
|
||||
|
||||
PRGNAM=cdwrite
|
||||
VERSION=${VERSION:-3.3}
|
||||
ARCH=noarch
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM
|
||||
tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
-exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
./configure \
|
||||
--prefix=$PKG/usr
|
||||
|
||||
make install
|
||||
|
||||
# Since we installed directly in $PKG, fix the links
|
||||
cd $PKG/usr/bin
|
||||
for link in $( find . -type l ); do
|
||||
dest=$( readlink $link )
|
||||
ln -sf $( basename $dest ) $link
|
||||
done
|
||||
cd -
|
||||
|
||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||
|
||||
rm $PKG/usr/etc/cdwrite.conf
|
||||
rmdir $PKG/usr/etc
|
||||
|
||||
mkdir $PKG/etc
|
||||
cp -p cdwrite.conf $PKG/etc/cdwrite.conf.new
|
||||
|
||||
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}
|
||||
|
10
system/cdwrite/cdwrite.info
Normal file
10
system/cdwrite/cdwrite.info
Normal file
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="cdwrite"
|
||||
VERSION="3.3"
|
||||
HOMEPAGE="http://linux-bsd-unix.strefa.pl"
|
||||
DOWNLOAD="http://linux-bsd-unix.strefa.pl/cdwrite-3.3.tar.gz"
|
||||
MD5SUM="a7f86cc42ae683ad2a732d9f2b4a600c"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Cezary M. Kruk"
|
||||
EMAIL="c.kruk@bigfoot.com"
|
||||
APPROVED="Niels Horn"
|
14
system/cdwrite/doinst.sh
Normal file
14
system/cdwrite/doinst.sh
Normal file
|
@ -0,0 +1,14 @@
|
|||
config() {
|
||||
NEW="$1"
|
||||
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||
# If there's no config file by that name, mv it over:
|
||||
if [ ! -r $OLD ]; then
|
||||
mv $NEW $OLD
|
||||
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
|
||||
# toss the redundant copy
|
||||
rm $NEW
|
||||
fi
|
||||
# Otherwise, we leave the .new copy for the admin to consider...
|
||||
}
|
||||
|
||||
config etc/cdwrite.conf.new
|
19
system/cdwrite/slack-desc
Normal file
19
system/cdwrite/slack-desc
Normal 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 ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
cdwrite: cdwrite (CD/DVD reading and writing and FLAC/MP3/OGG encoding shell)
|
||||
cdwrite:
|
||||
cdwrite: cdwrite is a console shell for reading, writing, and copying audio
|
||||
cdwrite: CDs as well as for creating and writing ISO images on CD media and
|
||||
cdwrite: data or ISO images on DVD media. It can also encode WAV files or
|
||||
cdwrite: audio CDs to FLAC, MP3, or OGG files, using optionally CDDB data and
|
||||
cdwrite: setting ID3 tags.
|
||||
cdwrite:
|
||||
cdwrite: It requires id3lib and id3v2 packages available in SlackBuilds.org
|
||||
cdwrite: for mass ID3 tagging as well as CDDB_get package available in
|
||||
cdwrite: cpan.org for communication with CDDB servers.
|
Loading…
Reference in a new issue