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
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
needed, but version 2.6.x is recommended (available at SlackBuilds.org).
cryptopp is also required.
This requires wxGTK and cryptopp.
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
# 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
PRGNAM=aMule
VERSION=${VERSION:-2.2.4}
VERSION=${VERSION:-2.2.6}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@ -16,10 +16,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi
set -e
@ -28,7 +31,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar -xvf $CWD/$PRGNAM-$VERSION.tar.bz2
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@ -41,18 +44,22 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--with-wx-config=/usr/bin/wx-config \
--disable-debug
--disable-debug \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$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 "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
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
@ -67,6 +74,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
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"
VERSION="2.2.4"
VERSION="2.2.6"
HOMEPAGE="http://www.amule.org"
DOWNLOAD="http://downloads.sourceforge.net/amule/aMule-2.2.4.tar.bz2"
MD5SUM="283c428dd2961a57f2691c455c845a42"
DOWNLOAD="http://downloads.sourceforge.net/amule/aMule-2.2.6.tar.bz2"
MD5SUM="530d9b48187e36f78fc21bb19e94326d"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Iskar Enev"
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

@ -7,14 +7,13 @@
|-----handy-ruler------------------------------------------------------|
aMule: aMule (multiplatform ed2k client)
aMule:
aMule:
aMule: aMule is a multiplatform ed2k client, fork of the eMule client,
aMule: using the wxWidgets class library, supporting Linux, *BSD platforms,
aMule: Solaris, *MacOSX and *Win32 (*soon). It was originally forked from
aMule: the xMule project, which in turn was forked from the lMule project.
aMule:
aMule:
aMule:
aMule:
aMule:
aMule:
aMule:
aMule:
aMule:
aMule: