From 849cea271cdfcf46522daacb11ca9b57df03d402 Mon Sep 17 00:00:00 2001 From: langfingaz Date: Thu, 13 May 2021 19:23:32 +0200 Subject: [PATCH] update README --- README.md | 4 ++++ pkg/de-p1st-locale/PKGBUILD | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8255e05..aab8f61 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,10 @@ Example: * [pkg/de-p1st-pacman/pacman.conf.holoscript](pkg/de-p1st-pacman/pacman.conf.holoscript) * [pkg/de-p1st-pacman/PKGBUILD](pkg/de-p1st-pacman/PKGBUILD) +### Changing existing files that are not owned by any package + +See [pkg/de-p1st-locale/PKGBUILD](pkg/de-p1st-locale/PKGBUILD) for an example. + ### Home skeleton Pacman should **never** change files in `$HOME`. To still be able to include diff --git a/pkg/de-p1st-locale/PKGBUILD b/pkg/de-p1st-locale/PKGBUILD index f5a765a..fca799a 100644 --- a/pkg/de-p1st-locale/PKGBUILD +++ b/pkg/de-p1st-locale/PKGBUILD @@ -18,13 +18,11 @@ sha256sums=('SKIP') package() { cd "${_reponame}/pkg/${pkgname}" - # Note: The following three files are overwritten with "holo apply --force ..." - # See ".install" script - # Copy locale.conf to /etc/locale.conf so that one package owns that file # in this PKGBUILD, add /etc/locale.conf to backup array so that pacman does not fail # if this file already exists on local filesystem (a ".pacnew" file will be created in that case) # and then use holo with "--force" to overwrite the local version with the desired one + # (see .install script) install -Dm0644 locale.conf "$pkgdir"/etc/locale.conf install -Dm0644 locale.conf "$pkgdir"/usr/share/holo/files/"$pkgname"/etc/locale.conf #