Regole del forum
1) Citare in modo preciso il nome del pacchetto.
2) Specificare se discussione/suggerimento o richiesta d'aiuto.
3) Leggere attentamente le risposte ricevute
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.
La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
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
#!/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
# 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:
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.
# 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:
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: