# Reference: <https://postmarketos.org/devicepkg>
maintainer="WeirdTreeThing <bradyn127@protonmail.com>"
pkgname=device-xunlong-orangepi5-plus
pkgdesc="Xunlong Orange Pi 5 Plus"
pkgver=4
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
	linux-postmarketos-rockchip-rk3588
	postmarketos-base
	systemd-boot
"
makedepends="devicepkg-dev"
source="deviceinfo kernel-cmdline.conf modules-initfs"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="GPU/NIC firmware"
	depends="linux-firmware-arm linux-firmware-rtl_nic"
	mkdir "$subpkgdir"
}

sha512sums="
a4279c6471cc58781d542aef21ed236310490481a81ff21019f82c4eec4ae9877eb5a984f78232a003eeffde20ab9e9e89416f3b8b49a0ac5cc495df90ef05bc  deviceinfo
97e88eaa9b8e7989a20d2572479fe5d1fe0284de862da11c91b1f347099d5704673837db01a6b0c289fee0a2d7236f64fba31fd6001475f957c23203e34fd6fb  kernel-cmdline.conf
c787cb2c449bb493375e7c1519f1c6e0c35bce038277ca3032364c4867693f9099050611c0cbd7f22181f33dda11888d1f09e3e5272cf73fe3245aadfe9c2bd8  modules-initfs
"
