2021-07-03 19:21:31 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
pkgname=device-microsoft-surface-rt
|
|
|
|
pkgdesc="Microsoft Surface RT"
|
2022-05-05 14:50:55 +00:00
|
|
|
pkgver=6
|
|
|
|
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"
|
|
|
|
depends="postmarketos-base
|
|
|
|
linux-postmarketos-grate
|
2022-04-05 16:34:43 +00:00
|
|
|
mesa-dri-gallium
|
2021-07-03 19:21:31 +00:00
|
|
|
libvdpau-tegra
|
|
|
|
alsa-ucm-conf
|
|
|
|
"
|
|
|
|
makedepends="devicepkg-dev grub grub-efi"
|
2021-08-12 10:46:22 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
$pkgname-x11
|
|
|
|
$pkgname-phosh
|
|
|
|
"
|
2021-07-03 19:21:31 +00:00
|
|
|
source="
|
|
|
|
deviceinfo
|
|
|
|
grub.cfg
|
2021-07-27 20:05:07 +00:00
|
|
|
initfs-hook.sh
|
2021-07-03 19:21:31 +00:00
|
|
|
pointercal
|
2022-04-03 09:04:48 +00:00
|
|
|
phoc.ini
|
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
|
|
|
|
|
|
|
|
install -Dm644 "$srcdir"/pointercal \
|
|
|
|
"$pkgdir"/etc/pointercal
|
|
|
|
|
2021-07-27 20:05:07 +00:00
|
|
|
install -D "$srcdir"/grub.cfg \
|
2021-07-03 19:21:31 +00:00
|
|
|
"$pkgdir"/boot/grub/grub.cfg
|
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"
|
|
|
|
depends="xf86-video-opentegra"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
phosh() {
|
|
|
|
install_if="$pkgname postmarketos-ui-phosh"
|
2022-04-03 09:04:48 +00:00
|
|
|
install -Dm644 "$srcdir"/phoc.ini \
|
|
|
|
"$subpkgdir"/etc/phosh/phoc.ini
|
2021-07-03 19:21:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2021-10-07 19:02:13 +00:00
|
|
|
30b2265fee16faca4f5256adb6453989d1fe4b1c6f4c902e6f5397249ea218e9b1e8e118e039a0a9b0c446edfd6c58857a7562c5b855648e8ba428da33b51436 deviceinfo
|
2021-08-17 07:03:20 +00:00
|
|
|
40b507176edce2d141ff707aecad6f8d9636b828084e84d0015886d5e371127285bc80398fc13c1b88a7740c5b4694d2011286138249c95d27db0d9df3ca102f grub.cfg
|
2021-07-27 20:05:07 +00:00
|
|
|
0c7640df35d29a5c2e168d1e54b73a90d903e51b16d67ad08c3ccb41972209086844357f82cf6a2b6de977ebfb7e1099da01db71dc0733e90662ba315f0cd1d0 initfs-hook.sh
|
2021-07-03 19:21:31 +00:00
|
|
|
34f6eb789d4688985a262c519017e0712a90ca5acf89e6b3f39e33792a7982155261c6b4f0dbf41595b512da9dc7c9002adb69a550e80be349a374d086799916 pointercal
|
2022-05-05 14:50:55 +00:00
|
|
|
064129c96a617d3e7bfc56f399b9b46ca3d56325c3777ab28b1f7de242e8199cf33c03a9a071c83a833180a12d9d2abb5d32174f0d8d792a370e6320ec4d7808 phoc.ini
|
2021-07-03 19:21:31 +00:00
|
|
|
"
|