pmaports/device/testing/device-xiaomi-tulip/APKBUILD
Pablo Correa Gómez 9ca0b50688
device/*: rebuild all devices with kernel subpackages (MR 4596)
[ci:ignore-count]
[ci:skip-build]: already built successfully in CI
2023-12-07 09:03:22 +01:00

52 lines
1.3 KiB
Text

# Maintainer: m0rf30 <morf3089@gmail.com>
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-xiaomi-tulip
pkgdesc="Xiaomi Redmi Note 6 Pro"
pkgver=1
pkgrel=3
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base mkbootimg"
makedepends="devicepkg-dev"
subpackages="
$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-kernel-mainline:kernel_mainline
$pkgname-modem
"
source="
deviceinfo
modules-initfs
"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
nonfree_firmware() {
pkgdesc="Wi-Fi, ADSP Firmware"
depends="firmware-xiaomi-tulip"
mkdir "$subpkgdir"
}
kernel_mainline() {
pkgdesc="Close to mainline; for kernel development only (most features aren't working)"
depends="linux-postmarketos-qcom-sdm660"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
modem() {
depends="rmtfs rmtfs-openrc msm-modem-uim-selection"
install_if="$pkgname=$pkgver-r$pkgrel $pkgname-nonfree-firmware"
mkdir "$subpkgdir"
}
sha512sums="
6788f1aa1740359f8f171f916ce92c521ed984bb444f0405bdec2c57c0c55e629540f050c5bff80945147989ca440807dd8b173d2c57e4ab86308097347aae61 deviceinfo
966bea41747858689abad7585985d8fbbee93a91ccf479adbde4ecc2c86b17c1895ccd0a845ec238e63bca66b73ce12c6fada48dd23dbd0e6b5eaa38bea2a3bd modules-initfs
"