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
|
|
|
|
2011-07-06 06:16:56 +00:00
|
|
|
bootstrap=yes
|
2009-12-03 23:25:09 +00:00
|
|
|
nostrip=yes
|
2010-10-24 07:02:46 +00:00
|
|
|
|
2011-07-06 21:17:34 +00:00
|
|
|
if [ -n "$BOOTSTRAP_PKG_REBUILD" ]; then
|
|
|
|
Add_dependency build perl ">=0"
|
|
|
|
fi
|
|
|
|
|
2010-10-24 07:02:46 +00:00
|
|
|
do_build()
|
|
|
|
{
|
2011-07-11 11:21:02 +00:00
|
|
|
env LANG=C make headers_check
|
2010-10-24 07:02:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install()
|
|
|
|
{
|
2011-07-11 11:21:02 +00:00
|
|
|
env LANG=C 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)
|
|
|
|
}
|