2012-02-28 09:50:10 +00:00
|
|
|
# Template file for 'chroot-findutils'
|
|
|
|
pkgname=chroot-findutils
|
|
|
|
version=4.4.2
|
2014-01-08 16:21:16 +00:00
|
|
|
revision=3
|
2012-02-28 09:50:10 +00:00
|
|
|
wrksrc="findutils-${version}"
|
2014-01-08 08:53:05 +00:00
|
|
|
bootstrap=yes
|
|
|
|
conflicts="findutils>=0"
|
|
|
|
provides="findutils-${version}_${revision}"
|
2012-02-28 09:50:10 +00:00
|
|
|
build_style=gnu-configure
|
2013-02-06 08:02:48 +00:00
|
|
|
configure_args="--disable-nls gl_cv_func_wcwidth_works=yes
|
2014-01-08 16:21:16 +00:00
|
|
|
gl_cv_header_working_fcntl_h=yes am_cv_func_working_getline=yes
|
|
|
|
gl_cv_func_gettimeofday_clobber=no ac_cv_func_working_mktime=yes"
|
2012-02-28 09:50:10 +00:00
|
|
|
short_desc="The GNU Find Utilities -- for xbps-src use"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="GPL-3"
|
2013-02-06 08:02:48 +00:00
|
|
|
homepage="http://www.gnu.org/software/findutils"
|
|
|
|
distfiles="http://ftp.gnu.org/gnu/findutils/findutils-$version.tar.gz"
|
2012-02-28 09:50:10 +00:00
|
|
|
checksum=434f32d171cbc0a5e72cfc5372c6fc4cb0e681f8dce566a0de5b6fccd702b62a
|
|
|
|
|
2014-01-08 08:53:05 +00:00
|
|
|
pre_configure() {
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
*-musl)
|
|
|
|
# Special case for musl libc; "fix" issues with gnulib.
|
2014-01-08 16:21:16 +00:00
|
|
|
: > gnulib/lib/freadahead.c
|
|
|
|
: > gnulib/lib/fseeko.c
|
|
|
|
echo "void close_stdin(void) {}" > gnulib/lib/closein.c
|
2014-01-08 08:53:05 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
2012-02-28 09:50:10 +00:00
|
|
|
|
|
|
|
post_install() {
|
|
|
|
for f in locate oldfind updatedb; do
|
|
|
|
rm -f ${DESTDIR}/usr/bin/${f}
|
|
|
|
done
|
|
|
|
rm -rf ${DESTDIR}/usr/share ${DESTDIR}/usr/libexec
|
2014-01-08 16:21:16 +00:00
|
|
|
if [ -f ${DESTDIR}/usr/lib/charset.alias ]; then
|
|
|
|
rm -f ${DESTDIR}/usr/lib/charset.alias
|
|
|
|
fi
|
2012-02-28 09:50:10 +00:00
|
|
|
}
|