Last active
August 12, 2021 23:04
-
-
Save mmstick/811058766e8ee34546f2 to your computer and use it in GitHub Desktop.
Compiles and installs the GTK3 version of Geany on Ubuntu.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export CFLAGS='-march=native -O3 -pipe -fstack-protector -Wall' | |
export CXXFLAGS='-march=native -O3 -pipe -fstack-protector -Wall' | |
sourcedir="$HOME/.local/src" | |
mkdir "$sourcedir" | |
function git-clone() { | |
target="${sourcedir}/$1" | |
git clone "https://github.com/geany/$1" "$target" | |
cd "$target" | |
} | |
function compile() { | |
git-clone "$1" | |
./waf configure "$2" | |
./waf build | |
sudo ./waf install | |
} | |
function install-dependencies() { | |
sudo apt-get install -y build-essential git \ | |
lib{gtk2.0,gtk-3,vte,gtkspell,git2,ctpl}-dev | |
} | |
install-dependencies | |
compile "geany" "--enable-gtk3" | |
compile "geany-plugins" "" | |
git-clone "geany-themes"; sudo ./install.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export CFLAGS='-march=native -O3 -pipe -fstack-protector -Wall' | |
export CXXFLAGS='-march=native -O3 -pipe -fstack-protector -Wall' | |
sourcedir="$HOME/.local/src" | |
mkdir "$sourcedir" | |
function git-clone() { | |
cd "${sourcedir}/$1" | |
git pull | |
} | |
function compile() { | |
git-clone "$1" | |
./waf configure "$2" | |
./waf build | |
sudo ./waf install | |
} | |
function install-dependencies() { | |
sudo apt-get install -y build-essential git \ | |
lib{gtk2.0,gtk-3,vte,gtkspell,git2,ctpl}-dev | |
} | |
install-dependencies | |
compile "geany" "--enable-gtk3" | |
compile "geany-plugins" "" | |
git-clone "geany-themes"; sudo ./install.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment