network/aMule: Updated for version 2.2.6

This commit is contained in:
Iskar Enev 2010-05-13 00:35:30 +02:00 committed by Robby Workman
parent ac54ee7a08
commit b2ff69f8d4
5 changed files with 37 additions and 22 deletions

View file

@ -3,6 +3,8 @@ wxWidgets class library. It was originally forked from the xMule project,
which in turn was forked from the lMule project. This is turn was the which in turn was forked from the lMule project. This is turn was the
first fork of eMule to run nativly on Linux and other Unix-like systems. first fork of eMule to run nativly on Linux and other Unix-like systems.
wxGTK is required for this to build; at least version 2.4.x of wxGTK is This requires wxGTK and cryptopp.
needed, but version 2.6.x is recommended (available at SlackBuilds.org).
cryptopp is also required. It was reported that aMule doesn't work very well (or at all) with
cryptopp 5.6.0, so version 5.5.2 is recommended instead (you can build
version 5.2.2 using the same build script for cryptopp-5.6.0).

View file

@ -1,12 +1,12 @@
#!/bin/sh #!/bin/sh
# Slackware build script for aMule # Slackware build script for aMule
# Written by Iskar Enev (iskar.enev@gmail.com) # Written by Iskar Enev (<iskar.enev[@]gmail.com>)
# Modified by the SlackBuilds.org project # Modified by the SlackBuilds.org project
PRGNAM=aMule PRGNAM=aMule
VERSION=${VERSION:-2.2.4} VERSION=${VERSION:-2.2.6}
ARCH=${ARCH:-i486} ARCH=${ARCH:-i486}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
CWD=$(pwd) CWD=$(pwd)
@ -16,10 +16,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686" SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi fi
set -e set -e
@ -28,7 +31,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP cd $TMP
rm -rf $PRGNAM-$VERSION rm -rf $PRGNAM-$VERSION
tar -xvf $CWD/$PRGNAM-$VERSION.tar.bz2 tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION cd $PRGNAM-$VERSION
chown -R root:root . chown -R root:root .
find . \ find . \
@ -41,18 +44,22 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \ --sysconfdir=/etc \
--localstatedir=/var \ --localstatedir=/var \
--mandir=/usr/man \ --mandir=/usr/man \
--with-wx-config=/usr/bin/wx-config \ --with-wx-config=/usr/bin/wx-config \
--disable-debug --disable-debug \
--build=$ARCH-slackware-linux
make make
make install DESTDIR=$PKG make install DESTDIR=$PKG
( cd $PKG ( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null
) )
( cd $PKG/usr/man ( cd $PKG/usr/man
@ -67,6 +74,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -1,8 +1,10 @@
PRGNAM="aMule" PRGNAM="aMule"
VERSION="2.2.4" VERSION="2.2.6"
HOMEPAGE="http://www.amule.org" HOMEPAGE="http://www.amule.org"
DOWNLOAD="http://downloads.sourceforge.net/amule/aMule-2.2.4.tar.bz2" DOWNLOAD="http://downloads.sourceforge.net/amule/aMule-2.2.6.tar.bz2"
MD5SUM="283c428dd2961a57f2691c455c845a42" MD5SUM="530d9b48187e36f78fc21bb19e94326d"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Iskar Enev" MAINTAINER="Iskar Enev"
EMAIL="<iskar.enev[@]gmail.com>" EMAIL="<iskar.enev[@]gmail.com>"
APPROVED="dsomero" APPROVED="rworkman"

4
network/aMule/doinst.sh Normal file
View file

@ -0,0 +1,4 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi

View file

@ -17,4 +17,3 @@ aMule:
aMule: aMule:
aMule: aMule:
aMule: aMule: