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