summaryrefslogtreecommitdiff
path: root/network/kmldonkey
diff options
context:
space:
mode:
authorcore <eroc@linuxmail.org>2010-05-11 20:01:36 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 20:01:36 +0200
commita606a99c0290de782032439b8071c5dca455b301 (patch)
tree5fc9c53d2b7b81be9904404524b6fc2cc3b2d4d1 /network/kmldonkey
parent284c1795566b02d02c3fc88aaa240c27c2964626 (diff)
downloadslackbuilds-a606a99c0290de782032439b8071c5dca455b301.tar.gz
network/kmldonkey: Added to 12.0 repository
Diffstat (limited to 'network/kmldonkey')
-rw-r--r--network/kmldonkey/README2
-rw-r--r--network/kmldonkey/doinst.sh10
-rw-r--r--network/kmldonkey/kmldonkey.SlackBuild62
-rw-r--r--network/kmldonkey/kmldonkey.info8
-rw-r--r--network/kmldonkey/slack-desc12
5 files changed, 94 insertions, 0 deletions
diff --git a/network/kmldonkey/README b/network/kmldonkey/README
new file mode 100644
index 0000000000..031ea07cb9
--- /dev/null
+++ b/network/kmldonkey/README
@@ -0,0 +1,2 @@
+KMLDonkey is an advanced GUI frontend for the MLDonkey P2P core.
+KMLDonkey needs mldonkey (there's a script for it at SlackBuilds.org)
diff --git a/network/kmldonkey/doinst.sh b/network/kmldonkey/doinst.sh
new file mode 100644
index 0000000000..720a11ee90
--- /dev/null
+++ b/network/kmldonkey/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/kmldonkey/kmldonkey.SlackBuild b/network/kmldonkey/kmldonkey.SlackBuild
new file mode 100644
index 0000000000..fec7796459
--- /dev/null
+++ b/network/kmldonkey/kmldonkey.SlackBuild
@@ -0,0 +1,62 @@
+#!/bin/sh
+
+# Slackware build script for kmldonkey
+# Written by core (eroc@linuxmail.org)
+
+set -e
+
+PRGNAM=kmldonkey
+VERSION=0.10.1
+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 -xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM-$VERSION
+chown -R root:root . || true
+chmod -R u+w,go+r-w,a-s .
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --enable-shared=yes
+
+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
+)
+
+( cd $PKG/usr/man
+ find . -type f -exec gzip -9 {} \;
+ for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
+)
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS ChangeLog COPYING INSTALL README TODO \
+ $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
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/network/kmldonkey/kmldonkey.info b/network/kmldonkey/kmldonkey.info
new file mode 100644
index 0000000000..9ed9979284
--- /dev/null
+++ b/network/kmldonkey/kmldonkey.info
@@ -0,0 +1,8 @@
+PRGNAM="kmldonkey"
+VERSION="0.10.1"
+HOMEPAGE="http://www.kmldonkey.org"
+DOWNLOAD="http://download.savannah.gnu.org/releases/kmldonkey/kmldonkey-0.10.1.tar.bz2"
+MD5SUM="e1932b1455c7a5cec53145b675bdd8d7"
+MAINTAINER="core"
+EMAIL="eroc@linuxmail.org"
+APPROVED="rworkman"
diff --git a/network/kmldonkey/slack-desc b/network/kmldonkey/slack-desc
new file mode 100644
index 0000000000..29c1ee213b
--- /dev/null
+++ b/network/kmldonkey/slack-desc
@@ -0,0 +1,12 @@
+ |-----handy-ruler--------------------------------------------------|
+kmldonkey: KMLDonkey (A KDE frontend for MLDonkey)
+kmldonkey:
+kmldonkey: KMLDonkey is an advanced GUI frontend for the MLDonkey P2P core.
+kmldonkey:
+kmldonkey: Homepage: http://www.kmldonkey.org
+kmldonkey:
+kmldonkey:
+kmldonkey:
+kmldonkey:
+kmldonkey:
+kmldonkey: