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
|
|
|
revision=2
|
|
|
|
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()
|
|
|
|
{
|
|
|
|
make headers_check || return 1
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install()
|
|
|
|
{
|
|
|
|
make INSTALL_HDR_PATH=${DESTDIR}/usr headers_install || return 1
|
|
|
|
# Install scsi/scsi.h header, required by eject and others.
|
|
|
|
install -m644 ${wrksrc}/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)
|
|
|
|
}
|