# Template file for 'chroot-coreutils'
pkgname=chroot-coreutils
version=8.17
revision=3
wrksrc=coreutils-${version}
build_style=gnu-configure
configure_args="--without-gmp --disable-libcap --disable-xattr
--disable-acl --disable-rpath --disable-nls
--enable-no-install-program=stdbuf,arch,su
--enable-install-program=hostname gl_cv_func_realpath_works=yes"
short_desc="The GNU core utilities - for xbps-src use"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.gnu.org/software/coreutils"
license="GPL-3"
distfiles="http://ftp.gnu.org/gnu/coreutils/coreutils-$version.tar.xz"
checksum=4e075a0d238072a5bd079046e1f024dc5e0d9133d43a39c73d0b86b0d1e2c5e5

bootstrap=yes

pre_configure() {
	sed -i 's/^\(SUBDIRS =\).*/\1 lib src/g' Makefile.in
}

chroot-coreutils_package() {
	provides="coreutils-${version}"
	conflicts="coreutils>=0"
	pkg_install() {
		vmove usr
	}
}
