slaxbuilds

pull/40/head
TomasM 2017-10-31 12:41:25 -04:00
parent 8f02ba4c24
commit b5fda18642
6 changed files with 15 additions and 75 deletions

View File

@ -25,6 +25,8 @@ rm -f /var/lib/dhcp/dhclient.leases
rm -f /root/.bash_history
rm -f /root/.wget-hsts
rm -Rf /usr/share/doc/*
rm -f /usr/share/images/fluxbox/debian-squared.jpg
rm -Rf /usr/share/fluxbox/nls/??*
rm -Rf /usr/share/locale/??
rm -Rf /usr/share/locale/??_*

View File

@ -1,9 +0,0 @@
apt-get update
apt-get install --yes --no-install-recommends chromium
. ../cleanup
rm -Rf /usr/share/icons/gnome/256x256
savechanges /04-chromium.sb

View File

@ -1,44 +0,0 @@
#!/bin/bash
CWD=$(dirname $(readlink -f $0))
NAME=fluxbox
VERSION=1.3.5
# first install stock version
apt-get update
apt-get install --no-install-recommends --yes $NAME feh
. ../cleanup
savechanges /$NAME-stock.sb
cd /
unsquashfs /$NAME-stock.sb
# then, we want to patch it to implement window resizing!
# so we will recompile whole package
REBUILD=/tmp/$NAME-rebuild-$$
apt-get update
apt-get --yes build-dep $NAME
mkdir -p $REBUILD
cd $REBUILD
apt-get source $NAME
cd $NAME-$VERSION
cat $CWD/patches/fluxbox-slax.diff > debian/patches/fluxbox-slax.diff
echo fluxbox-slax.diff >> debian/patches/series
dpkg-buildpackage -us -uc
rm -Rf debian/$NAME/DEBIAN
rm -Rf debian/$NAME/usr/share/doc
rm -Rf debian/$NAME/usr/share/images
cp debian/$NAME/usr/bin/fluxbox /squashfs-root/usr/bin
savechanges /03-fluxbox.sb /squashfs-root

View File

@ -27,9 +27,18 @@
};
// x, y, width and height define a space within which we're drawing a triangle
--- a/src/ToolFactory.cc
+++ b/src/ToolFactory.cc
@@ -110,6 +142,9 @@ ToolbarItem *ToolFactory::create(const s
--- a/src/ToolFactory.cc 2013-02-13 05:04:05.000000000 -0500
+++ b/src/ToolFactory.cc 2017-10-31 12:11:20.000000000 -0400
@@ -101,6 +101,8 @@
cmd_str += " (workspace=[current])";
}
+ if (name.find("menu") != std::string::npos) cmd_str = "Exec fbmenu";
+
FbTk::RefCount<FbTk::Command<void> > cmd(FbTk::CommandParser<void>::instance().parse(cmd_str));
if (cmd == 0) // we need a command
return 0;
@@ -110,6 +112,9 @@
if (name.find("prev") != std::string::npos)
arrow_type = FbTk::FbDrawable::LEFT;

View File

@ -1,18 +0,0 @@
apt-get update
apt-get install --yes --no-install-recommends xserver-xorg xinit xterm blackbox libxcursor1 breeze-cursor-theme
# default cursor is white
ln -sf /etc/X11/cursors/Breeze_Snow.theme /etc/alternatives/x-cursor-theme
cp ../cleanup /tmp
# install x11 server utils, apt-get would add cpp dependency, bullshit!
cd /tmp
apt-get download x11-xserver-utils
dpkg -x x11-xserver-utils*.deb /tmp/x11utils
cd /tmp/x11utils
cp -aR * /
/tmp/cleanup
savechanges /02-xorg.sb

View File

@ -58,7 +58,7 @@ Mod4 8 :Tab 8
Mod4 9 :Tab 9
# open a terminal
Mod1 F1 :Exec x-terminal-emulator
Mod1 F1 :Exec xterm
# open a dialog to run programs
Mod1 F2 :Exec fbrun