2008-10-22 16:11:22 +02:00
|
|
|
# Template file for 'coreutils'
|
|
|
|
pkgname=coreutils
|
2012-10-24 10:49:46 +02:00
|
|
|
version=8.20
|
2013-02-08 15:30:01 +01:00
|
|
|
revision=4
|
2008-10-22 16:11:22 +02:00
|
|
|
short_desc="The GNU core utilities"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-09-19 16:57:33 +02:00
|
|
|
homepage="http://www.gnu.org/software/coreutils"
|
|
|
|
license="GPL-3"
|
2013-01-13 20:59:00 +01:00
|
|
|
distfiles="http://ftp.gnu.org/gnu/coreutils/${pkgname}-${version}.tar.xz"
|
2012-10-24 10:49:46 +02:00
|
|
|
checksum=dbcb798764827a0f74be738662ecb516705cf520330cd3d7b2640fdffa499eb2
|
2013-02-08 15:30:01 +01:00
|
|
|
|
|
|
|
subpackages="coreutils-doc"
|
|
|
|
conflicts="chroot-coreutils>=0"
|
|
|
|
makedepends="perl gmp-devel acl-devel libcap-devel"
|
|
|
|
depends="coreutils-doc-${version}_${revision}"
|
|
|
|
|
|
|
|
if [ -n "$XBPS_CROSS_TRIPLET" ]; then
|
|
|
|
unset subpackages
|
|
|
|
makedepends="perl"
|
|
|
|
crossmakedepends="gmp-devel acl-devel libcap-devel"
|
|
|
|
fi
|
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
if [ -n "$XBPS_CROSS_TRIPLET" ]; then
|
|
|
|
_confargs="fu_cv_sys_stat_statfs2_bsize=yes \
|
|
|
|
gl_cv_func_working_mkstemp=yes
|
|
|
|
gl_cv_func_working_acl_get_file=yes"
|
|
|
|
fi
|
|
|
|
./configure ${CONFIGURE_SHARED_ARGS} \
|
|
|
|
--enable-install-program=hostname \
|
|
|
|
--disable-rpath ${_confargs}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
if [ -n "$XBPS_CROSS_TRIPLET" ]; then
|
|
|
|
cp Makefile Makefile.orig
|
|
|
|
sed '/src_make_prime_list/d' Makefile.orig > Makefile
|
|
|
|
depbase=`echo src/make-prime-list.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
|
|
|
|
gcc -std=gnu99 -I. -I./lib -Ilib -I./lib -Isrc -I./src \
|
|
|
|
-fdiagnostics-show-option -funit-at-a-time -g -O2 -MT \
|
|
|
|
src/make-prime-list.o -MD -MP -MF $depbase.Tpo -c -o src/make-prime-list.o \
|
|
|
|
src/make-prime-list.c &&
|
|
|
|
mv -f $depbase.Tpo $depbase.Po
|
|
|
|
gcc -std=gnu99 -fdiagnostics-show-option -funit-at-a-time -g -O2 \
|
|
|
|
-Wl,--as-needed -o src/make-prime-list src/make-prime-list.o
|
|
|
|
cp Makefile Makefile.bak
|
|
|
|
sed -e '/hostname.1/d' Makefile.bak > Makefile
|
|
|
|
fi
|
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
make DESTDIR=${DESTDIR} install
|
|
|
|
|
|
|
|
if [ -n "$XBPS_CROSS_TRIPLET" ]; then
|
|
|
|
rm -rf ${DESTDIR}/usr/share/info
|
|
|
|
fi
|
|
|
|
}
|