#!/bin/zsh
DO=$0
main() {
	args build_dir fstab='' repository=http://repo.voidlinux.eu/current
	fresh-build-dir
	rebuild-if-refetch
	eval $(getvars)

	ifchange data/void-keys.fslist
	fsapply $build_dir <data/void-keys.fslist \
		|| die "Could not initialize XBPS trusted keys"

	local -a xbps_args
	xbps_args=(
		--rootdir=$build_dir
		--sync
		--repository=$repository
	)
	xbps-install $xbps_args || die "void init failed"
}
. ./common.zsh
# vim: fileencoding=utf8 ft=zsh noet sw=4 ts=4 sts=4