void-packages/srcpkgs/kernel-libc-headers/template

37 lines
946 B
Text
Raw Normal View History

# Template file for 'kernel-libc-headers'
#
pkgname=kernel-libc-headers
version=3.17.1
2013-08-13 09:15:29 +00:00
revision=1
bootstrap=yes
nostrip=yes
noverifyrdeps=yes
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=2c9c002cf9618962883d82ba3e1caaea29af4ea37147a82bad422afdc8d21dc2
2013-10-23 08:33:38 +00:00
if [ "$CHROOT_READY" ]; then
2013-08-13 09:17:10 +00:00
hostmakedepends="perl"
fi
2013-10-23 08:33:38 +00:00
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*) _arch="x86";;
2013-10-23 08:33:38 +00:00
arm*) _arch="arm";;
*) msg_error "$pkgver: unknown architecture.\n";;
esac
do_build() {
make mrproper
2013-10-23 08:33:38 +00:00
make ARCH=${_arch} headers_check
}
do_install() {
2013-10-23 08:33:38 +00:00
make ARCH=${_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
}