Pagina 1 di 1

Monkey's Audio Codec

Inviato: sab 15 dic 2007, 20:51
da syaochan
Ciao, una volta nel repository non c'era anche il pacchetto in oggetto?
Comunque, l'ho appena pacchettizzato ma ho un problemino durante l'installazione: il contenuto di slack-desc non viene visualizzato... questo è lo slackbuild

Codice: Seleziona tutto

#!/bin/sh
# Monkey's Audio Codec
# http://members.iinet.net.au/~aidanjm/mac-3.99-u4-b5.tar.gz
# Packager syaochan (syaochan@hotmail.com)
# http://www.slacky.eu

CWD=`pwd`
TMP=${TMP:-/tmp/tgz}
PKG=$TMP/package-mac
NAME=mac
VERSION=3.99-u4-b5
ARCH=${ARCH:-i686}
BUILD=1sy

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O3 -march=i686 -mtune=i686 -pipe"
elif [ "$ARCH" = "athlon64" ]; then
  SLKCFLAGS="-O2 -march=athlon64 -pipe"
elif [ "$ARCH" = "athlonxp" ]; then
  SLKCFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer"
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2"
elif [ "$ARCH" = "s390" ]; then
  SLKCFLAGS="-O2"
fi

if [ ! -d $TMP ]; then
 mkdir -p $TMP
fi
if [ ! -d $PKG ]; then
 mkdir -p $PKG
fi

cd $TMP
tar xvzf $CWD/$NAME-$VERSION.tar.gz
cd $NAME-$VERSION
find . -perm 777 -exec chmod 755 {} \;
find . -perm 775 -exec chmod 755 {} \;
find . -perm 555 -exec chmod 755 {} \;
find . -perm 666 -exec chmod 644 {} \;
find . -perm 664 -exec chmod 644 {} \;
find . -perm 444 -exec chmod 644 {} \;
chown -R root.root .

CFLAGS="$SLKCFLAGS" \
./configure --prefix=/usr \
--enable-assembly=yes \
$ARCH-slackware-linux
make || exit
make install DESTDIR=$PKG

cd $TMP/$NAME-$VERSION
mkdir -p $PKG/usr/doc/$NAME-$VERSION
cp -a AUTHORS COPYING ChangeLog NEWS INSTALL README TODO \
 $PKG/usr/doc/$NAME-$VERSION
( cd $PKG
  find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
  find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)

mkdir -p $PKG/install
cat << EOF | tee $PKG/usr/doc/$NAME-$VERSION/slack-desc > $PKG/install/slack-desc
# 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------------------------------------------------|
mac: 
mac: Monkey’s Audio Codec
mac: 
mac: Monkey’s Audio is a fast and easy way to compress digital music.
mac: Unlike traditional methods such as mp3, ogg, or lqt that
mac: permanently discard quality to save space, Monkey’s Audio only 
mac: makes perfect, bit-for-bit copies of your music.  That means it 
mac: always sounds perfect – exactly the same as the original.
mac: 
mac: http://www.monkeysaudio.com/
mac: 
EOF

cd $CWD
cat $NAME.SlackBuild > $PKG/usr/doc/$NAME-$VERSION
cd $PKG
# requiredbuilder -v -y -s $CWD $PKG
makepkg -l y -c n $CWD/$NAME-$VERSION-$ARCH-$BUILD.tgz

if [ "$1" = "--cleanup" ]; then
  rm -rf $TMP/$NAME-$VERSION
  rm -rf $PKG
fi
e questo è il file slack-desc risultante

Codice: Seleziona tutto

# 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------------------------------------------------|
mac: 
mac: Monkey’s Audio Codec
mac: 
mac: Monkey’s Audio is a fast and easy way to compress digital music.
mac: Unlike traditional methods such as mp3, ogg, or lqt that
mac: permanently discard quality to save space, Monkey’s Audio only 
mac: makes perfect, bit-for-bit copies of your music.  That means it 
mac: always sounds perfect – exactly the same as the original.
mac: 
mac: http://www.monkeysaudio.com/
mac: 
Cosa sbaglio?

Inviato: sab 15 dic 2007, 21:08
da gohanz
Io il titolo la descrizione breve del pacchetto "Monkey’s Audio Codec" in questo caso, la metto subito sotto gli "handy-ruler", poi non so se sia questo il problema. Comunque fai benissimo a pacchettizzarlo. Io stavo usando una versione per la 11.0, per sentire un album in .APE più un plugin per XMMS.

Codice: Seleziona tutto

# 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------------------------------------------------|
mac: Monkey’s Audio Codec
mac:
mac: Monkey’s Audio is a fast and easy way to compress digital music.
mac: Unlike traditional methods such as mp3, ogg, or lqt that
mac: permanently discard quality to save space, Monkey’s Audio only
mac: makes perfect, bit-for-bit copies of your music.  That means it
mac: always sounds perfect – exactly the same as the original.
mac:
mac:
mac: http://www.monkeysaudio.com/
mac: 

Inviato: dom 16 dic 2007, 8:31
da syaochan
Niente da fare, non funziona ugualmente

Codice: Seleziona tutto

Installing package mac-3.99-u4-b5-i686-1sy...
PACKAGE DESCRIPTION:
Executing install script for mac-3.99-u4-b5-i686-1sy...
Un vero mistero :?

Inviato: dom 16 dic 2007, 8:34
da gohanz
syaochan ha scritto:Niente da fare, non funziona ugualmente

Codice: Seleziona tutto

Installing package mac-3.99-u4-b5-i686-1sy...
PACKAGE DESCRIPTION:
Executing install script for mac-3.99-u4-b5-i686-1sy...
Un vero mistero :?
Ecco l'errore ci sono 5 segni "-". Cambia il nome del pacchetto in

mac-3.99-u4_b5-i686-1sy

Inviato: dom 16 dic 2007, 8:48
da syaochan
Grande! Non ci sarei mai arrivato :oops:
Ho dovuto toglierne due però di "-", e chiamare il pacchetto mac-3.99_u4_b5-i686-1sy.tgz
Grazie, mistero risolto! :D

Inviato: dom 16 dic 2007, 8:53
da gohanz
Manda il pacchetto a Loris. Non c'è per la 12.0. Visto che ti ci trovi recompila anche XMMS-mac http://www.slacky.eu/index.php?option=c ... 8&Itemid=2
;)

Inviato: dom 16 dic 2007, 10:03
da syaochan
Però su sourceforge i sorgenti di xmms-mac non ci sono più, ho usato quelli che erano qui nel repository.
Intanto posto i link qui, poi li mando anche a Loris:

mac-3.99_u4_b5-i686-1sy.tgz
xmms-mac-0.3.1-i486-1as.tgz

SlackBuild e slack-required sono dentro i pacchetti in usr/doc/...

Inviato: dom 16 dic 2007, 11:08
da gohanz
Perfetto adesso li provo e se va tutto bene li mando a Loris. ;)

Inviato: dom 16 dic 2007, 12:12
da syaochan
Occhio che mac dipende da yasm (che è nel repository di Slacky) perché l'ho compilato con --enable-assembly=yes

Inviato: dom 16 dic 2007, 12:19
da gohanz
A me funziona benissimo anche senza yasm. :oops:

Inviato: dom 16 dic 2007, 12:29
da syaochan
Boh, forse serviva solo in compilazione.
Anche se passavo quell'opzione al configure l'assembly era disabilitato, poi ho installato yasm ed è andato.

Inviato: dom 16 dic 2007, 12:29
da syaochan
EDIT: Ops post doppio :oops: