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