Skip to content

Instantly share code, notes, and snippets.

@Nullreff
Last active December 25, 2016 03:30
Show Gist options
  • Save Nullreff/11240111 to your computer and use it in GitHub Desktop.
Save Nullreff/11240111 to your computer and use it in GitHub Desktop.
Krita on Debian
#!/bin/sh
# See http://www.davidrevoy.com/article193/guide-building-krita-on-linux-for-cats
# Directory setup
SOURCE=~/src/software/calligra
BUILD=~/src/software/krita
INSTALL=/opt/krita
mkdir -p $SOURCE $BUILD $INSTALL
# Install dependencies
sudo apt-get install -y git make cmake libboost-dev kdepimlibs5-dev libeigen2-dev okular-dev libgsf-1-dev libwpd-dev libwpg-dev libwps-dev libpstoedit-dev libglew-dev libgsl0-dev automoc libkdcraw-dev libpqxx3-dev fftw-dev libopenigtlink1-dev liblcms2-dev libvc-dev
# Download the source
if [ -d $SOURCE/.git/ ]; then
cd $SOURCE;
git pull
else
git clone git://anongit.kde.org/calligra.git $SOURCE
fi
# Configure
cd $BUILD
cmake -DCMAKE_INSTALL_PREFIX=$INSTALL $SOURCE -DCMAKE_BUILD_TYPE=RelWithDebInfo -DPRODUCTSET=CREATIVE -DBUILD_karbon=OFF
# Build
make -j `nproc`
# Install
sudo make install -j `nproc`
@hosiet
Copy link

hosiet commented Dec 25, 2016

Your script is lacking l10n support.

A new approach would be like this:

sudo apt update
sudo apt install krita krita-l10n

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment