mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-03 09:17:50 +03:00
39b3f72f75
--we dont need to remove our old desktop files any more. Our users that use Latte through master branch installation should have already updated their desktop file properly.
31 lines
690 B
Bash
Executable File
31 lines
690 B
Bash
Executable File
#!/bin/bash
|
|
#Author: Michail Vourlakos, Smith Ar
|
|
#Summary: Installation script for Latte Dock Panel
|
|
#This script was written and tested on openSuSe Leap 42.1
|
|
set -e
|
|
|
|
build_type=$1
|
|
build_type=${build_type:="Release"}
|
|
|
|
if ! [ -a build ] ; then
|
|
mkdir build
|
|
fi
|
|
|
|
cd build
|
|
|
|
if [ "$1" == "-translations" ] ; then
|
|
if [ -a po ] ; then
|
|
sudo rm -fr po
|
|
fi
|
|
if [ -a locale ] ; then
|
|
sudo rm -fr locale
|
|
fi
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr -DKDE_L10N_BRANCH=trunk -DKDE_L10N_AUTO_TRANSLATIONS=ON -DCMAKE_BUILD_TYPE=$build_type ..
|
|
make fetch-translations
|
|
else
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=$build_type ..
|
|
make
|
|
fi
|
|
|
|
sudo make install
|