mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
network/xdman: Added (download manager).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
09e6249b03
commit
28d3843e7f
7 changed files with 177 additions and 0 deletions
21
network/xdman/README
Normal file
21
network/xdman/README
Normal file
|
@ -0,0 +1,21 @@
|
|||
xdman (download manager)
|
||||
|
||||
Xtreme Download Manager is a powerful tool to increase download speed up-to 500%,
|
||||
save videos from video sharing sites and integration with ANY browser.
|
||||
|
||||
On Google Chrome|Chromium|Vivaldi,Opera >12.16, type on URL bar: chrome://extensions
|
||||
Check "Developer mode", click on "Load Unpacked extension" and select ~/xdm-helper folder.
|
||||
|
||||
On Mozilla Firefox, simply drag and drop file ~/xdm-helper/xdmff.xpi.
|
||||
|
||||
For other browsers, go to Tools/Browser Integration.
|
||||
|
||||
On this version, Java (openjdk,jdk, etc) is not a dependency!
|
||||
|
||||
Some features present in Xtreme Download Manager are:
|
||||
|
||||
* Superfast speed;
|
||||
* Save video from any website;
|
||||
* Supports any browser;
|
||||
* Runs on any Operating system;
|
||||
* Free, No-Adware and Open source.
|
13
network/xdman/doinst.sh
Normal file
13
network/xdman/doinst.sh
Normal file
|
@ -0,0 +1,13 @@
|
|||
if [ -x /usr/bin/update-desktop-database ]; then
|
||||
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
if [ -x /usr/bin/update-mime-database ]; then
|
||||
/usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
|
||||
if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
||||
/usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
|
||||
fi
|
||||
fi
|
19
network/xdman/slack-desc
Normal file
19
network/xdman/slack-desc
Normal file
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description.
|
||||
# Line up the first '|' above the ':' following the base package name, and
|
||||
# the '|' on the right side marks the last column you can put a character in.
|
||||
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
xdman: xdman (download manager)
|
||||
xdman:
|
||||
xdman: Xtreme Download Manager is a powerful tool to increase download speed
|
||||
xdman: up-to 500%, save videos from video sharing sites and integration
|
||||
xdman: with ANY browser.
|
||||
xdman:
|
||||
xdman: Home page: http://xdman.sourceforge.net/index.html
|
||||
xdman:
|
||||
xdman:
|
||||
xdman:
|
||||
xdman:
|
3
network/xdman/xdman
Normal file
3
network/xdman/xdman
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
DIR="/usr/share/xdman"
|
||||
$DIR/jre/bin/java -jar $DIR/xdm.jar
|
100
network/xdman/xdman.SlackBuild
Normal file
100
network/xdman/xdman.SlackBuild
Normal file
|
@ -0,0 +1,100 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Slackware build script for xdman.
|
||||
#
|
||||
# Copyright 2015 Edinaldo P. Silva, Rio de Janeiro, Brazil.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
# permitted provided that the following conditions are met:
|
||||
#
|
||||
# 1. Redistributions of this script must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
||||
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=xdman
|
||||
VERSION=${VERSION:-5.0.47}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
SRCNAM="xdm"
|
||||
SUFFIX="jre"
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
rm -rf $TMP/$PRGNAM-$VERSION
|
||||
cd $TMP
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
tar xvf $CWD/$SRCNAM-$SUFFIX-32bit.tar.xz
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
tar xvf $CWD/$SRCNAM-$SUFFIX-64bit.tar.xz
|
||||
fi
|
||||
|
||||
mv $SRCNAM $PRGNAM-$VERSION
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
install -d $PKG/usr/bin
|
||||
install -D -m755 $CWD/xdman $PKG/usr/bin/xdman
|
||||
install -d $PKG/usr/share/{applications,pixmaps,$PRGNAM}
|
||||
install -D -m644 $CWD/xdman.desktop $PKG/usr/share/applications/xdman.desktop
|
||||
install -D -m644 icon.png $PKG/usr/share/pixmaps/xdman.png
|
||||
cp -a jre xdm.jar $PKG/usr/share/$PRGNAM
|
||||
|
||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM-SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
11
network/xdman/xdman.desktop
Normal file
11
network/xdman/xdman.desktop
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Desktop Entry]
|
||||
Type=Application
|
||||
Encoding=UTF-8
|
||||
Name=Xdman
|
||||
GenericName=Xtreme Download Manager
|
||||
Comment=Powerfull download accelarator and video downloader
|
||||
Icon=/usr/share/pixmaps/xdman.png
|
||||
Exec=xdman
|
||||
TryExec=xdman
|
||||
Terminal=false
|
||||
Categories=Network;
|
10
network/xdman/xdman.info
Normal file
10
network/xdman/xdman.info
Normal file
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="xdman"
|
||||
VERSION="5.0.47"
|
||||
HOMEPAGE="http://xdman.sourceforge.net/index.html"
|
||||
DOWNLOAD="http://sourceforge.net/projects/xdman/files/xdm-jre-32bit.tar.xz"
|
||||
MD5SUM="1db7d588dddc7f6e4c7a4f1d4a8e73e3"
|
||||
DOWNLOAD_x86_64="http://sourceforge.net/projects/xdman/files/xdm-jre-64bit.tar.xz"
|
||||
MD5SUM_x86_64="00096f8c8a50f93c9f4d02687474e9b0"
|
||||
REQUIRES=""
|
||||
MAINTAINER="Edinaldo P. Silva"
|
||||
EMAIL="edps.mundognu@gmail.com"
|
Loading…
Reference in a new issue