diff --git a/packages/tos-dotfiles/PKGBUILD b/packages/tos-dotfiles/PKGBUILD new file mode 100644 index 0000000..2435666 --- /dev/null +++ b/packages/tos-dotfiles/PKGBUILD @@ -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 +} \ No newline at end of file diff --git a/packages/tos-dotfiles/tos-dotfiles.hook b/packages/tos-dotfiles/tos-dotfiles.hook new file mode 100644 index 0000000..5226d88 --- /dev/null +++ b/packages/tos-dotfiles/tos-dotfiles.hook @@ -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/ \ No newline at end of file