#!/bin/sh # test we are root if [ "$(id -u)" != "0" ]; then exit 1 fi export CFLAGS="-mtune=generic -Os -pipe" export CXXFLAGS="-mtune=generic -Os -pipe -fno-exceptions " P=lxappearance V=0.6.3 SRC=$P-$V USER=`cat /etc/sysconfig/tcuser` LIST="compiletc submitqc intltool gtk3-dev lxde-icon-theme " for Z in $LIST do su -c "tce-load -i $Z" $USER done cd /tmp su -c "/usr/local/bin/wget -nc --no-check-certificate \ https://sourceforge.net/projects/lxde/files/LXAppearance/$SRC.tar.xz " $USER tar xvf $SRC*xz cd $SRC ./configure --prefix=/usr/local --enable-gtk3 --disable-dbug --disable-dbus # Enable debug....................: no # Enable Dbus support.............: no # Prefix..........................: /usr/local make -j4 # seconds make install-strip DESTDIR=/tmp/$P cd /tmp # nothing in repo depends on existing bmarkus dev so delete it rm -rf $P/usr/local/include rm -rf $P/usr/local/lib # doc ##### mkdir -p $P-doc/usr/local/share/ mv $P/usr/local/share/man $P-doc/usr/local/share/ # locale ######### mkdir -p $P-locale/usr/local/share mv $P/usr/local/share/locale $P-locale/usr/local/share # main ###### mkdir -p $P/usr/local/share/doc/$P echo 'GPL v 2' > $P/usr/local/share/doc/$P/COPYING # desktop stuff ################ mkdir -p $P/usr/local/share/pixmaps cp /usr/local/share/icons/nuoveXT2/48x48/apps/preferences-desktop-theme.png $P/usr/local/share/pixmaps/lxappearance.png DESK=$P/usr/local/share/applications/$P.desktop sed '176d' -i $DESK # removes not show in certain desktops line sed 's|StartupNotify=true|StartupNotify=false|' -i $DESK # reduce dependency sed 's|X-LXDE-Settings;|System;System Tools;|' -i $DESK # add more menu items sed 's|preferences-desktop-theme|lxappearance|' -i $DESK echo 'X-FullPathIcon=/usr/local/share/pixmaps/lxappearance.png' >> $DESK # lxappearance segfaults and is a known issue at arch forum and some posts at sourceforge echo '#!/bin/sh GDK_BACKEND=x11 lxappearance' > $P/usr/local/bin/lxwl chmod 755 $P/usr/local/bin/lxwl # TCZ them ####### LIST="$P $P-doc $P-locale " for Z in $LIST do mksquashfs $Z $Z.tcz md5sum $Z.tcz > $Z.tcz.md5.txt cd $Z find . -not -type d | cut -c 2- | sort > /tmp/$Z.tcz.list cd /tmp done ls -hal echo 'Title: lxappearance-doc.tcz Description: man page Version: 0.6.3 Author: Hong Jen Yee, Ying-Chun Liu & Martin Bagge Original-site: https://sourceforge.net/projects/lxde/files/LXAppearance/ Copying-policy: GPL v 2 Size: 4.0K Extension_by: aus9 @linuxquestions.org Tags: gtk2 gtk3 gtk4 theme Comments: - Change-log: 2024/12/03 v 0.6.3 on 15x Current: 2024/12/03 ' > $P-doc.tcz.info echo 'man-db.tcz' > $P-doc.tcz.dep echo 'Title: lxappearance-locale.tcz Description: language files Version: 0.6.3 Author: Hong Jen Yee, Ying-Chun Liu & Martin Bagge Original-site: https://sourceforge.net/projects/lxde/files/LXAppearance/ Copying-policy: GPL v 2 Size: 136K Extension_by: aus9 @linuxquestions.org Tags: gtk2 gtk3 gtk4 theme Comments: - Change-log: 2014/01/19 v 0.5.5 on 5x (bmarkus) Current: 2024/12/03 ' > $P-locale.tcz.info echo 'lxappearance.tcz ' > $P-locale.tcz.dep echo 'Title: lxappearance.tcz Description: GUI gtk theme switcher Version: 0.6.3 Author: Hong Jen Yee, Ying-Chun Liu & Martin Bagge Original-site: https://sourceforge.net/projects/lxde/files/LXAppearance/ Copying-policy: GPL v 2 Size: 40K Extension_by: aus9 @linuxquestions.org Tags: gtk2 gtk3 gtk4 theme Comments: GUI way of changing values for $HOME/.gtkrc-2.0 $HOME/.config/gtk-3.0/settings.ini gtk4 not tested Will fail on weston. Will segfault on wlroots, unless you run $ lxwl Which is wrapper script that executes $ GDK_BACKEND=x11 lxappearance Optional TCE= skeuos-gtk-themes.tcz Change-log: 2014/01/19 v 0.5.5 on 5x (bmarkus) Current: 2024/12/03 v 0.6.3 on 15x (aus9) ' > $P.tcz.info readelf -d $P/usr/local/bin/* | grep 'NEEDED' #libgtk-3.so.0]#libgdk-3.so.0]gtk3 #libpangocairo-1.0.so.0]#libpango-1.0.so.0]pango gtk3 #libharfbuzz.so.0]harfbuzz #libatk-1.0.so.0]at-spi2-core gtk3 #libcairo-gobject.so.2]libcairo.so.2]cairo pango gtk3 #libgdk_pixbuf-2.0.so.0]gdk-pixbuf2 gtk3 #libgio-2.0.so.0 libgobject-2.0.so.0 libgthread-2.0.so.0 libglib-2.0.so.0libgmodule-2.0.so.0 glib2 cairo pango gtk3 #libX11.so.6]libX11 cairo pango gtk3 # ignore gtk icon caching echo 'gtk3.tcz harfbuzz.tcz ' > $P.tcz.dep submitqc --libs rm -rf *.zsync