scancode-toolkit icon indicating copy to clipboard operation
scancode-toolkit copied to clipboard

Support rust makepkg’s .SRCINFO files

Open AyanSinhaMahapatra opened this issue 7 months ago • 1 comments

See https://docs.rs/srcinfo/latest/srcinfo/ This also seems similar to PKGBUILD files too, same attribute names.

Some other path patterns and related examples:

These also have often custom licenses which needs to be handled a bit specially: https://github.com/search?q=%22pkgbase%22+%22license+%3D+custom%22&type=code

AyanSinhaMahapatra avatar May 29 '25 15:05 AyanSinhaMahapatra

Hi! I'd like to work on this issue.

My plan:

  1. Create SrcinfoHandler to parse .SRCINFO files from Arch Linux makepkg
  2. Support pkgbase and pkgname sections
  3. Extract name, version, dependencies, sources, checksums
  4. Handle architecture-specific fields (e.g., depends_x86_64)
  5. Add comprehensive tests with real AUR examples
  6. Submit PR

Is this still available?

karthiknew07 avatar Nov 12 '25 07:11 karthiknew07