After some tinkering, I got tired of entering the Slackware packages one by one to download from kde4.rlworkman.net and because I get them all the time, I created this little script to do it for me. I thought I share it with the rest of the world in case anyone else is lazy like me for that kind of operation.
As you know, they have been released quite often in the past couple of weeks. Script = Good. Manual Download = Bad. It goes without saying, use at your own expense. When you run the script, it will create a directory in /tmp that will download all the deps and all the kde packages. You can omit a few lines if you don’t want to download the dependency by putting a ‘#’ in front of the line.
Oh and by the way, the current version is 4.0.80 (beta1) as of this writing.
Here is the script after the jump.
#!/bin/bash
# --------------------------
# Copyright 2008 Benoit Beauchamp
# 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.
#
# Changelog:
#
# 0.2: 07/29/2008
# Fixed some variable and added extra
# 0.1: 05/28/2008 by Benoit Beauchamp
# Initial script.
NAME=KDE
VERSION=4.1.0
CWD=`pwd`
TMP=/tmp
PKG=$TMP/package-$NAME-$VERSION
rm -fr $PKG
mkdir -p $PKG
cd $PKG
#KDE
wget http://kde4.rlworkman.net/packages/kde/
mv index.html kde.list
kde=$(cat kde.list | grep tgz | grep $VERSION | awk '{ print $6 }' | cut -d'"' -f2)
#EXTRAGEAR
wget http://kde4.rlworkman.net/packages/kde/extragear
mv index.html extra.list
extra=$(cat extra.list | grep tgz | awk '{ print $6 }' | cut -d'"' -f2)
#DEPENDENCY
wget http://kde4.rlworkman.net/packages/deps/
mv index.html deps.list
deps=$(cat deps.list | grep tgz | awk '{ print $6 }' | cut -d'"' -f2)
#KDE
mkdir $PKG/kde
cd $PKG/kde
for i in $kde; do
wget http://kde4.rlworkman.net/packages/kde/$i
done
#EXTRA
mkdir $PKG/extra
cd $PKG/extra
for i in $extra; do
wget http://kde4.rlworkman.net/packages/kde/extragear/$i
done
#DEPENDENCY
mkdir $PKG/deps
cd $PKG/deps
for i in $deps; do
wget http://kde4.rlworkman.net/packages/deps/$i
done
6 Comments
Thanks! it’s right, I’m lazy xD!
disfrutar!!!
Thanks! XD
Thank you very much.
no problem..
It always pays to use google! This is exactly what I was looking for. I would have done this myself, if I weren’t so lazy and forgot how to properly use wget for this. I’ve done this before using curl for other projects, but I’m very happy you posted this.
Thank you so very much!
Shingoshi
One Trackback
Instalando KDE 4.1 en Slackware 12.1…
A continuación explico cómo instalar KDE 4.1 en Slackware 12.1. Es bastante sencillo, y esto se lo debemos a Robby Workman, por encargarse de hacer los paquetes instalables para Slackware, y a Benoit Beauchamp, por hacer el script que nos facilita la…