build scripts for modules

pull/40/head
TomasM 2017-10-18 08:48:47 -04:00
parent 86a0ea3d6b
commit e1f8ae8290
2 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,28 @@
#!/bin/bash
NAME=fluxbox
VERSION=1.3.5
REBUILD=/tmp/$NAME-rebuild-$$
CWD=$(dirname $(readlink -f $0))
apt-get update
apt-get build-dep $NAME
mkdir -p $REBUILD
cd $REBUILD
apt-get source $NAME
cd $NAME-$VERSION
cat $CWD/patches/fluxbox-border-resize.diff > debian/patches/fluxbox-border-resize.diff
echo fluxbox-border-resize.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
savechanges /03-fluxbox.sb debian/$NAME

View File

@ -0,0 +1,18 @@
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