[pacman-dev] [PATCH 1/2] makepkg: write makedepends into .PKGINFO
Allan McRae
allan at archlinux.org
Sat May 19 07:01:31 EDT 2012
Currently there is no way to access the makedepends for a package
apart from parsing its PKGBUILD. Put these into the .PKGINFO file
with the idea of making them available in the repo dbs so that
automated build tools can readily determine build order.
Signed-off-by: Allan McRae <allan at archlinux.org>
---
scripts/makepkg.sh.in | 2 ++
1 file changed, 2 insertions(+)
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 28d9073..8d018c0 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1276,6 +1276,8 @@ write_pkginfo() {
fi
done
+ [[ $makedepends ]] && printf "makedepend = %s\n" "${makedepends[@]}"
+
for it in "${packaging_options[@]}"; do
check_option "$it" "y"
case $? in
--
1.7.10.2
More information about the pacman-dev
mailing list