diff options
-rw-r--r-- | paru/.config/pacman/makepkg.conf | 59 | ||||
-rw-r--r-- | paru/.config/paru/paru.conf | 9 | ||||
-rwxr-xr-x | paru/.local/bin/paruz | 111 |
3 files changed, 66 insertions, 113 deletions
diff --git a/paru/.config/pacman/makepkg.conf b/paru/.config/pacman/makepkg.conf new file mode 100644 index 0000000..5934372 --- /dev/null +++ b/paru/.config/pacman/makepkg.conf @@ -0,0 +1,59 @@ +#!/hint/bash +# shellcheck disable=2034 + +######################################################################### +# ARCHITECTURE, COMPILE FLAGS +######################################################################### +# +#-- Compiler and Linker Flags +CFLAGS="-march=native -O2 -pipe -fno-plt -fexceptions \ + -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \ + -fstack-clash-protection -fcf-protection" +RUSTFLAGS="-C opt-level=2 -C target-cpu=native" + +#-- Make Flags: change this for DistCC/SMP systems +MAKEFLAGS="-j$(nproc)" + +######################################################################### +# BUILD ENVIRONMENT +######################################################################### +# +# Makepkg defaults: BUILDENV=(!distcc !color !ccache check !sign) +# A negated environment option will do the opposite of the comments below. +# +#-- distcc: Use the Distributed C/C++/ObjC compiler +#-- color: Colorize output messages +#-- ccache: Use ccache to cache compilation +#-- check: Run the check() function if present in the PKGBUILD +#-- sign: Generate PGP signature file +# +BUILDENV=(!distcc color !ccache check sign) +# +#-- Specify a directory for package building. +#BUILDDIR=/tmp/makepkg + +######################################################################### +# PACKAGE OUTPUT +######################################################################### +# +# Default: put built package and cached source in build directory +# +#-- Destination: specify a fixed directory where all packages will be placed +#PKGDEST=/home/packages +#-- Source cache: specify a fixed directory where source files will be cached +#SRCDEST=/home/sources +#-- Source packages: specify a fixed directory where all src packages will be placed +#SRCPKGDEST=/home/srcpackages +#-- Log files: specify a fixed directory where all log files will be placed +#LOGDEST=/home/makepkglogs +#-- Packager: name/email of the person or organization building packages +PACKAGER="Toby Vincent <tobyv@tobyvin.dev>" +#-- Specify a key to use for package signing +GPGKEY="8FB8C9AECB8208AB982C946AA0876F29023F43AF" + +######################################################################### +# COMPRESSION DEFAULTS +######################################################################### +# +COMPRESSXZ=(xz -c -z --threads=0 -) +# vim: set ft=sh ts=2 sw=2 et: diff --git a/paru/.config/paru/paru.conf b/paru/.config/paru/paru.conf index b821ae7..2476655 100644 --- a/paru/.config/paru/paru.conf +++ b/paru/.config/paru/paru.conf @@ -1,6 +1,7 @@ [options] PgpFetch Devel +CleanAfter Provides DevelSuffixes = -git -cvs -svn -bzr -darcs -always -hg -fossil BottomUp @@ -8,6 +9,10 @@ NewsOnUpgrade CombinedUpgrade SudoLoop SaveChanges +SortBy = popularity +LocalRepo = aur +Chroot -[bin] -GpgFlags = --keyserver=hkp://keyserver.ubuntu.com +[tobyvin] +Path = /home/tobyv/pkg +GenerateSrcinfo diff --git a/paru/.local/bin/paruz b/paru/.local/bin/paruz deleted file mode 100755 index 5c91d62..0000000 --- a/paru/.local/bin/paruz +++ /dev/null @@ -1,111 +0,0 @@ -#!/usr/bin/env bash - -shopt -s lastpipe - - -export SHELL=bash - -if [[ -z $PARUZ ]]; then - - if command -v paru >/dev/null 2>&1; then - - PARUZ=paru - elif ! command -v pacman >/dev/null 2>&1; then - echo "Neither paru nor pacman found. Is this Arch?" >&2 - exit 1 - elif [[ $EUID -eq 0 ]] || [[ -f /usr/bin/msys-2.0.dll ]]; then - PARUZ=pacman - else - PARUZ='sudo pacman' - fi -fi - -__paruz_help() { - PROG=$(basename "$0") - cat >&2 <<EOF -Usage: $PROG [OPTS] - -A fzf terminal UI for paru or pacman. - -sudo is invoked automatically, if needed. - -Multiple packages can be selected. - -The package manager can be changed with the environment variables: PARUZ - -Keybindings: - TAB Select - Shift+TAB Deselect - -OPTS: - -h, --help Print this message - - All other options are passed to the package manager. - Default: -S (install) - -Examples: - paruz -S --nocleanafter - - paruz -R - PARUZ=yay paruz -EOF - - exit 1 -} - -__fzf_preview() { - $PARUZ --color=always -Si "$1" | grep --color=never -v '^ ' -} - -__paruz_list() { - $PARUZ --color=always -Sl | sed -e 's: :/:; s/ unknown-version//' -} - -# main - - -while [[ -n $1 ]]; do - case $1 in - -h | --help) - __paruz_help - ;; - __fzf_preview) - shift - __fzf_preview "$@" - ;; - *) - - break - ;; - esac - shift -done - -ARGS=("$@") - -if [[ ${#ARGS[@]} -eq 0 ]]; then - ARGS=("-S") -fi - -declare -a PICKS -__paruz_list | - fzf \ - --multi \ - --ansi \ - - --preview="'${BASH_SOURCE[0]}' __fzf_preview {1}" | - readarray -t PICKS - -if [[ ${#PICKS[@]} -eq 0 ]]; then - exit 0 - -fi - - -declare -a PKGS -for PICK in "${PICKS[@]}"; do - PKGS+=("${PICK%% *}") -done - -exec $PARUZ "${ARGS[@]}" "${PKGS[@]}" - |