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
|
2010-10-24 09:02:46 +02:00
|
|
|
revision=2
|
|
|
|
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()
|
|
|
|
{
|
|
|
|
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)
|
|
|
|
}
|