Skip to content

Instantly share code, notes, and snippets.

@ViktorNova
Last active August 29, 2015 14:17
Show Gist options
  • Save ViktorNova/cb343063e42453ee9b4d to your computer and use it in GitHub Desktop.
Save ViktorNova/cb343063e42453ee9b4d to your computer and use it in GitHub Desktop.
Making Buildbox - Stagecraft
BUILD_USER=""
BUILD_DIR="~/Dev"
adduser $BUILD_USER
apt-get install software-properties-common wget
echo "Installing KXstudio repos"
rm -f /var/kxstudio/*
apt-get purge kxstudio-repos
add-apt-repository ppa:kxstudio-debian/kxstudio
apt-get update
apt-get install kxstudio-repos
apt-get update
apt-get install sudo build-essential debhelper ruby-dev bash-completion nano git curl fakeroot dialog cmake qt4-dev-tools qt4-default qt4-qmake libjack-jackd2-dev libasound2-dev uuid-dev subversion byobu libx11-dev libXRender-dev libqt4-dbus apt-file qt5-default qt5-qmake libqt5x11extras5-dev libecm-dev ecm optipng libfontconfig1-dev libxft-dev libcairo2-dev liblo-dev bzr bzr-$BUILD_USERdeb bzr-git python-pip python3-pip qt5-qmake
gpasswd -a $BUILD_USER sudo
gem install fpm
su $BUILD_USER
cd $BUILD_DIR/
mkdir VIKTOR AUR ABS SRC
cd VIKTOR
git clone https://github.com/ViktorNova/architect.git
sudo dpkg -i $BUILD_DIR/VIKTOR/architect/packages/i686/architect-arch-tools-0.8.2_i386.deb
cd /usr/local/bin
sudo ln -s $BUILD_DIR/VIKTOR/architect/architect-aur
sudo ln -s $BUILD_DIR/VIKTOR/architect/architect-package
sudo chown -R $BUILD_USER /var/abs
echo "You need to uncomment a mirror. Press enter.."
read qqq
sudo nano /etc/pacman.d/mirrorlist
abs
echo "Setting shell prompt"
echo 'export PS1="\[$(tput bold)\]\n---$BUILD_USERBOX---\n\[$(tput setaf 4)\][\[$(tput setaf 5)\]\u\[$(tput setaf 4)\]@\[$(tput setaf 5)\]\h \[$(tput setaf 2)\]\W\[$(tput setaf 4)\]]\\$ \[$(tput sgr0)\]"' >> ~/.bashrc
sudo apt-get install autoconf libtool automoc
# SETUP LAUNCHPAD CREDENTIALS
echo "Configuring bzr username (press enter to skip)"
echo -n "Enter your Launchpad username: "
read ll
echo -n "Enter your Launchpad (bzr) full name: "
read ln
echo -n "Enter your Launchpad (bzr) email: "
read le
bzr launchpad-login $ll
bzr whoami "$ln <$le>"
# Install extra-cmake-modules, necessary for Virtuality. (there's probably a better way)
wget https://launchpad.net/~lubuntu-dev/+archive/ubuntu/lubuntu-daily/+$BUILD_USER/6507973/+files/extra-cmake-modules_1.3.0-0ubuntu1~ppa1_i386.deb
sudo dpkg -i extra-cmake-modules_1.3.0-0ubuntu1~ppa1_i386.deb
# IF I NEED NTK, UNCOMMENT THIS
#sudo apt-get install ntk-static
#echo 'export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/opt/kxstudio/lib/pkgconfig' >> ~/.bashrd
#cd /opt/kxstudio/include
#sudo ln -s ntk/FL/
# MOONLIGHT DE (& LXQT) BUILD DEPENDENCIES
# node: something with qt5xdg maybe got messed up with what version ended up working
# Something involving libqtxdg0-dev having the correct stuff but conflicting with something else that I had already installed, so I had to remove it..i dunno
# I ended up editing the source to use qtxdg/xdgmime.h instead of qt5xdg/xdgmime.h and it compiled
sudo apt-get install libqt5xdg-dev qttools5-dev qttools5-dev-tools libkf5windowsystem-dev libmenu-cache-dev libfm-dev libglib2.0-dev libxcomposite-dev x11proto-composite-dev libxcb-util0-dev libx11-xcb-dev libxcb-util0-dev libxcb-ewmh-dev libxcb-randr0-dev libxcb-icccm4-dev libxcb-keysyms1-dev libxcb-xinerama0-dev libxcb-ewmh2 libqtxdg0-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment