ayaports/user/linux-rm-headers/APKBUILD

40 lines
1.1 KiB
Text

# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=linux-rm-headers
pkgver=5.4.70
_rmver=1.3.4
pkgrel=2
pkgdesc="Linux kernel headers with reMarkable patches"
url=https://github.com/reMarkable/linux
provides="linux-headers=$pkgver-r$pkgrel"
makedepends="perl"
options="!check !dbg !strip !tracedeps"
builddir="$srcdir"/linux-RM1XX_${pkgver}_v$_rmver
source="https://github.com/reMarkable/linux/archive/refs/tags/RM1XX_${pkgver}_v$_rmver.tar.gz"
arch="noarch"
license="GPL-2.0"
_carch=$CARCH
case "$CARCH" in
aarch64) _carch="arm64" ;;
arm*) _carch="arm" ;;
esac
build() {
make headers ARCH="$_carch"
}
package() {
mkdir -p "$pkgdir"/usr/
cp -a usr/include/ "$pkgdir"/usr/include/
msg "purging non header files.."
find "$pkgdir"/usr/include/ ! -iname "*.h" -type f -exec rm -v {} \+
# provided by libdrm
rm -rf "$pkgdir"/usr/include/drm
}
sha512sums="
0409c8443f5a705e8254858f966eed571b935f1be952f64c1d74b52a043d0638ba358370ca20f665d69b70aabe06f03e0bfa02ccd1a4a2a174d5b9579a10b44e RM1XX_5.4.70_v1.3.4.tar.gz
"