Last active
May 18, 2018 18:27
-
-
Save edouard-lopez/e92f16658bb2930e52aa to your computer and use it in GitHub Desktop.
Compiling pgmodeler `0.8.0-alpha1` on Ubuntu/Linux Mint (14.04) → http://pgmodeler.com.br/
This file contains hidden or 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
#!/usr/bin/env make | |
# DESCRIPTION | |
# Compiling pgmodeler | |
# | |
# USAGE | |
# sudo make postgres && make pgmodeler && ./build/start-pgmodeler.sh | |
# | |
# @author: Édouard Lopez <[email protected]> | |
# force use of Bash | |
SHELL := /bin/bash | |
# As normal user | |
pgmodelerVersion:=0.8.0-alpha1 | |
pgmodeler: | |
echo "out-of date version → update!" | |
cd ~/; \ | |
[[ ! -f ${pgmodelerVersion}.tar.gz ]] && wget -O "${pgmodelerVersion}.tar.gz" https://github.com/pgmodeler/pgmodeler/archive/v${pgmodelerVersion}.tar.gz || true; \ | |
tar xvzf ${pgmodelerVersion}.tar.gz -C ./ ; \ | |
cd pgmodeler-${pgmodelerVersion} \ | |
&& qmake -qt=5 QT+=designer pgmodeler.pro && make && make install | |
postgres: | |
apt-get -y install postgresql pgadmin3 | |
echo "pgmodeler requirements" | |
apt-get -y install libxml2{,-dev} libpq{5,-dev} qt{4,5}-qmake g++ libqt4-dev qt4-dev-tools libqt5serviceframework5 qtcreator{,-dev} qtbase5-dev{,-tools} qttools5-dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment