From f0b25c44065a37762a0b3211d44f5d4c9b9a35ca Mon Sep 17 00:00:00 2001 From: core Date: Tue, 11 May 2010 20:01:38 +0200 Subject: [PATCH] network/mldonkey: Added to 12.0 repository --- network/mldonkey/README | 14 +++++ network/mldonkey/doinst.sh | 10 ++++ network/mldonkey/mldonkey.SlackBuild | 76 +++++++++++++++++++++++++++ network/mldonkey/mldonkey.desktop | 10 ++++ network/mldonkey/mldonkey.info | 8 +++ network/mldonkey/mldonkey.png | Bin 0 -> 3818 bytes network/mldonkey/slack-desc | 12 +++++ 7 files changed, 130 insertions(+) create mode 100644 network/mldonkey/README create mode 100644 network/mldonkey/doinst.sh create mode 100644 network/mldonkey/mldonkey.SlackBuild create mode 100644 network/mldonkey/mldonkey.desktop create mode 100644 network/mldonkey/mldonkey.info create mode 100644 network/mldonkey/mldonkey.png create mode 100644 network/mldonkey/slack-desc diff --git a/network/mldonkey/README b/network/mldonkey/README new file mode 100644 index 0000000000..71c084542e --- /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 0000000000..720a11ee90 --- /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 0000000000..1b274c2043 --- /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 0000000000..3291479d6c --- /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 0000000000..9c24cc7370 --- /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 new file mode 100644 index 0000000000000000000000000000000000000000..ee67b482b85242c4b7eaf741fe449d1e783d9fef GIT binary patch literal 3818 zcmV7(f>xDQ0<=&B zD*2}?RqVF>vqgekwYx2>N@)?hm0C3_72UvY3D7pN;}8N%66`o3evj?(%=j_mdEM7J z`^Ok3PFf%}Tlxn->1yuG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