abinfo "Moving /var/run => /run ..."
mv -v "$PKGDIR"/{var/,}run

# FIXME: Somehow this happens only on RISC-V (SG2042),
# --with-systemdsystemunitdir wouldn't fix it either.
if [ -d "$PKGDIR"/lib ]; then
    abinfo "Moving stray /lib => /usr/lib ..."
    cp -av "$PKGDIR"/lib/* \
        "$PKGDIR"/usr/lib/
    rm -rv "$PKGDIR"/lib
fi
