mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
network/mldonkey: Added to 12.0 repository
This commit is contained in:
parent
242de53c14
commit
f0b25c4406
7 changed files with 130 additions and 0 deletions
14
network/mldonkey/README
Normal file
14
network/mldonkey/README
Normal file
|
@ -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
|
10
network/mldonkey/doinst.sh
Normal file
10
network/mldonkey/doinst.sh
Normal file
|
@ -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
|
||||
)
|
76
network/mldonkey/mldonkey.SlackBuild
Normal file
76
network/mldonkey/mldonkey.SlackBuild
Normal file
|
@ -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
|
10
network/mldonkey/mldonkey.desktop
Normal file
10
network/mldonkey/mldonkey.desktop
Normal file
|
@ -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;
|
8
network/mldonkey/mldonkey.info
Normal file
8
network/mldonkey/mldonkey.info
Normal file
|
@ -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"
|
BIN
network/mldonkey/mldonkey.png
Normal file
BIN
network/mldonkey/mldonkey.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.7 KiB |
12
network/mldonkey/slack-desc
Normal file
12
network/mldonkey/slack-desc
Normal file
|
@ -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:
|
Loading…
Reference in a new issue