pmaports/device/testing/device-xiaomi-riva/APKBUILD

43 lines
1.2 KiB
Text
Raw Normal View History

# Maintainer: Barnabas Czeman <trabarni@gmail.com>
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-xiaomi-riva
pkgdesc="Xiaomi Redmi 5A"
pkgver=0.2
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base linux-xiaomi-riva mkbootimg mdss-fb-init-hack msm-fb-refresher"
makedepends="devicepkg-dev"
source="
deviceinfo
directfbrc
fb.modes
"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
install -Dm644 "$srcdir"/fb.modes "$pkgdir"/etc/fb.modes
install -Dm644 "$srcdir"/directfbrc "$pkgdir"/etc/directfbrc
}
nonfree_firmware() {
pkgdesc="Wifi firmware"
depends="firmware-xiaomi-riva wcnss-wlan"
mkdir "$subpkgdir"
}
sha512sums="
1db2d85434b41671c204383f90fe6d6dd1e3c7e874f1bb8d5ba6c7cfc61f91866f641bfa8a8d537ae20b7c8cfdbe4975fe98f40f512c50dc7c0b6c767c2dec43 deviceinfo
3db3ec596e159be926ea2b5b2496c18e9bc7be24a64a232a56c89a0c9ee710aa2efb2b6fa9fc08efa34759e8242e6c629d08a4ce688ec8aa125830717c191515 directfbrc
2ed1dca5a0799f650dacde4babfb4d9139614bbfbfc46c16b5e0533093928ca0db02756e3afd0554a4a037e1f2860d172e7f03cf7ad7ddeec1406cfb7417e0f4 fb.modes
"