diff options
author | Dan McGee <dan@archlinux.org> | 2007-09-25 23:02:30 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-09-25 23:02:30 -0500 |
commit | fc0e83f05b29f57accb49544dabe856968349b3a (patch) | |
tree | 8a417de5ee3e2a522d6c13b1198a62b4c7a44155 /scripts | |
parent | 012f7939784358b02726c169543aa99436439335 (diff) |
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.in | 5 |
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" |