Files
Arch-R/scripts
Douglas Teles 41d376a029 gen-pacman-repo: fix package layout for pacman 7 repo-add
Three bugs caught while smoke-testing against an existing
build.ArchR-RK3326.aarch64/install_pkg tree:

1. BUILD_DIR auto-detection glob did not include the trailing arch
   suffix, so build.ArchR-RK3326.aarch64 never matched. Now matches
   build.*-RK3326*aarch64*.

2. Version sanitization used `echo | tr -c '[charset]' '.'` which
   turns the trailing newline into a stray '.', producing versions
   like "1.0.8." that pacman refuses. Swapped to printf.

3. Package layout was wrong for pacman 7 repo-add:
   - .PKGINFO must be the FIRST entry in the tar (pacman streams it).
   - No "./" prefix on file names (matches makepkg output).
   - .PKGINFO needs `pkgbase` and `xdata = pkgtype=pkg` lines, not
     just `pkgname`.
   Rewrote the packing block to assemble an explicit file list with
   .PKGINFO first, then tar -T.

Also: install_pkg name extraction is more robust now — sed strips
both 40-char git hashes and semver suffixes to recover the real
package name, and the package.mk lookup uses find rather than
literal globbing so packages nested at any depth are found.

Smoke test confirms repo-add accepts the resulting archive, signs
archr.db with the configured signer, and emits the expected
symlinks archr.db -> archr.db.tar.gz.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-23 17:43:08 -03:00
..
2024-07-06 13:09:20 +02:00
2020-02-10 08:53:39 +01:00
2026-03-20 11:36:42 -03:00
2026-03-18 17:32:41 -03:00
2026-03-23 14:19:12 -03:00
2024-07-06 13:09:20 +02:00
2026-03-18 17:32:41 -03:00
2025-02-03 07:04:59 -05:00
2025-02-03 07:04:59 -05:00
2025-07-13 19:02:39 +01:00
2025-02-03 07:04:59 -05:00
2024-07-06 13:09:20 +02:00
2019-07-09 00:05:25 +01:00
2026-03-18 17:32:41 -03:00
2025-07-13 19:02:39 +01:00
2024-07-06 13:09:20 +02:00
2025-05-11 18:04:57 -04:00
2024-07-06 13:09:20 +02:00
2025-02-03 07:04:59 -05:00
2026-03-18 17:32:41 -03:00
2026-03-18 17:32:41 -03:00