#!/bin/sh # test we are root if [ "$(id -u)" != "0" ]; then echo "run as root now exitting" exit 1 fi P=Canta-light V=20180507 SRC=$P-$V USER=`cat /etc/sysconfig/tcuser` LIST="submitqc " for Z in $LIST do su -c "tce-load -i $Z" $USER done D1=https://dl.opendesktop.org/api/files/downloadfile/id/1525619217/s D2=5b0d4930fe7d9a8cfe081698b9513850/t/1525651752/u/322444 cd /tmp su -c "/usr/local/bin/wget -nc --no-check-certificate \ $D1/$D2/$P.tar.xz " $USER xz -d $P*xz && tar xvf $P*tar mv $P $SRC mkdir -p $P/usr/local/share/themes mv $SRC $P/usr/local/share/themes/$P # only building the light theme # main ##### mkdir -p $P/usr/local/share/doc/$P mv $P/usr/local/share/themes/$P/COPYING $P/usr/local/share/doc/$P/ rm -rf $P/usr/local/share/themes/$P/AUTHORS # TCZ them ####### LIST="$P " for Z in $LIST do mksquashfs $Z $Z.tcz md5sum $Z.tcz > $Z.tcz.md5.txt cd $Z find usr -not -type d > /tmp/$Z.tcz.list sed 's|usr|/usr|g' -i /tmp/$Z.tcz.list cd /tmp done echo 'gtk3.tcz' > $P.tcz.dep # website says gplv3 but doc says its gpl v2 echo 'Title: Canta-light.tcz Description: gtk3 light theme Version: 20180507 Author: nana-4 and Vince Liuice Original-site: https://www.gnome-look.org/p/1220749/ Copying-policy: GPL v2 Size: Extension_by: aus9 at gmx dot com Tags: xfce gtk3 theme gnome Comments: Light gtk3 theme based on Materia XFCE settings -> Appearance -> Style theme XFCE settings -> Window Manager theme May work on other WMs too This is better than Azure as it does not suffer from white fg on bg that Azure has. Compiled for 64 9.x Change-log: 2018/05/07 First version Current: 2018/05/07 ' > $P.tcz.info submitqc --libs