# Reference: # Maintainer: pkgname=device-xiaomi-once pkgdesc="Xiaomi Mi Box 3" pkgver=1 pkgrel=4 url="https://postmarketos.org" license="MIT" arch="aarch64" options="!check !archcheck" depends=" postmarketos-base linux-postmarketos-amlogic soc-amlogic-s905 u-boot-amlogic-s905x-tv " makedepends="devicepkg-dev" source=" deviceinfo modules-initfs asound.state" subpackages="$pkgname-nonfree-firmware:nonfree_firmware" build() { devicepkg_build $startdir $pkgname } package() { devicepkg_package $startdir $pkgname install -D -m644 "$srcdir"/asound.state \ "$pkgdir"/var/lib/alsa/asound.state } nonfree_firmware() { pkgdesc="Wi-Fi firmware, Bluetooth firmware, vdec firmware" depends="firmware-xiaomi-once linux-firmware-meson" mkdir "$subpkgdir" } sha512sums=" c86efe9b359bfce4371203fc15cf2eb5c362cdf7855be6db8dc3b8831e521a9cee8defdddf692996af0112e6e9c8c6af2979b5082df675ec9ea44eb5af0465fa deviceinfo 52948c2884a6f6384e12b7a598f70878526d0d3293c214425170145231144ec7de805c038641741a4a5d75b50e554f6a3fa3769784a674217ed032f9b6a233c8 modules-initfs d17c248b7ac02450143965e9b8a506b54ac6e73413fd62b55fa356f5c7304acb1a831c7f8f8ce457d9aba097f6823d6ee97285657e07b667f8d0046435a0c45a asound.state "