getsolus / packages

Solus Package Monorepo & Issue Tracker
51 stars 68 forks source link

chore: Use cargo macros across the repo #3111

Open joebonrichie opened 1 week ago

joebonrichie commented 1 week ago

ypkg now provides standardized cargo macros for rust packages:

%cargo_fetch, %cargo_build, %cargo_install, %cargo_test

Note that %cargo_install can take an additional argument if the binary name does not match the package name e.g. %cargo_install mycustombinary

See d44c520077f1b1b0e9194e014e2b555678e8263e as an example

For an new packagers wishing to learn the Solus packaging system, this would be a good opportunity to do so. See the full list yourself by installing the ripgrep package and running the following ripgrep (rg) command from the root of this repository:

rg --files-with-matches "cargo build" -g '*package.yml' | sort

The list

androidnisse commented 3 days ago

The macro for install can be improved, see https://github.com/getsolus/packages/issues/3230