mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
network/kmldonkey: Added to 12.0 repository
This commit is contained in:
parent
284c179556
commit
a606a99c02
5 changed files with 94 additions and 0 deletions
2
network/kmldonkey/README
Normal file
2
network/kmldonkey/README
Normal file
|
@ -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)
|
10
network/kmldonkey/doinst.sh
Normal file
10
network/kmldonkey/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
|
||||
)
|
62
network/kmldonkey/kmldonkey.SlackBuild
Normal file
62
network/kmldonkey/kmldonkey.SlackBuild
Normal file
|
@ -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
|
8
network/kmldonkey/kmldonkey.info
Normal file
8
network/kmldonkey/kmldonkey.info
Normal file
|
@ -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"
|
12
network/kmldonkey/slack-desc
Normal file
12
network/kmldonkey/slack-desc
Normal file
|
@ -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:
|
Loading…
Reference in a new issue