#!/bin/sh # xrecent [REPOURL|XBPS_ARCH] - list packages in repo ordered by build date repo=http://repo.voidlinux.eu/current/ case "$1" in */*) repo=$1;; *-musl) repo=http://muslrepo.voidlinux.eu/current/ export "XBPS_ARCH=$1";; ?*) repo=http://repo.voidlinux.eu/current/ export "XBPS_ARCH=$1";; esac xbps-query -M -i -R --repository=$repo -p build-date -s '' | sed 's/: / /' | sort -t ' ' -k 2 | column -s ' ' -t