summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-09-26 06:02:30 +0200
committerDan McGee <dan@archlinux.org>2007-09-26 06:02:30 +0200
commitfc0e83f05b29f57accb49544dabe856968349b3a (patch)
tree8a417de5ee3e2a522d6c13b1198a62b4c7a44155 /scripts
parent012f7939784358b02726c169543aa99436439335 (diff)
downloadpacman-fc0e83f05b29f57accb49544dabe856968349b3a.tar.gz
pacman-fc0e83f05b29f57accb49544dabe856968349b3a.tar.xz
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 <dan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/makepkg.sh.in5
1 files changed, 4 insertions, 1 deletions
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"