update README

This commit is contained in:
Daniel Langbein 2021-05-13 19:23:32 +02:00
parent baf177e88f
commit 849cea271c
2 changed files with 5 additions and 3 deletions

View File

@ -46,6 +46,10 @@ Example:
* [pkg/de-p1st-pacman/pacman.conf.holoscript](pkg/de-p1st-pacman/pacman.conf.holoscript) * [pkg/de-p1st-pacman/pacman.conf.holoscript](pkg/de-p1st-pacman/pacman.conf.holoscript)
* [pkg/de-p1st-pacman/PKGBUILD](pkg/de-p1st-pacman/PKGBUILD) * [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 ### Home skeleton
Pacman should **never** change files in `$HOME`. To still be able to include Pacman should **never** change files in `$HOME`. To still be able to include

View File

@ -18,13 +18,11 @@ sha256sums=('SKIP')
package() { package() {
cd "${_reponame}/pkg/${pkgname}" 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 # 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 # 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) # 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 # 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"/etc/locale.conf
install -Dm0644 locale.conf "$pkgdir"/usr/share/holo/files/"$pkgname"/etc/locale.conf install -Dm0644 locale.conf "$pkgdir"/usr/share/holo/files/"$pkgname"/etc/locale.conf
# #