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