dot

packages and services management
Log | Files | Refs | README

commit a1ae87ec0bf71f97afa9be2bb9cf19971c9da47b
parent e3b1ca2851b80d16b653a944f10208439506a60f
Author: josuah <mail@josuah.net>
Date:   Thu, 19 Jan 2017 16:38:52 +0100

Removed build command from tree.

Diffstat:
D.local/bin/build | 183-------------------------------------------------------------------------------
M.local/bin/www | 2+-
D.local/share/build/abduco | 3---
D.local/share/build/busybox | 12------------
D.local/share/build/byacc | 3---
D.local/share/build/cmatrix | 3---
D.local/share/build/ctags | 3---
D.local/share/build/dash | 3---
D.local/share/build/dmenu | 13-------------
D.local/share/build/dvtm | 11-----------
D.local/share/build/dwm | 3---
D.local/share/build/ex-vi | 8--------
D.local/share/build/git | 3---
D.local/share/build/ii | 3---
D.local/share/build/iomenu | 3---
D.local/share/build/isync | 10----------
D.local/share/build/less | 3---
D.local/share/build/libbearssl | 3---
D.local/share/build/libevent | 2--
D.local/share/build/libncurses | 3---
D.local/share/build/libtermkey | 10----------
D.local/share/build/libtool | 3---
D.local/share/build/libunibilium | 3---
D.local/share/build/libutf | 3---
D.local/share/build/lpeg | 8--------
D.local/share/build/lua | 9---------
D.local/share/build/m4 | 3---
D.local/share/build/mandoc | 20--------------------
D.local/share/build/mblaze | 3---
D.local/share/build/mksh | 10----------
D.local/share/build/mmh | 4----
D.local/share/build/msmtp | 4----
D.local/share/build/mujs | 3---
D.local/share/build/nafe | 8--------
D.local/share/build/pcre | 3---
D.local/share/build/pkg-config | 3---
D.local/share/build/reflex | 3---
D.local/share/build/retawq | 10----------
D.local/share/build/ssmtp | 3---
D.local/share/build/st | 3---
D.local/share/build/tmux | 3---
D.local/share/build/valgrind | 3---
D.local/share/build/vim | 16----------------
D.local/share/build/vis | 10----------
D.local/share/build/yasm | 3---
M.mailrc | 4++++
46 files changed, 5 insertions(+), 427 deletions(-)

