summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2025-06-28 01:04:07 +0400
committerSuleyman Farajli <suleyman@farajli.net>2025-06-28 01:04:07 +0400
commit7e02dd2a01f81054e41b4cc9b4cd70fc02bd6a1e (patch)
tree548435d31d5a4295090c0cff673a0d92742448f2
parent4a69fcde900f9a227906f255c728071303bf5b46 (diff)
refactor: dep.sh removed
-rwxr-xr-xdep.sh107
1 files changed, 0 insertions, 107 deletions
diff --git a/dep.sh b/dep.sh
deleted file mode 100755
index 2e51e18..0000000
--- a/dep.sh
+++ /dev/null
@@ -1,107 +0,0 @@
-#!/bin/sh
-
-# Check if programs are installed on the system.
-# Format for entries `program,alternative_program:output_message`,
-# `alternative_program` and `message` are optional.
-check() {
- fail=0
- [ "${1}" = "-l" ] && { ISLIB=1; shift;} || ISLIB=0
- for entry in "${@}"; do
- missing=0
- program_part=${entry%%:*}
- program=${program_part%%,*}
- alt_program=${program_part#*,}
- msg=${entry#*:}
-
- [ "${msg}" = "${entry}" ] && msg="${program} is missing"
-
- if [ "${ISLIB}" -eq 1 ]; then
- pkg-config --exists "${program}" || missing=1
- elif ! command -v "${program}" > /dev/null 2>&1 &&
- ! command -v "${alt_program}" > /dev/null 2>&1; then
- missing=1
- fi
-
- [ "${missing}" -eq 1 ] && { echo "$msg" >&2; fail=1; }
- done
- return "${fail}"
-}
-
-retval=0
-
-# Optional Dependencies, skip QEMU and lualatex check
-[ "${1}" = "--optional" ] && check \
- cmus \
- latex,pdflatex:"latex is missing" \
- neomutt,mutt \
- pamus \
- pandoc \
- shellcheck \
- ssh \
- trans:"translate shell is missing" \
- abook \
- acpi \
- cmus \
- dash \
- docker \
- ffmpeg \
- less \
- pass \
- python3 \
- rsync \
- sudo \
- tldr:"a tldr implementation is missing" \
- unclutter:"unclutter-xfixes is missing" \
- yt-dlp
-
-# Programs
-check \
- Xorg \
- dunst \
- fzf \
- git \
- lf \
- mpv \
- notify-send:"libnotify is missing" \
- nsxiv,sxiv \
- nvim,vim \
- picom \
- qutebrowser \
- scrot \
- setxkbmap \
- startx:"xorg-xinit is missing" \
- xclip \
- zathura \
- zsh,bash
-
-# Script dependencies
-check \
- brightnessctl \
- pulseaudio \
- xgamma \
- xinput \
- xset \
- xwallpaper
-
-# Build dependencies
-check \
- cc:"c compiler is missing" \
- curl \
- fc-cache:"fontconfig is missing" \
- ld:"linker is missing" \
- make \
- tic:"ncurses is missing" \
- tar || retval=1
-
-# Libraries
-if check pkg-config; then
- check -l \
- x11:"libX11 is missing" \
- xft:"libXft is missing " \
- xinerama:"libXinerama is missing" || retval=1
-else
- echo "Warning: Skipping library check since 'pkg-config' is missing" >&2
- retval=1
-fi
-
-exit "${retval}"