# Maintainer: graysky # Maintainer: Kevin Mihelich # Maintainer: Oleg Rakhmanov # Maintainer: Dave Higham # Contributer: Jan Alexander Steffens (heftig) buildarch=20 pkgbase=linux-raspberrypi _commit=1faafd963e48eafb3abd555e13496a773d858b02 _srcname=linux-${_commit} _kernelname=${pkgbase#linux} _desc="Raspberry Pi 1 and 2" pkgver=5.10.63 pkgrel=15 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 ) md5sums=('8b6f5b06d5a252cbb06ea1b33ee45c25' '31c02f4518d46deb5f0c2ad1f8b083cd' '9669d916a5929a2eedbd64477f83d99e' '18d63f130f6e161aece55aea93b38e14') # setup vars [[ $CARCH == "armv6h" ]] && _kernel=kernel.img [[ $CARCH == "armv7h" ]] && _kernel=kernel7.img _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="$(