jobcore/linux-api-headers/PKGBUILD

46 lines
1.4 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
# toolchain build order: linux-api-headers->glibc->binutils->gcc->glibc->binutils->gcc
pkgname=linux-api-headers
pkgver=6.1.9
#pkgver=5.18.18
pkgrel=01
pkgdesc='Kernel headers sanitized for use in userspace'
arch=(any)
url='https://www.gnu.org/software/libc'
makedepends=(rsync)
source=(https://www.kernel.org/pub/linux/kernel/v${pkgver:0:1}.x/linux-${pkgver}.tar.{xz,sign})
build() {
cd linux-$pkgver
make mrproper
}
package() {
cd linux-$pkgver
make INSTALL_HDR_PATH="$pkgdir/usr" headers_install
# use headers from libdrm
rm -r "$pkgdir/usr/include/drm"
}
#---- license gpg-key sha256sums ----
license=(GPL2)
validpgpkeys=('ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds
'647F28654894E3BD457199BE38DBBDC86092693E') # Greg Kroah-Hartman
sha256sums=(d60cf185693c386e7acd9f3eb3a94ae30ffbfee0a9447a20e83711e0bdf5922b # linux-6.1.9.tar.xz
#c1c376c8dcc5c226c5f190f6eaf687495d3cf87b927d5e1a8fed9bcfa966402b # linux-5.18.18.tar.xz
#b4d9712e8a75aeb718705a0794b7fe0c63be7b283333ee68e4df6fb946173cd1) # linux-5.18.18.tar.sign
3bd23ba1f014fc5b79e316f35493ab4047bf2b4101e9d608dc821dc91fd24c3b) # linux-6.1.9.tar.sign