Add dotfiles sync package

This commit is contained in:
Tipragot 2023-02-21 17:39:10 +01:00
parent 3251ffc019
commit 13cf47c841
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,18 @@
pkgname='tos-dotfiles'
pkgdesc='Dotfiles syncronisation for Tipragot OS'
arch=('any')
url='https://git.tipragot.fr/tipragot/tos'
license=('MIT')
pkgver='0.1.0'
pkgrel='1'
depends=('tos-core')
source=('tos-dotfiles.hook')
cksums=('1794712062')
package() {
mkdir -p ${pkgdir}/etc/tos/dotfiles
mkdir -p ${pkgdir}/etc/pacman.d/hooks
cp ${srcdir}/tos-dotfiles.hook ${pkgdir}/etc/pacman.d/hooks/tos-dotfiles.hook
}

View file

@ -0,0 +1,12 @@
[Trigger]
Operation = Install
Operation = Upgrade
Operation = Remove
Type = Package
Target = tos-*
[Action]
Description = Update user dotfiles
Depends = tos-dotfiles
When = PostTransaction
Exec = rsync -r --chown=me:me /etc/tos/dotfiles/* /home/me/