aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-07-09 11:24:30 +0200
committerDanilo M. <danix@danix.xyz>2026-07-09 11:24:30 +0200
commitb3e041ecaf96cb2294692946d9310ffd20aa4a11 (patch)
tree9ab21cc5596a61c4c96db3de8b43b3ed0b73cff4
parent682b02a555291f6f9bfc74d95410464679c33388 (diff)
downloadmy-slackbuilds-b3e041ecaf96cb2294692946d9310ffd20aa4a11.tar.gz
my-slackbuilds-b3e041ecaf96cb2294692946d9310ffd20aa4a11.zip
CLAUDE.md: require cat over cp when staging files into $PKG
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
-rw-r--r--CLAUDE.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/CLAUDE.md b/CLAUDE.md
index 1f4d8ed..b5b9470 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -44,6 +44,11 @@ repo as a subtree, and a top-level `docs/` folder leaks into that subtree.
- Strip binaries and libraries unless upstream explicitly discourages it
- Install docs to `/usr/doc/$PRGNAM-$VERSION/`
- Always include `find -L` + `chown`/`chmod` cleanup block before packaging
+- Copy repo files into `$PKG` with `cat src > dest`, never `cp`. `cat` writes
+ through a fresh destination so the build's umask/root ownership sets the
+ perms; `cp` bleeds the git working-tree mode/ownership into the package.
+ Applies to `slack-desc`, `doinst.sh`, and any file staged from `$CWD`
+ (SlackBuild, README, `.nvchecker`) into `$PKG`.
- Use `makepkg -l y -c n` to create the final package
### `.info` file