# Maintainer: Yurii Kolesnykov # # Based on the linux-mainline package by: # Maintainer: Mikael Eriksson # Maintainer: Jan Alexander Steffens (heftig) # Maintainer: Tobias Powalowski # Maintainer: Thomas Baechler pkgbase=linux-drm-intel-next-queued-git pkgdesc='Linux with patches for Intel graphics' _srcname=${pkgbase} _branch=drm-intel-next-queued _kernelname=${pkgbase#linux} pkgver=5.6.887400.b2fcaac98bbe pkgrel=1 arch=('x86_64') url='https://drm.pages.freedesktop.org/maintainer-tools/drm-intel.html' license=(GPL2) makedepends=( bc kmod libelf xmlto python-sphinx python-sphinx_rtd_theme graphviz imagemagick git ) options=('!strip') source=("${pkgbase}::git://anongit.freedesktop.org/drm/drm-intel#branch=${_branch}" config # the main kernel config file ) sha256sums=('SKIP' '08e8355c548d5710f157a062b39d97e414160916d30acd2dda307d38c43e394d') pkgver() { cd "${_srcname}" local version="$(grep \^VERSION Makefile|cut -d"=" -f2|cut -d" " -f2)" local patch="$(grep \^PATCHLEVEL Makefile|cut -d"=" -f2|cut -d" " -f2)" patch=$(( $patch + 1 )) echo $version.$patch.$(git rev-list --count HEAD).$(git rev-parse --short HEAD) } _kernelname=${pkgbase#linux} : ${_kernelname:=-ARCH} prepare() { cd $_srcname msg2 "Setting version..." scripts/setlocalversion --save-scmversion #echo "-$pkgrel" > localversion.10-pkgrel echo "$_kernelname" > localversion.20-pkgname local src for src in "${source[@]}"; do src="${src%%::*}" src="${src##*/}" [[ $src = *.patch ]] || continue msg2 "Applying patch $src..." patch -Np1 < "../$src" done msg2 "Setting config..." cp ../config .config make olddefconfig make -s kernelrelease > ../version msg2 "Prepared %s version %s" "$pkgbase" "$(<../version)" } build() { cd $_srcname make bzImage modules htmldocs } _package() { pkgdesc="The ${pkgbase/linux/Linux} kernel and modules" [[ $pkgbase = linux ]] && groups=(base) depends=(coreutils linux-firmware kmod mkinitcpio) optdepends=('crda: to set the correct wireless channels of your country') backup=("etc/mkinitcpio.d/$pkgbase.preset") install=linux.install local kernver="$( "$startdir/$install.pkg" true && install=$install.pkg # fill in mkinitcpio preset and pacman hooks sed "$subst" ../linux.preset | install -Dm644 /dev/stdin \ "$pkgdir/etc/mkinitcpio.d/$pkgbase.preset" sed "$subst" ../60-linux.hook | install -Dm644 /dev/stdin \ "$pkgdir/usr/share/libalpm/hooks/60-$pkgbase.hook" sed "$subst" ../90-linux.hook | install -Dm644 /dev/stdin \ "$pkgdir/usr/share/libalpm/hooks/90-$pkgbase.hook" msg2 "Fixing permissions..." chmod -Rc u=rwX,go=rX "$pkgdir" } _package-headers() { pkgdesc="Header files and scripts for building modules for ${pkgbase/linux/Linux} kernel" local builddir="$pkgdir/usr/lib/modules/$(