# Maintainer: m0rf30 # Reference: # Kernel config based on: arch/arm64/configs/vince_defconfig pkgname=linux-xiaomi-vince pkgver=4.9.317 pkgrel=0 pkgdesc="Xiaomi Redmi Note 5 Plus kernel fork" arch="aarch64" _carch="arm64" _flavor="xiaomi-vince" url="https://kernel.org" license="GPL-2.0-only" options="!strip !check !tracedeps pmb:cross-native" makedepends="bash bc bison devicepkg-dev flex openssl-dev perl" # Source _repository="android_kernel_xiaomi_vince" _commit="997fb667ef0b17bbc3bc20a32b6366ea9989a58a" _config="config-$_flavor.$arch" source="$pkgname-$_commit.tar.gz::https://github.com/GhostMaster69-dev/$_repository/archive/$_commit.tar.gz $_config " builddir="$srcdir/$_repository-$_commit" _outdir="out" prepare() { default_prepare . downstreamkernel_prepare } build() { unset LDFLAGS make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \ KBUILD_BUILD_VERSION="$((pkgrel + 1))-postmarketOS" } package() { downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir" } sha512sums=" 18551ea131b9969a93b6da4d5803543ce875662edd10a258a0fb06a5fc6eac51f9fb8567790de47e2cb920afe69f92ac5ac39390b01a8e55aa7c6428ec6d57f7 linux-xiaomi-vince-997fb667ef0b17bbc3bc20a32b6366ea9989a58a.tar.gz 2f682f5868710d42f82ad345b2b8e68a215e7dd3755a15379ebf1fd85bcc769b071e88435315205564a37472f3025a6e2536785104cbd9d4d3c31d72d52c0450 config-xiaomi-vince.aarch64 "