void-packages/srcpkgs/kernel-libc-headers/template
Juan RP 5355f32aca xbps-src: support building bootstrap pkgs in chroot with -D.
The base_chroot var has been renamed to bootstrap, to avoid conflicts
with the base-chroot pkg. So now you can rebuild any bootstrap package
if the masterdir is ready (base-chroot already) installed and
installation is only to destdir.
2011-07-06 08:16:56 +02:00

30 lines
725 B
Text

# Template file for 'kernel-libc-headers'
. ${XBPS_SRCPKGDIR}/kernel/common-vars
pkgname=kernel-libc-headers
build_style=custom-install
short_desc="The Linux kernel headers for development"
long_desc="
This package provides the linux kernel headers for use in userspace."
bootstrap=yes
nostrip=yes
do_build()
{
make headers_check
}
do_install()
{
make INSTALL_HDR_PATH=${DESTDIR}/usr headers_install
# Install scsi/scsi.h header, required by eject and others.
sed -i -e "/^\#include <linux\/scatterlist.h>$/d" include/scsi/scsi.h
install -m644 include/scsi/scsi.h ${DESTDIR}/usr/include/scsi
}
post_install()
{
# Remove unused files.
rm -f $(find ${DESTDIR}/usr/include -name .install -or -name ..install.cmd)
}