2020-07-05 15:46:19 -05:00
|
|
|
# makepkg
|
|
|
|
|
2021-12-05 21:31:22 +00:00
|
|
|
> Create a package which can be used with `pacman`.
|
|
|
|
> Uses the `PKGBUILD` file in the current working directory by default.
|
2024-09-24 21:47:18 +02:00
|
|
|
> More information: <https://manned.org/makepkg.8>.
|
2020-07-05 15:46:19 -05:00
|
|
|
|
2021-12-05 21:31:22 +00:00
|
|
|
- Make a package:
|
2020-07-05 15:46:19 -05:00
|
|
|
|
|
|
|
`makepkg`
|
|
|
|
|
|
|
|
- Make a package and install its dependencies:
|
|
|
|
|
2025-03-07 13:06:30 +02:00
|
|
|
`makepkg {{[-s|--syncdeps]}}`
|
2020-07-05 15:46:19 -05:00
|
|
|
|
2021-12-05 21:31:22 +00:00
|
|
|
- Make a package, install its dependencies then install it to the system:
|
2020-07-05 15:46:19 -05:00
|
|
|
|
2025-03-07 13:06:30 +02:00
|
|
|
`makepkg {{[-s|--syncdeps]}} {{[-i|--install]}}`
|
2020-07-05 15:46:19 -05:00
|
|
|
|
2021-12-05 21:31:22 +00:00
|
|
|
- Make a package, but skip checking the source's hashes:
|
2020-07-05 15:46:19 -05:00
|
|
|
|
|
|
|
`makepkg --skipchecksums`
|
2021-09-16 22:27:17 +03:00
|
|
|
|
|
|
|
- Clean up work directories after a successful build:
|
|
|
|
|
2025-03-07 13:06:30 +02:00
|
|
|
`makepkg {{[-c|--clean]}}`
|
2021-12-26 15:58:12 +00:00
|
|
|
|
|
|
|
- Verify the hashes of the sources:
|
|
|
|
|
|
|
|
`makepkg --verifysource`
|
|
|
|
|
2021-12-26 22:16:54 +00:00
|
|
|
- Generate and save the source information into `.SRCINFO`:
|
2021-12-26 15:58:12 +00:00
|
|
|
|
2021-12-26 22:16:54 +00:00
|
|
|
`makepkg --printsrcinfo > .SRCINFO`
|