2008-12-17 08:12:33 +00:00
|
|
|
# Template file for 'kernel-libc-headers'
|
2010-04-21 13:50:05 +00:00
|
|
|
. ${XBPS_SRCPKGDIR}/kernel/common-vars
|
|
|
|
|
2008-12-17 08:12:33 +00:00
|
|
|
pkgname=kernel-libc-headers
|
2010-10-24 07:02:46 +00:00
|
|
|
build_style=custom-install
|
2008-12-17 08:12:33 +00:00
|
|
|
short_desc="The Linux kernel headers for development"
|
2008-10-23 15:14:00 +00:00
|
|
|
long_desc="
|
|
|
|
This package provides the linux kernel headers for use in userspace."
|
2008-10-27 06:42:40 +00:00
|
|
|
|
|
|
|
base_chroot=yes
|
2009-12-03 23:25:09 +00:00
|
|
|
nostrip=yes
|
2010-10-24 07:02:46 +00:00
|
|
|
|
|
|
|
do_build()
|
|
|
|
{
|
2011-03-26 10:19:48 +00:00
|
|
|
make headers_check
|
2010-10-24 07:02:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install()
|
|
|
|
{
|
2011-03-26 10:19:48 +00:00
|
|
|
make INSTALL_HDR_PATH=${DESTDIR}/usr headers_install
|
2010-10-24 07:02:46 +00:00
|
|
|
# Install scsi/scsi.h header, required by eject and others.
|
2011-03-26 10:19:48 +00:00
|
|
|
sed -i -e "/^\#include <linux\/scatterlist.h>$/d" include/scsi/scsi.h
|
|
|
|
install -m644 include/scsi/scsi.h ${DESTDIR}/usr/include/scsi
|
2010-10-24 07:02:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
post_install()
|
|
|
|
{
|
|
|
|
# Remove unused files.
|
|
|
|
rm -f $(find ${DESTDIR}/usr/include -name .install -or -name ..install.cmd)
|
|
|
|
}
|