47 lines
1.1 KiB
Plaintext
47 lines
1.1 KiB
Plaintext
# Template file for 'kernel-libc-headers'
|
|
#
|
|
pkgname=kernel-libc-headers
|
|
version=3.10.6
|
|
revision=1
|
|
wrksrc=linux-${version}
|
|
short_desc="The Linux API headers for userland development"
|
|
license="GPL-2"
|
|
homepage="http://www.kernel.org"
|
|
distfiles="http://www.kernel.org/pub/linux/kernel/v3.x/linux-${version}.tar.xz"
|
|
checksum=ed4dfd9f56b7c82e9c71331bbf8d2ea01ddfddc1b6209bd3f3c8640aa24065cf
|
|
|
|
bootstrap=yes
|
|
|
|
if [ -n "$IN_CHROOT" ]; then
|
|
hostmakedepends="perl"
|
|
fi
|
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
|
_arch="ARCH=x86"
|
|
elif [ "$XBPS_TARGET_MACHINE" = "armv6l" ]; then
|
|
_arch="ARCH=arm"
|
|
else
|
|
msg_error "$pkgver: unknown architecture.\n"
|
|
fi
|
|
|
|
do_build() {
|
|
make mrproper
|
|
make ${_arch} headers_check
|
|
}
|
|
|
|
do_install() {
|
|
make ${_arch} 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
|
|
}
|
|
|
|
kernel-libc-headers_package() {
|
|
nostrip=yes
|
|
noverifyrdeps=yes
|
|
pkg_install() {
|
|
vmove usr
|
|
}
|
|
}
|