diff options
-rw-r--r-- | network/mldonkey/README | 14 | ||||
-rw-r--r-- | network/mldonkey/doinst.sh | 10 | ||||
-rw-r--r-- | network/mldonkey/mldonkey.SlackBuild | 76 | ||||
-rw-r--r-- | network/mldonkey/mldonkey.desktop | 10 | ||||
-rw-r--r-- | network/mldonkey/mldonkey.info | 8 | ||||
-rw-r--r-- | network/mldonkey/mldonkey.png | bin | 0 -> 3818 bytes | |||
-rw-r--r-- | network/mldonkey/slack-desc | 12 |
7 files changed, 130 insertions, 0 deletions
diff --git a/network/mldonkey/README b/network/mldonkey/README new file mode 100644 index 0000000000000..71c084542e24a --- /dev/null +++ b/network/mldonkey/README @@ -0,0 +1,14 @@ +MLDonkey is an open source, free software multi-network +peer-to-peer application. + +MLDonkey requires "ocaml" to be builded, and also requires +"lablgtk" if you want to enable its GUI. There's a SlackBuild +at SlackBuilds.org for each one. + +By default, this SlackBuild is going to build MLdonkey without +its GUI. If you want to enable MLDonkey's GUI, you'll have +have to enable it with the GUIOPT variable, which can have +'oldgui', 'newgui1' or 'newgui2' as values. For example, if you +want to build mldonkey with "oldgui" then execute the build script +as follows: + GUIOPT=oldgui ./mldonkey.SlackBuild diff --git a/network/mldonkey/doinst.sh b/network/mldonkey/doinst.sh new file mode 100644 index 0000000000000..720a11ee901e6 --- /dev/null +++ b/network/mldonkey/doinst.sh @@ -0,0 +1,10 @@ + +( if [ -x usr/bin/update-desktop-database ]; then + usr/bin/update-desktop-database -q usr/share/applications + fi +) + +( if [ -x usr/bin/update-mime-database ]; then + usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 + fi +) diff --git a/network/mldonkey/mldonkey.SlackBuild b/network/mldonkey/mldonkey.SlackBuild new file mode 100644 index 0000000000000..1b274c204383e --- /dev/null +++ b/network/mldonkey/mldonkey.SlackBuild @@ -0,0 +1,76 @@ +#!/bin/sh + +# Slackware build script for mldonkey +# Written by core (eroc@linuxmail.org) + +set -e + +PRGNAM=mldonkey +VERSION=2.8.7 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +fi + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar -jxvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION +chown -R root:root . || true +chmod -R u+w,go+r-w,a-s . + +if [ -n "$GUIOPT" ]; then + if [ "$GUIOPT" = 'oldgui' ]; then + GUIOPT='--enable-gui=oldgui' + elif [ "$GUIOPT" = 'newgui1' ]; then + GUIOPT='--enable-gui=newgui1' + elif [ "$GUIOPT" = 'newgui2' ]; then + GUIOPT='--enable-gui=newgui2' + else + unset -v GUIOPT + fi +fi + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + $GUIOPT + +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 + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +) + +if [ -n "$GUIOPT" ]; then + mkdir -p $PKG/usr/share/{applications,pixmaps} + cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop + cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png +fi + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a distrib/*.txt docs $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +if [ -n "$GUIOPT" ]; then + cat $CWD/doinst.sh > $PKG/install/doinst.sh +fi + +cd $PKG +/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz diff --git a/network/mldonkey/mldonkey.desktop b/network/mldonkey/mldonkey.desktop new file mode 100644 index 0000000000000..3291479d6c8f3 --- /dev/null +++ b/network/mldonkey/mldonkey.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=MLDonkey GUI +GenericName=MLDonkey GUI +Comment=The MLDonkey GUI +Exec=mldonkey_gui +Icon=mldonkey.png +Terminal=false +Type=Application +Categories=Qt;KDE;Network; diff --git a/network/mldonkey/mldonkey.info b/network/mldonkey/mldonkey.info new file mode 100644 index 0000000000000..9c24cc737013a --- /dev/null +++ b/network/mldonkey/mldonkey.info @@ -0,0 +1,8 @@ +PRGNAM="mldonkey" +VERSION="2.8.7" +HOMEPAGE="http://mldonkey.sourceforge.net" +DOWNLOAD="http://downloads.sourceforge.net/mldonkey/mldonkey-2.8.7.tar.bz2" +MD5SUM="bfb30ebcb48f0a9ec0f44f41559afd38" +MAINTAINER="core" +EMAIL="eroc@linuxmail.org" +APPROVED="rworkman" diff --git a/network/mldonkey/mldonkey.png b/network/mldonkey/mldonkey.png Binary files differnew file mode 100644 index 0000000000000..ee67b482b8524 --- /dev/null +++ b/network/mldonkey/mldonkey.png diff --git a/network/mldonkey/slack-desc b/network/mldonkey/slack-desc new file mode 100644 index 0000000000000..78ec522bab70e --- /dev/null +++ b/network/mldonkey/slack-desc @@ -0,0 +1,12 @@ + |-----handy-ruler---------------------------------------------------| +mldonkey: MLDonkey (A multi-platform multi-network peer-to-peer client) +mldonkey: +mldonkey: MLDonkey is an open source, free software multi-network +mldonkey: peer-to-peer application. +mldonkey: +mldonkey: Homepage: http://mldonkey.sourceforge.net +mldonkey: +mldonkey: +mldonkey: +mldonkey: +mldonkey: |