Skip to content

Instantly share code, notes, and snippets.

@mmstick
Last active August 12, 2021 23:04
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmstick/811058766e8ee34546f2 to your computer and use it in GitHub Desktop.
Save mmstick/811058766e8ee34546f2 to your computer and use it in GitHub Desktop.
Compiles and installs the GTK3 version of Geany on Ubuntu.
#!/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
#!/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