2012-03-09 02:01:17 +01:00
|
|
|
# Template file for 'chroot-util-linux'
|
|
|
|
pkgname=chroot-util-linux
|
2014-02-12 16:45:16 +01:00
|
|
|
version=2.24.1
|
2014-03-17 11:42:23 +01:00
|
|
|
revision=2
|
2014-01-07 21:43:43 +01:00
|
|
|
wrksrc="${pkgname/chroot-/}-${version}"
|
|
|
|
bootstrap=yes
|
|
|
|
conflicts="util-linux>=0"
|
|
|
|
provides="util-linux-${version}_${revision}"
|
2014-01-07 21:47:34 +01:00
|
|
|
makedepends="zlib-devel"
|
2012-03-09 02:01:17 +01:00
|
|
|
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
|
2013-02-05 14:54:28 +01:00
|
|
|
--disable-fallocate --disable-unshare --disable-nls --disable-wall
|
|
|
|
scanf_cv_alloc_modifier=as"
|
2012-03-09 02:01:17 +01:00
|
|
|
short_desc="Miscellaneous linux utilities -- for xbps-src use"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
homepage="http://userweb.kernel.org/~kzak/util-linux-ng"
|
|
|
|
license="GPL-2"
|
2014-02-12 16:45:16 +01:00
|
|
|
distfiles="${KERNEL_SITE}/utils/util-linux/v${version%.*}/util-linux-${version}.tar.xz"
|
|
|
|
checksum=835eb6232cfab0118ef2e4fd649de0ba9f5bd1b8cbf9a7d4d84594541dec8410
|
2012-03-09 02:01:17 +01:00
|
|
|
|
2013-10-24 10:05:50 +02:00
|
|
|
if [ -z "$CHROOT_READY" ]; then
|
|
|
|
CFLAGS+=" -I${XBPS_MASTERDIR}/usr/include"
|
|
|
|
LDFLAGS+=" -L${XBPS_MASTERDIR}/usr/lib"
|
|
|
|
fi
|
|
|
|
|
2012-03-09 02:01:17 +01:00
|
|
|
post_install() {
|
|
|
|
# Remove unused stuff.
|
|
|
|
rm -rf ${DESTDIR}/bin
|
|
|
|
rm -rf ${DESTDIR}/sbin
|
|
|
|
rm -rf ${DESTDIR}/usr/sbin
|
|
|
|
rm -rf ${DESTDIR}/usr/share/man
|
|
|
|
}
|