43 lines
1.6 KiB
Bash
43 lines
1.6 KiB
Bash
# Template file for 'chroot-util-linux'
|
|
pkgname=chroot-util-linux
|
|
version=2.40.2
|
|
revision=1
|
|
bootstrap=yes
|
|
build_style=gnu-configure
|
|
configure_args="--without-ncurses --without-ncursesw --without-udev
|
|
--without-systemd --disable-libuuid --disable-libblkid --disable-libmount
|
|
--disable-mount --disable-losetup --disable-fsck --disable-partx --disable-uuidd
|
|
--disable-mountpoint --disable-fallocate --disable-unshare --disable-nls
|
|
--disable-wall --disable-chfn-chsh-password --disable-su --disable-sulogin
|
|
--disable-login --disable-runuser --disable-setpriv --disable-libsmartcols
|
|
--disable-liblastlog2 --without-readline scanf_cv_alloc_modifier=as"
|
|
makedepends="zlib-devel"
|
|
short_desc="Miscellaneous linux utilities -- for xbps-src use"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://userweb.kernel.org/~kzak/util-linux-ng"
|
|
distfiles="${KERNEL_SITE}/utils/util-linux/v${version%.*}/util-linux-${version}.tar.xz"
|
|
checksum=d78b37a66f5922d70edf3bdfb01a6b33d34ed3c3cafd6628203b2a2b67c8e8b3
|
|
conflicts="util-linux>=0"
|
|
provides="util-linux-${version}_${revision}"
|
|
repository=bootstrap
|
|
|
|
if [ -z "$CHROOT_READY" ]; then
|
|
CFLAGS+=" -I${XBPS_MASTERDIR}/usr/include"
|
|
LDFLAGS+=" -L${XBPS_MASTERDIR}/usr/lib"
|
|
fi
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = "musl" ] && [ "$XBPS_TARGET_WORDSIZE" -eq 32 ]; then
|
|
configure_args+=" --disable-year2038"
|
|
fi
|
|
|
|
post_install() {
|
|
# Remove unused stuff.
|
|
rm -rf ${DESTDIR}/bin
|
|
rm -rf ${DESTDIR}/sbin
|
|
rm -rf ${DESTDIR}/usr/sbin
|
|
rm -rf ${DESTDIR}/usr/share/doc
|
|
rm -rf ${DESTDIR}/usr/share/man
|
|
rm -rf ${DESTDIR}/usr/share/bash-completion
|
|
}
|