mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 02:22:15 +08:00
42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer: Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
# toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc
|
|
|
|
pkgname=linux-api-headers
|
|
pkgver=3.5.6
|
|
_basever=3.5
|
|
pkgrel=1
|
|
pkgdesc="Kernel headers sanitized for use in userspace"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.gnu.org/software/libc"
|
|
license=('GPL2')
|
|
provides=("kernel-headers=${pkgver}")
|
|
conflicts=('kernel-headers')
|
|
replaces=('kernel-headers')
|
|
source=(http://www.kernel.org/pub/linux/kernel/v3.x/linux-${_basever}.tar.xz
|
|
http://www.kernel.org/pub/linux/kernel/v3.x/patch-${pkgver}.xz)
|
|
md5sums=('24153eaaa81dedc9481ada8cd9c3b83d'
|
|
'e9502f047c251db3b0c911e53344bad5')
|
|
|
|
build() {
|
|
cd ${srcdir}/linux-${_basever}
|
|
[[ $pkgver != $_basever ]] && patch -p1 -i ${srcdir}/patch-${pkgver}
|
|
|
|
make mrproper
|
|
make headers_check
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/linux-${_basever}
|
|
make INSTALL_HDR_PATH=${pkgdir}/usr headers_install
|
|
|
|
# use headers from libdrm
|
|
rm -r ${pkgdir}/usr/include/drm
|
|
|
|
# clean-up unnecessary files generated during install
|
|
find ${pkgdir} \( -name .install -o -name ..install.cmd \) -delete
|
|
}
|