diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-11-03 13:37:08 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-11-03 13:37:08 -0300 |
commit | 9983b0c757834d61b9099a5953dec9d92330ac76 (patch) | |
tree | 25da78388d742dd71b581df54d3fef33f34b61b4 /toru-info | |
parent | 38550a26dc66a8e5dd462da65acaf56119964536 (diff) | |
parent | 958043bd456f8e60f54a2b2e3a601439394558ca (diff) |
Merge branch 'master' into smart-cleanup
Conflicts:
update-cleansystem
Diffstat (limited to 'toru-info')
-rwxr-xr-x | toru-info | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/toru-info b/toru-info new file mode 100755 index 0000000..523f682 --- /dev/null +++ b/toru-info @@ -0,0 +1,28 @@ +#!/bin/bash +# Prints info about a given pkgname +source /etc/libretools.conf + +for _pkg in $@; do + _pkgbuild="$(toru-where $_pkg)" + + if [ -f "$_pkgbuild/PKGBUILD" ]; then + source "$_pkgbuild/PKGBUILD" 2>/dev/null || { + warning "Errors on %s" $_pkg + continue + } + + deps="${depends[@]} ${makedepends[@]} ${checkdepends[@]}" + repo="$(basename $(dirname "$_pkgbuild"))" + + unset build package depends makedepends checkdepends optdepends source md5sums + + msg "%s/%s %s-%s" $repo $_pkg $pkgver $pkgrel + msg2 "$pkgdesc" + msg2 "$url" + msg2 "Depends: ${deps}" + else + warning "%s doesn't exist" $_pkg + fi + + unset pkgname pkgver pkgrel pkgdesc url +done |