diff --git a/.local/bin/build b/.local/bin/build @@ -1,183 +0,0 @@ -# Install sources from build receipes - -export LOCAL="$HOME/.local" -export CONFIG="${XDG_CONFIG_HOME:-HOME/.config}" -export PROGRAMS="$HOME/programs" -export PATH="$LOCAL/bin:$PATH" -export CPATH="$LOCAL/include:$CPATH" -export MANPATH="$LOCAL/share/man:$LOCAL/man:$MANPATH" -export LIBPATH="$LOCAL/lib:$LIBPATH" -export LD_RUN_PATH="$LOCAL/lib:$LD_RUN_PATH" -export LD_LIBRARY_PATH="$LOCAL/lib:$LD_LIBRARY_PATH" - - -# check wether if the script is being sourced or run -if [ "${0##*/}" = build ] -then - - -usage() -{ - printf %s "\ -${0##*/} d[ownload] PKG Download PKG's sources -${0##*/} i[nstall] PKG Download then install PKG -${0##*/} r[emove] PKG Remove build PKG and its sources -${0##*/} u[pdate] PKG Delete, then download and install PKG again -${0##*/} l[inks] Update links from ~${PROGRAMS#$HOME} to ~${LOCAL#$HOME} -${0##*/} v[iew] View the list of available packages -" - exit 0 -} - - -view() -{ - find -L "$LOCAL/share/build" -type f | while IFS='' read -r f - do - read -r comment description < "$f" - printf ' %-12s %s\n' "${f#$LOCAL/share/build/}" "$description" - done | sort | more - exit 0 -} - - -error() -{ - printf '\033[31m%-12s \033[1m%s\033[m\n' "$1" "$2" 1>&2; exit 1 -} - - -info() -{ - printf '\033[36m%-12s \033[1m%s\033[m\n' "$1" "$2" 1>&2 -} - - -# -# Default build function, to be overriden in the build recipes scripts -# -build() -{ - find "$CONFIG/$1" -name '*.diff' -exec patch -N -p 1 -i {} \; - - for file in "$CONFIG/$1/config.mk" "$CONFIG/$1/config.h" - do - [ -h "$file" ] || [ -f "$file" ] && cp -f "$file" . - done - - [ -f ./autogen.sh ] && ./autogen.sh - [ -f ./configure ] && ./configure --prefix="$PREFIX" - - make && make PREFIX="$PREFIX" install clean -} - - -compile() -{ - name="$1" - PREFIX="$PROGRAMS/$name" script="$LOCAL/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" ] || [ -h "$script" ] || error "$name" "no build script" - . "$script" - - info "$name" "installing" - - cd "$PREFIX" && mkdir -p bin doc etc include lib libexec share man - cd src && build "$name" - cd "$PREFIX" && rmdir -p ./* 2> /dev/null -} - - -download() -{ - name="$1" tar="$2" script="$LOCAL/share/build/$name" - - [ -d "$PROGRAMS/$name/src" ] && error "$name" "already in $PROGRAMS" - [ -f "$script" ] || [ -h "$script" ] || error "$name" "no build script" - . "$script" - - info "$name" "downloading" - - case "$tar" in - *.tar ) opt='' ;; - *.tbz2 | *.tar.bz2 ) opt='j' ;; - *.tgz | *.tar.gz ) opt='z' ;; - *.txz | *.tar.xz ) opt='J' ;; - * ) error "$name" 'not a known tar extension' ;; - esac - - mkdir -p "$PROGRAMS/$name" - wget -O - "$tar" | tar -xv"$opt" -f - -C "$PROGRAMS/$name" 1> /dev/null - - mv "$PROGRAMS/$name/"* "$PROGRAMS/$name/src" -} - - -remove() -{ - info "$1" "removing" - rm -rf "${PROGRAMS:?}/$1" -} - - -# 1: name of the program in "$PROGRAMS" to index in "$LOCAL" - -index() -{ - info "$1" "updating index in ~${LOCAL#$HOME}" - cd "$PROGRAMS/$1" || exit 1 - find . -type d ! -path '*/src/*' -exec mkdir -p "$LOCAL/{}" \; - find . ! -type d ! -path '*/src/*' -exec ln -sf "$PWD/{}" "$LOCAL/{}" \; -} - - -main() -{ - mkdir -p "$PROGRAMS" - - case "$1" in - d | download ) - download "$2" "$tar" - index "$2" - ;; - i | install ) - [ ! -d "$PROGRAMS/$2/src" ] && download "$2" "$tar" - compile "$2" - index "$2" - ;; - r | remove ) - remove "$2" - ;; - u | update ) - remove "$2" - download "$2" "$tar" - compile "$2" - index "$2" - ;; - l | link ) - find "$PROGRAMS" -maxdepth 1 -mindepth 1 | while IFS='' read -r name - do - index "${name#$PROGRAMS}" - done - ;; - v | view ) - view - ;; - * | '' ) - usage - ;; - esac - - info '' "removing broken links from ~${LOCAL#$HOME}" - find -L "$LOCAL" -type l -exec rm {} \; -} - - -main "$@" - - -fi diff --git a/.local/bin/www b/.local/bin/www @@ -74,7 +74,7 @@ list() nav() { find . -mindepth 1 -maxdepth 1 -type d ! -path '*/.*' | sort | - sed -r 's_..(.*)_| <a href="{{ root }}/\1">\1</a>_' + sed -r 's|..(.*)| <a href="{{ root }}/\1">\1</a>|' } diff --git a/.local/share/build/abduco b/.local/share/build/abduco @@ -1,3 +0,0 @@ -# Dynamic virtual terminal manager - -tar=http://www.brain-dump.org/projects/abduco/abduco-0.6.tar.gz diff --git a/.local/share/build/busybox b/.local/share/build/busybox @@ -1,12 +0,0 @@ -# Multitool for the shell - -tar=https://busybox.net/downloads/busybox-1.25.1.tar.bz2 - -build() -{ - make defconfig - make CONFIG_PREFIX="$PREFIX" - - ./busybox --install "$LOCAL/bin" - ln -sf ./busybox "$LOCAL/bin/busybox" -} diff --git a/.local/share/build/byacc b/.local/share/build/byacc @@ -1,3 +0,0 @@ -# Rewrite of YACC: Yet Another Compiler Compiler - -tar=http://invisible-island.net/datafiles/release/byacc.tar.gz diff --git a/.local/share/build/cmatrix b/.local/share/build/cmatrix @@ -1,3 +0,0 @@ -# Matrix ncurses animation - -tar=http://www.asty.org/cmatrix/dist/cmatrix-1.2a.tar.gz diff --git a/.local/share/build/ctags b/.local/share/build/ctags @@ -1,3 +0,0 @@ -# Exuberant Ctags - -tar=http://prdownloads.sourceforge.net/ctags/ctags-5.8.tar.gz diff --git a/.local/share/build/dash b/.local/share/build/dash @@ -1,3 +0,0 @@ -# debian almquist shell - -tar=http://gondor.apana.org.au/~herbert/dash/files/dash-0.5.9.tar.gz diff --git a/.local/share/build/dmenu b/.local/share/build/dmenu @@ -1,13 +0,0 @@ -# Dynamic menu - -tar=http://dl.suckless.org/tools/dmenu-4.6.tar.gz - -build() -{ - cc stest.c -o stest - cp stest "$PREFIX/bin/stest" - - sed -i '/^FREETYPEINC = \$/ s/^/#/' config.mk - - make PREFIX="$PREFIX" install clean -} diff --git a/.local/share/build/dvtm b/.local/share/build/dvtm @@ -1,11 +0,0 @@ -# Dynamic virtual terminal manager - -tar=http://github.com/martanne/dvtm/archive/master.tar.gz - -build() -{ - patch -Ni ~/.config/dvtm/dvtm-statusline.diff - cp ~/.config/dvtm/config.h config.h - cp ~/.config/dvtm/dvtm-status dvtm-status - make PREFIX="$PREFIX" install -} diff --git a/.local/share/build/dwm b/.local/share/build/dwm @@ -1,3 +0,0 @@ -# Dynamic window manager - -tar=http://dl.suckless.org/dwm/dwm-6.1.tar.gz diff --git a/.local/share/build/ex-vi b/.local/share/build/ex-vi @@ -1,8 +0,0 @@ -# The Traditional Vi - Source Code for Modern Unix Systems - -tar=http://prdownloads.sourceforge.net/ex-vi/ex-050325.tar.bz2 - -build() -{ - make INSTALL='install' PREFIX="$PREFIX" install -} diff --git a/.local/share/build/git b/.local/share/build/git @@ -1,3 +0,0 @@ -# The great git version control system - -tar=http://www.kernel.org/pub/software/scm/git/git-2.10.0.tar.gz diff --git a/.local/share/build/ii b/.local/share/build/ii @@ -1,3 +0,0 @@ -# IRC-it, a FIFO-based irc client - -tar=http://git.suckless.org/ii/snapshot/ii-714bd0cb6ae1eae57ca69b4dbe9fb5243c7a9456.tar.gz diff --git a/.local/share/build/iomenu b/.local/share/build/iomenu @@ -1,3 +0,0 @@ -# Input/Output interactive menu and completion engine. - -tar=http://repo.or.cz/iomenu.git/snapshot/991ea73d728682256b15165743c216e4baac1255.tar.gz diff --git a/.local/share/build/isync b/.local/share/build/isync @@ -1,10 +0,0 @@ -# Sync IMAP to Maildir - -tar=http://downloads.sourceforge.net/project/isync/isync -tar=$tar/1.2.1/isync-1.2.1.tar.gz - -build() -{ - ./configure --prefix="$PREFIX" --with-ssl="/home/josuah/.local/lib/" - make PREFIX="$PREFIX" install clean -} diff --git a/.local/share/build/less b/.local/share/build/less @@ -1,3 +0,0 @@ -# Great pager - -tar=http://ftp.gnu.org/gnu/less/less-481.tar.gz diff --git a/.local/share/build/libbearssl b/.local/share/build/libbearssl @@ -1,3 +0,0 @@ -# a smaller SSL/TLS library - -tar=https://www.bearssl.org/bearssl-0.2.tar.gz diff --git a/.local/share/build/libevent b/.local/share/build/libevent @@ -1,2 +0,0 @@ -# Event-driven callback library used by tmux -tar=https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz diff --git a/.local/share/build/libncurses b/.local/share/build/libncurses @@ -1,3 +0,0 @@ -# The new curses library - -tar=http://ftp.gnu.org/gnu/ncurses/ncurses-6.0.tar.gz diff --git a/.local/share/build/libtermkey b/.local/share/build/libtermkey @@ -1,10 +0,0 @@ -# Processing of keyboard entry from terminal-based programs - -tar=http://www.leonerd.org.uk/code/libtermkey/libtermkey-0.18.tar.gz - -build() -{ - make PREFIX="$PREFIX" install - - ln -s "$LOCAL/lib/libtermkey.so.1.12.0" "$LOCAL/lib/libtermkey.so.1" -} diff --git a/.local/share/build/libtool b/.local/share/build/libtool @@ -1,3 +0,0 @@ -# The GNU Portable Library Tool - -tar=http://ftpmirror.gnu.org/libtool/libtool-2.4.6.tar.gz diff --git a/.local/share/build/libunibilium b/.local/share/build/libunibilium @@ -1,3 +0,0 @@ -# a terminfo parsing library - -tar=http://github.com/mauke/unibilium/archive/master.tar.gz diff --git a/.local/share/build/libutf b/.local/share/build/libutf @@ -1,3 +0,0 @@ -# Plan 9 compatible C89 UTF-8 library - -tar=http://github.com/cls/libutf/archive/master.tar.gz diff --git a/.local/share/build/lpeg b/.local/share/build/lpeg @@ -1,8 +0,0 @@ -# Parsing Expression Grammars For Lua - -tar=http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-1.0.0.tar.gz - -build() -{ - make "$(uname -s | tr [[:upper:]] [[:lower:]])" -} diff --git a/.local/share/build/lua b/.local/share/build/lua @@ -1,9 +0,0 @@ -# Embeddable scripting language - -tar='http://www.lua.org/ftp/lua-5.3.2.tar.gz' - -build() -{ - make MYCFLAGS='-fPIC' INSTALL_TOP="$PREFIX" \ - "$(uname | tr [A-Z] [a-z])" install -} diff --git a/.local/share/build/m4 b/.local/share/build/m4 @@ -1,3 +0,0 @@ -# Macro language processor m4 - -tar=http://ftp.gnu.org/gnu/m4/m4-latest.tar.gz diff --git a/.local/share/build/mandoc b/.local/share/build/mandoc @@ -1,20 +0,0 @@ -# UNIX manpage compiler - -tar=http://mdocml.bsd.lv/snapshots/mdocml.tar.gz - -build() -{ - tee configure.local << EOF -PREFIX="$PREFIX" -BINDIR="$PREFIX/bin" -SBINDIR="$PREFIX/bin" -INCLUDEDIR="$PREFIX/include/mandoc" -LIBDIR="$PREFIX/lib/mandoc" -MANDIR="$PREFIX/man" -BUILD_DB=1 -EOF - - ./configure - - make install -} diff --git a/.local/share/build/mblaze b/.local/share/build/mblaze @@ -1,3 +0,0 @@ -# NMH-like mail client for maildir - -tar=https://github.com/chneukirchen/mblaze/archive/master.tar.gz diff --git a/.local/share/build/mksh b/.local/share/build/mksh @@ -1,10 +0,0 @@ -# MirBSD version of the Korn shell (ksh) - -tar=http://www.mirbsd.org/MirOS/dist/mir/mksh/mksh-R54.tgz - -build() -{ - sh ./Build.sh - - cp mksh "$PREFIX/bin/mksh" -} diff --git a/.local/share/build/mmh b/.local/share/build/mmh @@ -1,4 +0,0 @@ -# Meillo's Mail Handler, a modern nmh implementation - -tar=http://marmaro.de/prog/mmh/files/mmh-0.2.tar.gz - diff --git a/.local/share/build/msmtp b/.local/share/build/msmtp @@ -1,3 +0,0 @@ -# Relatively small MTA - -tar=http://downloads.sourceforge.net/project/msmtp/msmtp/1.6.5/msmtp-1.6.5.tar.xz- \ No newline at end of file diff --git a/.local/share/build/mujs b/.local/share/build/mujs @@ -1,3 +0,0 @@ -# Small, JavaScript interpreter - -tar=https://github.com/ccxvii/mujs/archive/master.tar.gz diff --git a/.local/share/build/nafe b/.local/share/build/nafe @@ -1,8 +0,0 @@ -# Not A Font Editor - convert psf font to a text form and back on - -tar=http://sourceforge.net/projects/nafe/files/nafe/nafe-0.1/nafe-0.1.tar.gz - -build() -{ - make && cp psf2txt txt2psf "$PREFIX/bin/" -} diff --git a/.local/share/build/pcre b/.local/share/build/pcre @@ -1,3 +0,0 @@ -# Perl-Compatible Regular Expressions - -tar=http://downloads.sourceforge.net/project/pcre/pcre/8.39/pcre-8.39.tar.gz diff --git a/.local/share/build/pkg-config b/.local/share/build/pkg-config @@ -1,3 +0,0 @@ -# Find correct flags and libraries - -tar=http://pkg-config.freedesktop.org/releases/pkg-config-0.29.1.tar.gz diff --git a/.local/share/build/reflex b/.local/share/build/reflex @@ -1,3 +0,0 @@ -# Re-Localized FLex: Fast Lexical scanner. - -tar=http://invisible-island.net/datafiles/release/reflex.tar.gz diff --git a/.local/share/build/retawq b/.local/share/build/retawq @@ -1,10 +0,0 @@ -# Small text-based web browser - -tar=http://prdownloads.sourceforge.net/retawq/retawq-0.2.6c.tar.gz - -build() -{ - ./configure - make - cp retawq "$PREFIX/bin/" -} diff --git a/.local/share/build/ssmtp b/.local/share/build/ssmtp @@ -1,3 +0,0 @@ -# simple SMTP client, MTA for sending mail - -tar=http://http.debian.net/debian/pool/main/s/ssmtp/ssmtp_2.64.orig.tar.bz2 diff --git a/.local/share/build/st b/.local/share/build/st @@ -1,3 +0,0 @@ -# Simple terminal - -tar=http://dl.suckless.org/st/st-0.6.tar.gz diff --git a/.local/share/build/tmux b/.local/share/build/tmux @@ -1,3 +0,0 @@ -# Terminal multiplexer that rocks - -tar=http://github.com/tmux/tmux/releases/download/2.3/tmux-2.3.tar.gz diff --git a/.local/share/build/valgrind b/.local/share/build/valgrind @@ -1,3 +0,0 @@ -# Dynamic analysis tools for programs - -tar=http://valgrind.org/downloads/valgrind-3.12.0.tar.bz2 diff --git a/.local/share/build/vim b/.local/share/build/vim @@ -1,16 +0,0 @@ -# The vim. - -tar=https://github.com/vim/vim/archive/master.tar.gz - -build() -{ - ./configure \ - --prefix="$PREFIX" \ - --with-features=normal \ - --enable-multibyte \ - --disable-gui \ - --without-x \ - --without-gnome - - make install -} diff --git a/.local/share/build/vis b/.local/share/build/vis @@ -1,10 +0,0 @@ -# a highly efficient vim like text editor - -tar=http://github.com/martanne/vis/archive/master.tar.gz - -build() -{ - ./configure --disable-lua --disable-lpeg - - make PREFIX="$PREFIX" install -} diff --git a/.local/share/build/yasm b/.local/share/build/yasm @@ -1,3 +0,0 @@ -# Modular Assembler Project - -tar=http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz diff --git a/.mailrc b/.mailrc @@ -126,6 +126,8 @@ define filter { move (cc "mmh@marmaro.de") ~/mail/mmh move (to "mmh@marmaro.de") ~/mail/mmh + move (subject "[gobolinux-") ~/mail/gobolinux + move (from "suckless.org") ~/mail/suckless move (to "suckless.org") ~/mail/suckless move (cc "suckless.org") ~/mail/suckless @@ -145,6 +147,8 @@ define filter { move (from "stackexchange.com") ~/mail/stackexchange + move (from "researchgate") ~/mail/researchgate + move (from "twitter.com") ~/mail/twitter move (from "bandcamp.com") ~/mail/bandcamp