# Maintainer: graysky # Maintainer: Kevin Mihelich # Maintainer: Oleg Rakhmanov # Maintainer: Dave Higham # Contributer: Jan Alexander Steffens (heftig) buildarch=20 pkgbase=linux-raspberrypi _commit=581049d718caf95f5feb00607ac748d5841cf27c _srcname=linux-${_commit} _kernelname=${pkgbase#linux} _desc="RPi 1 and 2" pkgver=5.10.76 pkgrel=1 pkgdesc='Linux' url="http://www.kernel.org/" arch=(armv6h armv7h) license=(GPL2) makedepends=( bc kmod inetutils ) options=('!strip') source=("https://github.com/raspberrypi/linux/archive/${_commit}.tar.gz" cmdline.txt config.txt config linux.preset 60-linux.hook 90-linux.hook ) md5sums=('2c1c705c33460577b9f978aa01280da3' '31c02f4518d46deb5f0c2ad1f8b083cd' '9669d916a5929a2eedbd64477f83d99e' '18d63f130f6e161aece55aea93b38e14' '86d4a35722b5410e3b29fc92dae15d4b' '0a5f16bfec6ad982a2f6782724cca8ba' '69e1db90d78f691dc446fe2ab94727eb') # setup vars if [[ $CARCH == "armv6h" ]]; then _kernel=kernel.img elif [[ $CARCH == "armv7h" ]]; then _kernel=kernel7.img fi _image=zImage _config=config _bconfig=config.txt KARCH=arm prepare() { cd "${srcdir}/${_srcname}" echo "Setting version..." scripts/setlocalversion --save-scmversion echo "-$pkgrel" > localversion.10-pkgrel echo "${pkgbase#linux}" > localversion.20-pkgname echo "Setting config..." cp ../"$_config" .config make olddefconfig make -s kernelrelease > version echo "Prepared $pkgbase version $(=0.7' 'firmware-raspberrypi') optdepends=('crda: to set the correct wireless channels of your country') provides=('kernel26' "linux=${pkgver}" 'WIREGUARD-MODULE') conflicts=('kernel26' 'linux') install=${pkgname}.install backup=('boot/config.txt' 'boot/cmdline.txt') replaces=('linux-raspberrypi-latest') cd "${srcdir}/${_srcname}" local kernver="$(