APP=kernel-headers
VERSION=4.19.88
BUILD=1sml
HOMEPAGE='http://ftp.barfooze.de/pub/sabotage/tarballs/'
DOWNLOAD='http://ftp.barfooze.de/pub/sabotage/tarballs/linux-headers-4.19.88.tar.xz'
DESC="Musl-compatible  header files for the Linux kernel"
REQUIRES="musl"

build() {
  mkandenterbuilddir
  rm -rf linux-headers-$VERSION

  tar xf $SRCDIR/linux-headers-$VERSION.tar.?z*
  cd linux-headers-$VERSION
  fixbuilddirpermissions

  patch -p1 < $SRCDIR/ptrace.h.patch

  make ARCH="$ARCH" prefix="/" DESTDIR=$PKG install
  cp -r generic/include $PKG/

  mkfinalpkg
}

SHA512SUMS="
5a975ba49b577869f2338aa80f44efd4e94f76e5b4bda11a6a1761a6d646848fdeaad7c820339b2c1c20d55f9bbf0e686121d621ac1cfa1dfc6cd71a166ade3a  linux-headers-4.19.88.tar.xz
185d627c8704cfdf423e7bcd16d54046d857457fd24ad087d6ad8cd768e5dcb9b8e19e688348afec233d54c5e85106e1d7246cd7cd0413865feb488d2ca64d7b  ptrace.h.patch
"
