From fc0e83f05b29f57accb49544dabe856968349b3a Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 25 Sep 2007 23:02:30 -0500 Subject: Preliminary support for optdepends Add some alpm functions for getting optdepends, have makepkg include them in the PKGINFO file, and have a pacman -Qi operation display the raw string as stored by libalpm. Signed-off-by: Dan McGee --- scripts/makepkg.sh.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts/makepkg.sh.in') diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index d5b41144..747484f4 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -815,6 +815,9 @@ create_package() { for it in "${depends[@]}"; do echo "depend = $it" >>.PKGINFO done + for it in "${optdepends[@]}"; do + echo "optdepend = $it" >>.PKGINFO + done for it in "${conflicts[@]}"; do echo "conflict = $it" >>.PKGINFO done @@ -1177,7 +1180,7 @@ fi unset pkgname pkgver pkgrel pkgdesc url license groups provides md5sums force unset replaces depends conflicts backup source install build makedepends -unset options noextract +unset optdepends options noextract if [ ! -f "$BUILDSCRIPT" ]; then error "$(gettext "%s does not exist.")" "$BUILDSCRIPT" -- cgit v1.2.3-70-g09d2