2008-10-22 16:11:22 +02:00
|
|
|
# Template file for 'coreutils'
|
|
|
|
pkgname=coreutils
|
2013-02-18 14:58:51 +01:00
|
|
|
version=8.21
|
2013-02-20 11:44:39 +01:00
|
|
|
revision=3
|
2013-04-11 10:33:01 +02:00
|
|
|
hostmakedepends="perl"
|
|
|
|
makedepends="gmp-devel acl-devel libcap-devel"
|
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"
|
2013-02-18 14:58:51 +01:00
|
|
|
checksum=adaa44bdab3fa5eb352e80d8a31fdbf957b78653d0c2cd30d63e161444288e18
|
2013-02-08 15:30:01 +01:00
|
|
|
|
|
|
|
do_configure() {
|
2013-04-09 01:49:27 +02:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2013-05-26 10:41:55 +02:00
|
|
|
configure_args+=" fu_cv_sys_stat_statfs2_bsize=yes
|
2013-02-08 15:30:01 +01:00
|
|
|
gl_cv_func_working_mkstemp=yes
|
2013-05-26 10:41:55 +02:00
|
|
|
gl_cv_func_working_acl_get_file=yes "
|
2013-02-08 15:30:01 +01:00
|
|
|
fi
|
2013-02-20 11:44:39 +01:00
|
|
|
#
|
|
|
|
# Do not install kill: provided by util-linux.
|
|
|
|
# Do not install uptime: provided by procps-ng.
|
|
|
|
#
|
2013-05-26 10:41:55 +02:00
|
|
|
./configure ${configure_args} \
|
2013-02-08 15:30:01 +01:00
|
|
|
--enable-install-program=hostname \
|
2013-02-20 11:44:39 +01:00
|
|
|
--enable-no-install-program=kill,uptime \
|
2013-05-26 10:41:55 +02:00
|
|
|
--disable-rpath
|
2013-02-08 15:30:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
2013-04-09 01:49:27 +02:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2013-02-08 15:30:01 +01:00
|
|
|
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$||'`;\
|
2013-05-26 10:41:55 +02:00
|
|
|
cc -std=gnu99 -I. -I./lib -Ilib -I./lib -Isrc -I./src \
|
2013-02-08 15:30:01 +01:00
|
|
|
-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
|
2013-05-26 10:41:55 +02:00
|
|
|
cc -std=gnu99 -fdiagnostics-show-option -funit-at-a-time -g -O2 \
|
2013-02-08 15:30:01 +01:00
|
|
|
-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
|
|
|
|
|
2013-04-09 01:49:27 +02:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2013-02-08 15:30:01 +01:00
|
|
|
rm -rf ${DESTDIR}/usr/share/info
|
|
|
|
fi
|
|
|
|
}
|
2013-04-11 10:33:01 +02:00
|
|
|
|
|
|
|
coreutils_package() {
|
|
|
|
conflicts="chroot-coreutils>=0 procps-ng<3.3.5_3"
|
|
|
|
depends="coreutils-doc-${version}_${revision}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
coreutils-doc_package() {
|
|
|
|
noarch=yes
|
|
|
|
short_desc+=" -- documentation files"
|
|
|
|
replaces="coreutils<8.20_4"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/share/info
|
|
|
|
vmove usr/share/man
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fi
|