ref: 3fcbd9c5f99121e11e85a3645f2c13db1fad466f
dir: /sys/src/cmd/pkg/list/
#!/bin/rc
if(~ $#pkgpath 0)
pkgpath=http://9front.org/pkg/$cputype
if(~ $pkgpath ftp* http*)
hget $pkgpath | htmlfmt | grep '\.tbz' | sed -e 's/\.tbz.*$//g' | awk '{print $NF}'
if not
ls -p $pkgpath/*.tbz | sed 's/\.tbz.*$//g'