PROJET AUTOBLOG


Planet-Libre

source: Planet-Libre

⇐ retour index

Thuban : Installer proprement xfce-4.12 sur debian jessie

vendredi 15 janvier 2016 à 18:19
Je parlais il y a peu du rétroportage de xfce-4.12 sur debian jessie. J'y proposais un script qui compilait les paquets, mais qui était très vilain.
Depuis, j'en ai profité pour l'améliorer et ajouter le support d'autres paquets, afin d'avoir la suite xfce-4.12 au complet.

Pour utiliser ce script, assurez-vous d'avoir mis dans votre sources.list la ligne suivante :
deb-src http://ftp.fr.debian.org/debian testing main


Et voilà le script en question :

#!/bin/sh
#Auteur :      thuban 
#licence :     GNU General Public Licence v3

#Description : rétroportage de xfce4.12
# Il FAUT ABSOLUMENT AVOIR DANS LE SOURCES.LIST : 
# deb-src http://ftp.fr.debian.org/debian testing main

sudo apt-get update

mkdir -p xfce-backport
cd xfce-backport

INSTALLED=$(mktemp)

installdeb() {
    for pkg in *.deb; do
        if [ -z "$(grep $pkg $INSTALLED)" ]; then
            sudo dpkg -i $pkg
            if [ $? -eq 0 ]; then
                echo $pkg >> $INSTALLED
            fi
        fi
    done
}

backport() {
    sudo apt-get -y build-dep $1
    apt-get source $1
    cd $1*
    if [ $? -eq 0 ]; then
        dch -i  "handylinux backport"
        #debuild
        debuild -us -uc -b
        cd ..
        installdeb
    fi
}



PKGLIST="libxfce4util libxfce4ui xfconf garcon
xfce4-settings xfce4-panel xfdesktop4 xfce4-session xfwm4 xfce4-appfinder exo
xfce4-terminal xfce4-battery-plugin xfce4-weather-plugin xfce4-whiskermenu-plugin
xfce4-cpufreq-plugin xfce4-cpugraph-plugin xfce4-datetime-plugin xfce4-volumed
xfce4-mount-plugin xfce4-notifyd xfce4-mailwatch-plugin xfce4-xkb-plugin
xfce4-places-plugin xfce4-power-manager xfce4-notes-plugin
xfce4-sensors-plugin xfce4-settings xfce4-taskmanager thunar
thunar-archive-plugin thunar-volman tumbler orage xfce4 gtk2-engines-xfce
xfce4-battery-plugin xfce4-clipman xfce4-dict xfce4-diskperf-plugin xfce4-equake-plugin
xfce4-fsguard-plugin xfce4-genmon-plugin xfce4-indicator-plugin 
xfce4-linelight-plugin xfce4-mailwatch-plugin xfce4-messenger-plugin xfce4-mpc-plugin
xfce4-netload-plugin xfce4-places-plugin xfce4-quicklauncher-plugin xfce4-screenshooter
xfce4-smartbookmark-plugin xfce4-wavelan-plugin
xfce4-weather-plugin xfce4-wmdock-plugin xfce4-pulseaudio-plugin
xfce4-systemload-plugin xfce4-timer-plugin xfce4-verve-plugin
thunar-media-tags-plugin xfce4-goodies
"

#counter
N=0
TOT=$(echo $PKGLIST | wc -w)



for pkg in $PKGLIST; do
    N=$(($N+1))
    echo ""
    echo "===> Prepare $pkg"
    echo ""
    notify-send "$N/$TOT $pkg"
    backport $pkg
done

echo "Fini!"

exit 0





Les paquets seront installés au fur et à mesure. En redémarrant votre session, vous pourrez profiter de xfce-4.12.
— (permalink)

Gravatar de Thuban
Original post of Thuban.Votez pour ce billet sur Planet Libre.