diff options
| author | Danilo M. <danix@danix.xyz> | 2026-07-09 11:24:30 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-07-09 11:24:30 +0200 |
| commit | b3e041ecaf96cb2294692946d9310ffd20aa4a11 (patch) | |
| tree | 9ab21cc5596a61c4c96db3de8b43b3ed0b73cff4 /CLAUDE.md | |
| parent | 682b02a555291f6f9bfc74d95410464679c33388 (diff) | |
| download | my-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>
Diffstat (limited to 'CLAUDE.md')
| -rw-r--r-- | CLAUDE.md | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |
