# Reference: # Maintainer: Jenneron pkgname=device-microsoft-surface-rt pkgdesc="Microsoft Surface RT" pkgver=7 pkgrel=0 url="https://postmarketos.org" license="MIT" arch="armv7" # pmb:strict: avoid grub-related install error during build with pmbootstrap options="!check !archcheck pmb:strict" depends="postmarketos-base linux-postmarketos-grate alsa-ucm-conf " makedepends="devicepkg-dev grub grub-efi" subpackages=" $pkgname-nonfree-firmware:nonfree_firmware $pkgname-x11 " source="deviceinfo modules-initfs" build() { devicepkg_build $startdir $pkgname grub-mkimage \ --prefix="/grub" \ --output="bootarm.efi" \ --format="arm-efi" \ --compression="xz" \ \ disk \ fat \ gzio \ iso9660 \ linux \ normal \ part_gpt \ part_msdos } package() { devicepkg_package $startdir $pkgname install -D "$srcdir"/bootarm.efi \ "$pkgdir"/boot/EFI/Boot/bootarm.efi } nonfree_firmware() { pkgdesc="WiFi firmware" depends="linux-firmware-mrvl" mkdir "$subpkgdir" } x11() { install_if="$pkgname xorg-server" depends="xf86-video-opentegra libvdpau-tegra" mkdir "$subpkgdir" } sha512sums=" abcd58ab70852be649b98764b893dce9801574ebc4bb577f4e34ea624becb1672aa561aff312e65701a867c55020e86a4d9c69cdbfe1472c405b9e916505b5f3 deviceinfo 67ff4306270b7e6e292ddb48ac5fcb1472840d8eaa412f9cd989442fb20139ee3c844fd1ca5c5b923c7980403d945999a77fc6617127059e56e22bdc8dca2bf8 modules-initfs "