# Template file for 'coreutils'
pkgname=coreutils
version=7.1
distfiles="http://ftp.gnu.org/gnu/coreutils/$pkgname-$version.tar.gz"
build_style=gnu_configure
configure_args="--bindir=$XBPS_DESTDIR/$pkgname-$version/bin
 --disable-acl --enable-install-program=hostname --without-gmp
 ac_cv_header_selinux_flask_h=no ac_cv_header_selinux_selinux_h=no
 ac_cv_header_selinux_context_h=no ac_cv_search_setfilecon=no"
configure_env="PERL=/usr/bin/perl"
short_desc="The GNU core utilities"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=813cb19fa19a885f342664109c7c5810f0081b624ff317bba8d1b6ccd83c2a05
long_desc="
 The GNU Core Utilities are the basic file, shell and text manipulation
 utilities of the GNU operating system. These are the core utilities
 which are expected to exist on every operating system."

base_chroot=yes

Add_dependency run glibc

post_install()
{
	# Most programs expect /usr/bin/env.
	install -d ${DESTDIR}/usr/bin
	cd ${DESTDIR}/usr/bin && ln -s ../../bin/env .
}
