#!/bin/sh
if ! which column >/dev/null 2>&1; then echo need column command >&2; exit 1; fi
-grep pkgver= */APKBUILD | sort | sed -e 's_/APKBUILD:pkgver=_ _' | column -tNname,version -R1
+awk 'match($0, /pkgver="?([^" ;]*)/, m) {gsub("/APKBUILD$", "", FILENAME); print FILENAME, m[1]}' */APKBUILD | sort | column -tNname,version -R1