18 lines
691 B
Bash
18 lines
691 B
Bash
#! /bin/env bash
|
|
|
|
## The --root points to ~/ as a userman package is expected to follow this
|
|
# pacman dir | userman dir | comment
|
|
# /etc/<pkg> | ~/.local/share/<pkg> or ~/.config/<pkg> | I have seen where /etc contains things less config like and more runtime stuff wise so there for both
|
|
# /usr/bin | ~/.local/bin
|
|
# etc
|
|
# etc
|
|
#
|
|
# The isea is to replace UNIX root conventiosn with XDG conventions
|
|
|
|
pacman --config ~/.config/userman/pacman.conf \
|
|
--root ~/ \
|
|
--dbpath ~/.local/share/userman/db \
|
|
--cachedir ~/.cache/userman/pkg \
|
|
--gpgdir ~/.config/userman/gnupg \
|
|
--hookdir ~/.config/userman/hooks \
|
|
--logfile ~/.local/share/userman/pacman.log |