auto install packages

This commit is contained in:
lelgenio 2020-11-28 16:12:35 -03:00
parent b34d892604
commit 748d416775
4 changed files with 39 additions and 0 deletions

View File

@ -13,6 +13,7 @@
## Install:
Most files need to be pre-prossesed with dotdrop.
By default mapped to Colemak, edit config.yaml to remap.
If you're on Arch this will install all packages automatically.
```bash
pip install --user dotdrop
dotdrop -c config.yaml install -p dark

View File

@ -270,6 +270,12 @@ dotfiles: # {{{
kakoune:
src: kak
dst: ~/.config/kak
packages:
src: metaPKGBUILD
dst: ~/.local/share/metapkg/PKGBUILD
actions:
- install_meta
# }}}
actions: #{{{
notify: notify-send "Updating dotfiles" "{{@@ _dotfile_abs_dst.lstrip(env['HOME']) @@}}"
@ -309,5 +315,7 @@ actions: #{{{
pam_gpg: _pam-gpg-strap
make_theme:
~/.local/bin/_make_theme
install_meta:
~/.local/bin/install_meta
# }}}
# vim: fdm=marker

30
dotfiles/scripts/install_meta Executable file
View File

@ -0,0 +1,30 @@
#!/bin/sh
set -e
command -v makepkg &> /dev/null ||
exit 1
install_pikaur(){
PIKDIR="$HOME/.cache/pikaur/build/pikaur"
test -d "$PIKDIR" ||
git clone \
https://aur.archlinux.org/pikaur.git \
"$PIKDIR"
cd "$PIKDIR"
makepkg -si --noconfirm --needed
}
command -v pikaur &> /dev/null ||
install_pikaur
cd "$HOME/.local/share/metapkg/"
pikaur \
--pkgbuild \
--install \
--rebuild \
--noconfirm \
--keepbuilddep