2021-07-03 19:21:31 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2022-11-02 17:29:48 +00:00
|
|
|
# Maintainer: Jenneron <jenneron@protonmail.com>
|
2024-03-19 20:31:09 +00:00
|
|
|
# Co-Maintainer: Jethrob <jeybee@hotmail.com>
|
2021-07-03 19:21:31 +00:00
|
|
|
pkgname=device-microsoft-surface-rt
|
|
|
|
pkgdesc="Microsoft Surface RT"
|
2024-03-15 20:59:31 +00:00
|
|
|
pkgver=7
|
|
|
|
pkgrel=0
|
2021-07-03 19:21:31 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="armv7"
|
|
|
|
# pmb:strict: avoid grub-related install error during build with pmbootstrap
|
|
|
|
options="!check !archcheck pmb:strict"
|
2024-03-18 10:34:17 +00:00
|
|
|
depends="
|
2021-07-03 19:21:31 +00:00
|
|
|
alsa-ucm-conf
|
2024-03-18 10:34:17 +00:00
|
|
|
linux-postmarketos-grate
|
|
|
|
postmarketos-base
|
2021-07-03 19:21:31 +00:00
|
|
|
"
|
|
|
|
makedepends="devicepkg-dev grub grub-efi"
|
2021-08-12 10:46:22 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
$pkgname-x11
|
|
|
|
"
|
2024-03-15 21:53:29 +00:00
|
|
|
source="deviceinfo modules-initfs"
|
2021-07-03 19:21:31 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2021-07-27 20:05:07 +00:00
|
|
|
install -D "$srcdir"/bootarm.efi \
|
2021-07-03 19:21:31 +00:00
|
|
|
"$pkgdir"/boot/EFI/Boot/bootarm.efi
|
|
|
|
}
|
|
|
|
|
2021-08-12 10:46:22 +00:00
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="WiFi firmware"
|
|
|
|
depends="linux-firmware-mrvl"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2021-07-03 19:21:31 +00:00
|
|
|
x11() {
|
|
|
|
install_if="$pkgname xorg-server"
|
2024-01-02 18:15:46 +00:00
|
|
|
depends="xf86-video-opentegra libvdpau-tegra"
|
2021-07-03 19:21:31 +00:00
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2024-03-15 21:56:07 +00:00
|
|
|
4585b96c10b86012d2ce33c623adf4f64a77219372a17e79ff3617bed1b18617f0965a4d9ea859dc7ecc6892970cbc9327936ce9413787e991d77ad57ec94ba6 deviceinfo
|
2023-08-02 17:06:01 +00:00
|
|
|
67ff4306270b7e6e292ddb48ac5fcb1472840d8eaa412f9cd989442fb20139ee3c844fd1ca5c5b923c7980403d945999a77fc6617127059e56e22bdc8dca2bf8 modules-initfs
|
2021-07-03 19:21:31 +00:00
|
|
|
"
|