Usando lo slackbuild di Slacky, che vi credavate?
Avendo un Athlon vorrei modificare lo slackbuild adeguatamente, purtroppo però la mia ignoranza in materia è tale da non riuscire a portare a termine (sinceramente neanche a farla partire) la compilazione.
Ecco lo slackbuild da me modificato e di seguito l'errore che ricevo.
SLACKBUILD
#!/bin/sh
# Heavily based on the Slackware 10.2 SlackBuild
# Requirements: wxgtk, gd
# http://www.amule.org/
CWD=`pwd`
if ["$TMP" = ""]; then
TMP=/tmp
fi
PKG=$TMP/package-aMule
NAME=aMule
VERSION=2.1.1
ARCH=${ARCH:-athlon-xp}
BUILD=Hrp
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
elif [ "$ARCH" = "athlon-xp" ]; then
SLKCFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -ffast-math -mmmx -m3dnow -msse -mfpmath=sse,387 -mcpu=athlon-xp"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2"
fi
if [ ! -d $TMP ]; then
mkdir -p $TMP
fi
if [ ! -d $PKG ]; then
mkdir -p $PKG
fi
cd $TMP
mkdir -p $PKG/usr
tar xjvf $CWD/$NAME-$VERSION.tar.bz2
cd $NAME-$VERSION
chown -R root.root .
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure --prefix=/usr \
--disable-debug \
--enable-amulecmd \
--enable-webserver \
--enable-cas \
--enable-wxcas \
--enable-alc \
--enable-alcc \
--enable-amule-daemon \
--program-prefix="" \
--program-suffix="" \
$ARCH-slackware-linux
make
make install DESTDIR=$PKG
cp $CWD/*.desktop $PKG/usr/share/applications
( cd $PKG/usr/man
find . -name "*.?" | xargs gzip -9
)
( 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/usr/doc/$NAME-$VERSION
cp $PKG/usr/share/doc/$NAME-$VERSION/* $PKG/usr/doc/$NAME-$VERSION
rm -rf $PKG/usr/share/doc
chown -R root.bin $PKG/usr/bin
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $CWD
cp -a *.SlackBuild slack-desc $PKG/usr/doc/$NAME-$VERSION
chown -R root.root $PKG/usr/doc/$NAME-$VERSION
cd $PKG
requiredbuilder -v -y $PKG
makepkg -l y -c n $TMP/$NAME-$VERSION-$ARCH-$BUILD.tgz
if [ "$1" = "--cleanup" ]; then
rm -rf $TMP/$NAME-$VERSION
rm -rf $PKG
fi
ERRORE
configure: WARNING: you should use --build, --host, --target
checking build system type... Invalid configuration `athlon-xp-slackware-linux': machine `athlon-xp-slackware' not recognized
configure: error: /bin/sh ./config.sub athlon-xp-slackware-linux failed
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
cp: `/tmp/package-aMule/usr/share/applications': specified destination directory does not exist
Try `cp --help' for more information.
./aMule.SlackBuild: line 55: cd: /tmp/package-aMule/usr/man: No such file or directory
cp: cannot stat `/tmp/package-aMule/usr/share/doc/aMule-2.1.1/*': No such file or directory
chown: cannot access `/tmp/package-aMule/usr/bin': No such file or directory
./aMule.SlackBuild: line 74: requiredbuilder: command not found
Grazie per l'/gli aiuti!


