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
|
2024-06-18 19:53:59 +00:00
|
|
|
pkgrel=1
|
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-06-18 19:53:59 +00:00
|
|
|
cdaa85adbeff8fe72bc4e4594688937a4bfab20bd3458e2e3b4e8bd2c53f6160c19af3e1de5cf8568f1e6a050d289454c786a50c8480a2e6217ae737b2f53364 deviceinfo
|
2023-08-02 17:06:01 +00:00
|
|
|
67ff4306270b7e6e292ddb48ac5fcb1472840d8eaa412f9cd989442fb20139ee3c844fd1ca5c5b923c7980403d945999a77fc6617127059e56e22bdc8dca2bf8 modules-initfs
|
2021-07-03 19:21:31 +00:00
|
|
|
"
|