2008-12-17 08:12:33 +00:00
|
|
|
# Template file for 'kernel-libc-headers'
|
2012-02-18 16:43:57 +00:00
|
|
|
#
|
2008-12-17 08:12:33 +00:00
|
|
|
pkgname=kernel-libc-headers
|
2013-08-13 09:15:29 +00:00
|
|
|
version=3.10.6
|
|
|
|
revision=1
|
2014-01-01 15:10:11 +00:00
|
|
|
bootstrap=yes
|
|
|
|
nostrip=yes
|
|
|
|
noverifyrdeps=yes
|
2012-02-18 16:43:57 +00:00
|
|
|
wrksrc=linux-${version}
|
2013-02-19 12:10:28 +00:00
|
|
|
short_desc="The Linux API headers for userland development"
|
|
|
|
license="GPL-2"
|
2012-02-18 16:43:57 +00:00
|
|
|
homepage="http://www.kernel.org"
|
|
|
|
distfiles="http://www.kernel.org/pub/linux/kernel/v3.x/linux-${version}.tar.xz"
|
2013-08-13 09:15:29 +00:00
|
|
|
checksum=ed4dfd9f56b7c82e9c71331bbf8d2ea01ddfddc1b6209bd3f3c8640aa24065cf
|
2011-07-06 21:17:34 +00:00
|
|
|
|
2013-10-23 08:33:38 +00:00
|
|
|
if [ "$CHROOT_READY" ]; then
|
2013-08-13 09:17:10 +00:00
|
|
|
hostmakedepends="perl"
|
2013-02-19 12:10:28 +00:00
|
|
|
fi
|
|
|
|
|
2013-10-23 08:33:38 +00:00
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
2014-01-08 12:41:28 +00:00
|
|
|
i686*|x86_64*) _arch="x86";;
|
2013-10-23 08:33:38 +00:00
|
|
|
arm*) _arch="arm";;
|
|
|
|
*) msg_error "$pkgver: unknown architecture.\n";;
|
|
|
|
esac
|
2013-02-19 12:10:28 +00:00
|
|
|
|
2012-02-18 16:43:57 +00:00
|
|
|
do_build() {
|
|
|
|
make mrproper
|
2013-10-23 08:33:38 +00:00
|
|
|
make ARCH=${_arch} headers_check
|
2010-10-24 07:02:46 +00:00
|
|
|
}
|
|
|
|
|
2012-02-18 16:43:57 +00:00
|
|
|
do_install() {
|
2013-10-23 08:33:38 +00:00
|
|
|
make ARCH=${_arch} INSTALL_HDR_PATH=${DESTDIR}/usr headers_install
|
2010-10-24 07:02:46 +00:00
|
|
|
# Remove unused files.
|
|
|
|
rm -f $(find ${DESTDIR}/usr/include -name .install -or -name ..install.cmd)
|
2012-02-18 16:43:57 +00:00
|
|
|
# Remove drm headers, use libdrm.
|
|
|
|
rm -rf ${DESTDIR}/usr/include/drm
|
2010-10-24 07:02:46 +00:00
|
|
|
}
|