kernel-libc-headers: remove drm headers, dont depend in kernel/common-vars.
This commit is contained in:
parent
6b82f98dec
commit
f7d86f05bf
|
@ -1,8 +1,13 @@
|
|||
# Template file for 'kernel-libc-headers'
|
||||
. ${XBPS_SRCPKGDIR}/kernel/common-vars
|
||||
|
||||
#
|
||||
pkgname=kernel-libc-headers
|
||||
version=3.2.6
|
||||
wrksrc=linux-${version}
|
||||
homepage="http://www.kernel.org"
|
||||
distfiles="http://www.kernel.org/pub/linux/kernel/v3.x/linux-${version}.tar.xz"
|
||||
checksum=9db97d45638017e6dfaed768cfa9f47533c9c9fb3538bce0e594d9feff5489b4
|
||||
short_desc="The Linux kernel headers for development"
|
||||
license="GPL-2"
|
||||
long_desc="
|
||||
This package provides the linux kernel headers for use in userspace."
|
||||
|
||||
|
@ -14,21 +19,15 @@ if [ -n "$BOOTSTRAP_PKG_REBUILD" ]; then
|
|||
Add_dependency build perl ">=0"
|
||||
fi
|
||||
|
||||
do_build()
|
||||
{
|
||||
env LANG=C make headers_check
|
||||
do_build() {
|
||||
make mrproper
|
||||
make headers_check
|
||||
}
|
||||
|
||||
do_install()
|
||||
{
|
||||
env LANG=C make INSTALL_HDR_PATH=${DESTDIR}/usr headers_install
|
||||
# Install scsi/scsi.h header, required by eject and others.
|
||||
sed -i -e "/^\#include <linux\/scatterlist.h>$/d" include/scsi/scsi.h
|
||||
install -m644 include/scsi/scsi.h ${DESTDIR}/usr/include/scsi
|
||||
}
|
||||
|
||||
post_install()
|
||||
{
|
||||
do_install() {
|
||||
make INSTALL_HDR_PATH=${DESTDIR}/usr headers_install
|
||||
# Remove unused files.
|
||||
rm -f $(find ${DESTDIR}/usr/include -name .install -or -name ..install.cmd)
|
||||
# Remove drm headers, use libdrm.
|
||||
rm -rf ${DESTDIR}/usr/include/drm
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user