pmaports/device/testing/device-mangopi-mq-pro/APKBUILD

77 lines
1.5 KiB
Text
Raw Normal View History

# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-mangopi-mq-pro
pkgdesc="MangoPi MQ-Pro"
pkgver=1
pkgrel=1
url="https://postmarketos.org"
license="MIT"
arch="riscv64"
# pmb:strict: avoid grub-related install error during build with pmbootstrap
options="!check !archcheck pmb:strict"
depends="
linux-postmarketos-allwinner-d1
postmarketos-base
u-boot-tools
u-boot-mangopi-mq-pro
"
makedepends="
devicepkg-dev
grub
grub-efi
"
source="
deviceinfo
grub_early.cfg
grub.cfg
"
build() {
devicepkg_build $startdir $pkgname
grub-mkimage \
--config="$srcdir/grub_early.cfg" \
--prefix="" \
--output="bootriscv64.efi" \
--format="riscv64-efi" \
--compression="xz" \
\
all_video \
cat \
configfile \
disk \
echo \
efi_gop \
fat \
ext2 \
gzio \
help \
iso9660 \
linux \
ls \
normal \
part_gpt \
part_msdos \
search \
search_label \
test \
true
}
package() {
devicepkg_package $startdir $pkgname
install -Dm644 "$srcdir"/bootriscv64.efi \
"$pkgdir"/boot/efi/boot/bootriscv64.efi
install -D "$srcdir"/grub.cfg \
"$pkgdir"/boot/grub/grub.cfg
}
sha512sums="
52f6ecb04e16cdef4d220f5402304e4df3ab8c448c84162a35822d6205802b9cd0571c4fa0ccfd62c44d4d9af8254a18c418249bd3a76ae42a05874d739f0c16 deviceinfo
95cbead11ff1c299e8f47af5a8b36c6e55ec8b41eb5dee54c9db28d707b42ffac94a81115edb960f844aa8fce417ec23a82d39e334090698e0fc45a3d880b471 grub_early.cfg
611908cde1084216ac5013b86019edc91cdae42c3557fd87e244df1815150a2b0a95e24951ee1cc43fc47771a136cf1c1afa95d9daf7ee17d3158a50bd2d1c0d grub.cfg
"