Monkey's Audio Codec
Inviato: sab 15 dic 2007, 20:51
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 e questo è il file slack-desc risultante
Cosa sbaglio?
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
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: