void-packages/srcpkgs/chroot-util-linux/template

37 lines
1.3 KiB
Bash

# Template file for 'chroot-util-linux'
pkgname=chroot-util-linux
version=2.29.2
revision=3
wrksrc="${pkgname/chroot-/}-${version}"
bootstrap=yes
conflicts="util-linux>=0"
provides="util-linux-${version}_${revision}"
makedepends="zlib-devel"
build_style=gnu-configure
configure_args="--without-ncurses --without-udev --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
scanf_cv_alloc_modifier=as"
short_desc="Miscellaneous linux utilities -- for xbps-src use"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://userweb.kernel.org/~kzak/util-linux-ng"
license="GPL-2"
distfiles="${KERNEL_SITE}/utils/util-linux/v${version%.*}/util-linux-${version}.tar.xz"
checksum=accea4d678209f97f634f40a93b7e9fcad5915d1f4749f6c47bee6bf110fe8e3
if [ -z "$CHROOT_READY" ]; then
CFLAGS+=" -I${XBPS_MASTERDIR}/usr/include"
LDFLAGS+=" -L${XBPS_MASTERDIR}/usr/lib"
fi
post_install() {
# Remove unused stuff.
rm -rf ${DESTDIR}/bin
rm -rf ${DESTDIR}/sbin
rm -rf ${DESTDIR}/usr/sbin
rm -rf ${DESTDIR}/usr/share/man
}