From b3e041ecaf96cb2294692946d9310ffd20aa4a11 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Thu, 9 Jul 2026 11:24:30 +0200 Subject: CLAUDE.md: require cat over cp when staging files into $PKG Co-Authored-By: Claude Opus 4.8 --- CLAUDE.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CLAUDE.md') 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 -- cgit v1.2.3