diff options
author | core <eroc@linuxmail.org> | 2010-05-11 20:01:36 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 20:01:36 +0200 |
commit | a606a99c0290de782032439b8071c5dca455b301 (patch) | |
tree | 5fc9c53d2b7b81be9904404524b6fc2cc3b2d4d1 | |
parent | 284c1795566b02d02c3fc88aaa240c27c2964626 (diff) | |
download | slackbuilds-a606a99c0290de782032439b8071c5dca455b301.tar.gz |
network/kmldonkey: Added to 12.0 repository
-rw-r--r-- | network/kmldonkey/README | 2 | ||||
-rw-r--r-- | network/kmldonkey/doinst.sh | 10 | ||||
-rw-r--r-- | network/kmldonkey/kmldonkey.SlackBuild | 62 | ||||
-rw-r--r-- | network/kmldonkey/kmldonkey.info | 8 | ||||
-rw-r--r-- | network/kmldonkey/slack-desc | 12 |
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: |