# Reference: # Maintainer: exkc pkgname=device-xiaomi-once pkgdesc="Xiaomi Mi Box 3" pkgver=1 pkgrel=1 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=" 6956e03cbf29dfcb046cfda7924b495f004570821e812a2e60fb1fa20224a34fae2e67dc99c5f0bd4c36d42958bb9093445539af2c1bd52a7e54aa889dc28d9b deviceinfo 52948c2884a6f6384e12b7a598f70878526d0d3293c214425170145231144ec7de805c038641741a4a5d75b50e554f6a3fa3769784a674217ed032f9b6a233c8 modules-initfs d17c248b7ac02450143965e9b8a506b54ac6e73413fd62b55fa356f5c7304acb1a831c7f8f8ce457d9aba097f6823d6ee97285657e07b667f8d0046435a0c45a asound.state "