dot

packages and services management
Log | Files | Refs | README

commit 264723be233f0c151c82eaf89f1f5faf7c374cb8
parent 4500d08c61d343bffa0ad7725eee48c11c7576f4
Author: josuah <mail@josuah.net>
Date:   Wed, 14 Dec 2016 22:17:46 +0000

Set CFLAGS globally for package manager

Diffstat:
M.local/bin/build | 3+++
M.local/share/build/lua | 2+-
M.local/share/build/tmux | 9---------
M.local/share/build/vis | 7-------
M.profile | 2+-
5 files changed, 5 insertions(+), 18 deletions(-)

diff --git a/.local/bin/build b/.local/bin/build @@ -77,6 +77,9 @@ compile() { local name="$1" tar="$2" local PREFIX="$PROGRAMS/$name" script="$PREFIX/share/build/$name" + export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 + export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 + export CFLAGS="-I $LOCAL/include -L$LOCAL/lib" [ -f "$script" -o -h "$script" ] || error "$name" "no build script" . "$script" diff --git a/.local/share/build/lua b/.local/share/build/lua @@ -4,5 +4,5 @@ tar='http://www.lua.org/ftp/lua-5.3.2.tar.gz' build() { - make INSTALL_TOP="$PREFIX" "$(uname | tr [A-Z] [a-z])" install + make clean INSTALL_TOP="$PREFIX" "$(uname | tr [A-Z] [a-z])" install } diff --git a/.local/share/build/tmux b/.local/share/build/tmux @@ -1,12 +1,3 @@ # Terminal multiplexer that rocks tar=http://github.com/tmux/tmux/releases/download/2.3/tmux-2.3.tar.gz - -build() -{ - ./configure \ - --prefix="$PREFIX" \ - CFLAGS="-I$HOME/.local/include" \ - LDFLAGS="-L$HOME/.local/lib" - make install -} diff --git a/.local/share/build/vis b/.local/share/build/vis @@ -1,10 +1,3 @@ # a highly efficient vim like text editor tar=http://github.com/martanne/vis/archive/master.tar.gz - -build() -{ - ./configure --prefix="$PREFIX" CFLAGS="-I$LOCAL/include" - - make install -} diff --git a/.profile b/.profile @@ -24,7 +24,7 @@ export EMAIL='mail@josuah.net' export MAIL="$HOME/Mail/INBOX" # default commands -export EDITOR="vi" +export EDITOR="vim" export VISUAL="$EDITOR" export FCEDIT="$EDITOR" export PAGER="less"