void-packages/srcpkgs/coreutils/template

69 lines
1.9 KiB
Plaintext
Raw Normal View History

# Template file for 'coreutils'
pkgname=coreutils
2013-12-15 08:43:09 +01:00
version=8.22
revision=1
hostmakedepends="perl"
makedepends="gmp-devel acl-devel libcap-devel"
depends="coreutils-doc-${version}_${revision}"
conflicts="chroot-coreutils>=0 procps-ng<3.3.5_3"
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"
distfiles="http://ftp.gnu.org/gnu/coreutils/${pkgname}-${version}.tar.xz"
2013-12-15 08:43:09 +01:00
checksum=5b3e94998152c017e6c75d56b9b994188eb71bf46d4038a642cb9141f6ff1212
do_configure() {
if [ "$CROSS_BUILD" ]; then
configure_args+=" fu_cv_sys_stat_statfs2_bsize=yes
gl_cv_func_working_mkstemp=yes
gl_cv_func_working_acl_get_file=yes "
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.
#
./configure ${configure_args} \
--enable-install-program=hostname \
2013-02-20 11:44:39 +01:00
--enable-no-install-program=kill,uptime \
--disable-rpath
}
do_build() {
if [ "$CROSS_BUILD" ]; 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$||'`;\
cc -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
cc -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 [ "$CROSS_BUILD" ]; then
rm -rf ${DESTDIR}/usr/share/info
fi
}
if [ -z "$CROSS_BUILD" ]; then
coreutils-doc_package() {
noarch=yes
2013-12-15 08:43:09 +01:00
short_desc+=" - documentation files"
replaces="coreutils<8.20_4"
pkg_install() {
vmove usr/share/info
vmove usr/share/man
}
}
fi