# Maintainer: m0rf30 # Reference: # Kernel config based on: arch/arm64/configs/vince_defconfig pkgname=linux-xiaomi-vince pkgver=4.9.308 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="c6c68b86bd3bc487cb26037d3cbc3e1262c81b61" _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=" 845aa62b1e52e34466432665c9b7cf71a6dd17a827802149a54bc184bfd75da1d4dba383573f939465cc1f2665bdcbb17fbaa96a4f6e7704523af3373f9fa6e3 linux-xiaomi-vince-c6c68b86bd3bc487cb26037d3cbc3e1262c81b61.tar.gz 74a53cf412a54aca51e2697062e457db6ab166a3bc217752224a12afdac66e4d858d4e17cd4fa814e54e5f0cbc028df1bffadb0a8f6e504c16bbf94dea06572a config-xiaomi-vince.aarch64 "