Skip to content

Instantly share code, notes, and snippets.

@afiestas
Created February 25, 2012 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afiestas/1908511 to your computer and use it in GitHub Desktop.
Save afiestas/1908511 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
jobs=$1
#Amount of jobs to use, 1 per core is desired
if [ $# -eq 0 ]
then
jobs=1
fi
#Adding Kubuntun ppa's for Qt4.8 and KDE 4.8
echo "deb http://ppa.launchpad.net/kubuntu-ppa/experimental/ubuntu oneiric main
deb-src http://ppa.launchpad.net/kubuntu-ppa/experimental/ubuntu oneiric main
deb http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu oneiric main
deb-src http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu oneiric main" > /tmp/rolf.txt
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8AC93F7A
#Updating the system and installing everything we need to compile atopixmap
apt-get update
apt-get -fy upgrade
apt-get -fy install git
apt-get -fy build-dep koffice
cd /root
#atopixmap compilation
git clone --depth 1 git://anongit.kde.org/clones/calligra/afiestas/atopixmap.git
mkdir atopixmap/build
cd atopixmap/build
cmake ../ -DCMAKE_INSTALL_PREFIX=/usr/
make -j$jobs install
cd ../../
#atopixmapserver compilation
git clone git://anongit.kde.org/scratch/afiestas/atopixmapserver.git
mkdir atopixmapserver/build
cd atopixmapserver/build
cmake ../ -DCMAKE_INSTALL_PREFIX=/usr/
make -j$jobs
echo "atopixmapserver is NOT installed in your $PATH, please copy it wherever you want to"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment