# Maintainer: BigfootACA pkgbase=linux-x1e80100-test pkgver=6.9.3.r1267498.479371ed0fda pkgrel=4 arch=(aarch64) url="https://github.com/edk2-porting/linux-next/" license=(GPL2) makedepends=( xmlto docbook-xsl kmod inetutils bc git uboot-tools dtc ) options=('!strip') source=("git+http://192.168.0.51:3000/renegade-project/linux-next.git#branch=work/sakuramist-x1e80100" linux.preset linux.install 60-linux.hook 90-linux.hook) md5sums=('SKIP' '86d4a35722b5410e3b29fc92dae15d4b' '9c795aa7ae26de6c214c20e878ee61bf' '0a5f16bfec6ad982a2f6782724cca8ba' '3dc88030a8f2f5a5f97266d99b149f77') sha1sums=('SKIP' '937f93aa6d1a14babea9ff7de12aa2c73763e675' 'cf150e02705c4ba0af34886e50e40e266dd22039' '0fb7ac9f742f3b7dec37c2778e1830b8ce588f1b' '3b0160191978ebd905891211ef8abe1c17dab9ad') sha256sums=('SKIP' '66644820faa950a5fc59181f5aefcbed6d7ed652b29aee69979a2be2a032025d' 'c5d6f202fad3cb5e4842bc7d06ed7156ae4326d3d6fbf7439e3fbe2ad60514cc' '452b8d4d71e1565ca91b1bebb280693549222ef51c47ba8964e411b2d461699c' '71df1b18a3885b151a3b9d926a91936da2acc90d5e27f1ad326745779cd3759d') sha512sums=('SKIP' 'a492aae17ee4a316ce03faf9f1b284b2529c485f4b092cc4a1f865a6c68d482fd356fd30efa296c116975a3bdf3922f5bf03912a8d0e76f4ab24aa6ab9f8c276' 'e0834ac1a5d67aff61c94c057b343b912cea2eae8563874f0938024fdc40d7ac528762a83b6a3117ef89dc787869e5ce10ec7329ba02eb46299e45b5a0a1ae6b' '6b57a66b870b2f525e2dedd8f224b89474fd4ec6ea18484b0a67a1a2b9a4fc95d025cac181504406ea42a35d6c1b184c0d4e38c92815022935fc55746c69c7c1' 'b2cdb620fcc6f0b430b0cf0c844887c2c1e290844ea330750cad52c9ec04e835ead973b664c7613d147037c388120affe97dfd2f2e0f9ae224db52aaa4cb8814') export KBUILD_BUILD_USER=ci KBUILD_BUILD_HOST=classfun.cn ARCH=arm64 pkgver() { cd "$srcdir/linux-next" local VERSION="$(awk '$1=="VERSION"{print $3}' Makefile)" local PATCHLEVEL="$(awk '$1=="PATCHLEVEL"{print $3}' Makefile)" local SUBLEVEL="$(awk '$1=="SUBLEVEL"{print $3}' Makefile)" local COMMITNO=".r$(git rev-list --count HEAD)" local EXTRAVERSION="$(awk '$1=="EXTRAVERSION"{print $3}' Makefile)" local COMMIT="$(git rev-parse --short=12 HEAD)" EXTRAVERSION="${EXTRAVERSION//-/.}" echo "${VERSION}.${PATCHLEVEL}.${SUBLEVEL}${COMMITNO}${EXTRAVERSION}.${COMMIT}" } prepare() { cd "$srcdir/linux-next" git remote remove github &>/dev/null || true git remote add github https://github.com/edk2-porting/linux-next git pull github work/sakuramist-x1e80100 echo "Setting version..." echo "-$pkgrel" > localversion.10-pkgrel echo "${pkgbase#linux}" > localversion.20-pkgname rm -f .config make x1e80100_defconfig } build() { cd "$srcdir/linux-next" make prepare make -s kernelrelease > version unset LDFLAGS make ${MAKEFLAGS} Image Image.gz modules make ${MAKEFLAGS} DTC_FLAGS="-@" dtbs } _package() { pkgdesc="The Linux Kernel and modules - X1E80100 experimental kernel for sakuramist" depends=('coreutils' 'kmod' 'mkinitcpio>=0.7') optdepends=('wireless-regdb: to set the correct wireless channels of your country') provides=("linux=${pkgver}" "linux-aarch64" "WIREGUARD-MODULE") conflicts=('linux' 'linux-aarch64') backup=("etc/mkinitcpio.d/${pkgbase}.preset") install=linux.install cd "$srcdir/linux-next" local kernver="$(