custom dmenu build included; setup convention fix

This commit is contained in:
Wryn Wagner 2021-10-01 11:18:11 -06:00
parent 831e7de06b
commit 49cc17831a
7 changed files with 41 additions and 11 deletions

28
setup/apps/setup.zsh Normal file
View File

@ -0,0 +1,28 @@
APPS__PACKAGE_DIR="$HOME/.packages"
function SETUP__APPS() {
STATUS 'starting application source-build installs'
APPS__SIMPLE_INSTALL 'https://github.com/tiyn/dmenu' 'patched-dmenu'
}
function APPS__SIMPLE_INSTALL() {
[ ! -d $APPS__PACKAGE_DIR ] && mkdir $APPS__PACKAGE_DIR
local TARGET="$1"
local NAME="$2"
local LOCAL_BUILD="$APPS_PACKAGE_DIR/$NAME"
CHECK "Downloading $NAME"
git clone $TARGET $LOCAL_BUILD >>$LOG 2>&1 \
&& { OK; cd $LOCAL_BUILD; } || { WARN; return 1; }
CHECK "Building $NAME"
make clean >>$LOG 2>&1 \
&& OK || { WARN; return 2; }
CHECK "Installing $NAME"
sudo make install >>$LOG 2>&1 \
&& OK || { WARN; return 3; }
}

View File

@ -1,4 +1,4 @@
AWS__SETUP() { function SETUP__AWS() {
STATUS 'starting aws setup' STATUS 'starting aws setup'
"$DOTWRYN_PATH/bin/aws/configure" "$DOTWRYN_PATH/bin/aws/configure"

View File

@ -1,4 +1,4 @@
CONFIG__SETUP() { function SETUP__CONFIG() {
############################################################################################ ############################################################################################
# Friendly Name ~/.config/THE_REST .wryn/config/THE_REST (if different) # Friendly Name ~/.config/THE_REST .wryn/config/THE_REST (if different)
CONFIG__SYMLINK 'compton' 'compton/compton.conf' CONFIG__SYMLINK 'compton' 'compton/compton.conf'

View File

@ -116,9 +116,10 @@ MAKE_REQUIRED_DIRECTORY_STRUCTURE() {
################################################################################ ################################################################################
source "$DOTWRYN_PATH/setup/os-dependencies/setup.zsh" source "$DOTWRYN_PATH/setup/os-dependencies/setup.zsh"
source "$DOTWRYN_PATH/setup/config/setup.zsh"
source "$DOTWRYN_PATH/setup/zsh/setup.zsh" source "$DOTWRYN_PATH/setup/zsh/setup.zsh"
source "$DOTWRYN_PATH/setup/vim/setup.zsh" source "$DOTWRYN_PATH/setup/vim/setup.zsh"
source "$DOTWRYN_PATH/setup/config/setup.zsh" source "$DOTWRYN_PATH/setup/apps/setup.zsh"
source "$DOTWRYN_PATH/setup/aws/setup.zsh" source "$DOTWRYN_PATH/setup/aws/setup.zsh"
################################################################################ ################################################################################
@ -130,14 +131,15 @@ source "$DOTWRYN_PATH/setup/aws/setup.zsh"
INIT INIT
GET_SUDO_PASSWORD GET_SUDO_PASSWORD
OS_DEPENDENCY__SETUP || FATAL 'user abort' SETUP__OS_DEPENDENCY || FATAL 'user abort'
MAKE_REQUIRED_DIRECTORY_STRUCTURE MAKE_REQUIRED_DIRECTORY_STRUCTURE
CONFIG__SETUP || ERROR=1 SETUP__CONFIG || ERROR=1
ZSH__SETUP || ERROR=2 SETUP__ZSH || ERROR=2
VIM__SETUP || ERROR=3 SETUP__VIM || ERROR=3
AWS__SETUP || ERROR=4 SETUP__APPS || ERROR=4
SETUP__AWS || ERROR=5
CLEANUP $ERROR CLEANUP $ERROR

View File

@ -8,7 +8,7 @@ source "$DOTWRYN_PATH/setup/os-dependencies/arch.zsh"
&& DEPENDENCY_DIR="$DOTWRYN_PATH/setup/os-dependencies" \ && DEPENDENCY_DIR="$DOTWRYN_PATH/setup/os-dependencies" \
|| DEPENDENCY_DIR="${0:a:h}" || DEPENDENCY_DIR="${0:a:h}"
function OS_DEPENDENCY__SETUP() { function SETUP__OS_DEPENDENCY() {
local ERROR=0 local ERROR=0
STATUS 'checking os dependencies' STATUS 'checking os dependencies'

View File

@ -2,7 +2,7 @@ source "$DOTWRYN_PATH/setup/vim/compile-from-source.zsh"
##################################################################### #####################################################################
function VIM__SETUP() { function SETUP__VIM() {
STATUS 'starting vim setup' STATUS 'starting vim setup'
VIM__COMPILE_FROM_SOURCE VIM__COMPILE_FROM_SOURCE
VIM__SOURCE_RC VIM__SOURCE_RC

View File

@ -1,6 +1,6 @@
##################################################################### #####################################################################
function ZSH__SETUP() { function SETUP__ZSH() {
ZSH__SET_DEFAULT_SHELL ZSH__SET_DEFAULT_SHELL
ZSH__SOURCE_RC ZSH__SOURCE_RC
} }