# Template file for 'base-system'
pkgname=base-system
version=0.92
revision=1
build_style=meta
homepage="http://www.voidlinux.eu/"
short_desc="Void Linux base system meta package"
maintainer="Juan RP <xtraeme@gmail.com>"
license="Public domain"

replaces="base-system-runit>=0"

makedepends="gcc glibc"
depends="
 base-files>=0.77 ncurses coreutils findutils glibc-locales diffutils
 dash bash grep gzip file sed gawk less util-linux which tar man-pages
 man-db shadow e2fsprogs btrfs-progs xfsprogs f2fs-tools dosfstools kbd psmisc
 procps-ng tzdata pciutils iana-etc eudev runit-void openssh dhcpcd
 iproute2 iputils iw wpa_supplicant xbps nvi sudo wifi-firmware
 void-artwork traceroute ethtool kmod"

case "$XBPS_TARGET_MACHINE" in
	i686) depends+=" linux grub";;
	x86_64) depends+=" linux grub-x86_64-efi";;
esac

do_install() {
	# Create /sbin/init symlink to runit-init.
	vmkdir usr/sbin
	ln -s /usr/bin/runit-init ${DESTDIR}/usr/sbin/init
}
