void-packages/srcpkgs/findutils/template
jbu c2bfc6b7d5 bandwith / download times + $GNU_SITE cleanup
+ To reduce bandwidth and download times, packages use bz2/lzma/xz where possible.
+ Also use ${GNU_SITE} and ${KERNEL_SITE} where appropriate.
+ Clean up xlint warnings.
+ inetutils: update to 1.9.3 and split into subpkgs
2015-05-22 11:47:56 +02:00

38 lines
1.1 KiB
Bash

# Template file for 'findutils'
pkgname=findutils
version=4.4.2
revision=13
bootstrap=yes
build_pie=yes
build_style=gnu-configure
configure_args="--localstatedir=/var/lib/locate gl_cv_func_wcwidth_works=yes
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"
short_desc="The GNU Find Utilities"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-3"
homepage="http://www.gnu.org/software/findutils"
distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz"
checksum=434f32d171cbc0a5e72cfc5372c6fc4cb0e681f8dce566a0de5b6fccd702b62a
make_dirs="/var/lib/locate 0755 root root"
conf_files="/etc/updatedb.conf"
conflicts="chroot-findutils>=0"
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
*-musl)
# Special case for musl libc; "fix" issues with gnulib.
: > gnulib/lib/freadahead.c
: > gnulib/lib/fseeko.c
echo "void close_stdin(void) {}" > gnulib/lib/closein.c
;;
esac
}
post_install() {
# Install the cron daily job.
vinstall ${FILESDIR}/updatedb.cron-daily 744 etc/cron.daily updatedb
# Install the updatedb conf file.
vinstall ${FILESDIR}/updatedb.conf 640 etc
}