pmaports/device/testing/device-huawei-sturgeon/APKBUILD
Luca Weiss e8fd6d6635
device/*: rename partition_system to partition_rootfs (MR 4159)
With the pmbootstrap change let's change the deviceinfo variable names
to the non-deprecated version.

[ci:ignore-count]
[ci:skip-build]: already built successfully in CI
2024-02-07 09:45:34 +00:00

57 lines
1.4 KiB
Text

# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-huawei-sturgeon
pkgdesc="Huawei Watch"
pkgver=1
pkgrel=4
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="
mkbootimg
postmarketos-base
"
makedepends="devicepkg-dev"
source="
deviceinfo
networkmanager.conf
"
subpackages="
$pkgname-kernel-downstream:kernel_downstream
$pkgname-kernel-mainline:kernel_mainline
$pkgname-nonfree-firmware:nonfree_firmware
"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
kernel_downstream() {
pkgdesc="Downstream kernel"
depends="linux-huawei-sturgeon msm-fb-refresher"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
install -Dm644 "$srcdir"/networkmanager.conf \
"$subpkgdir"/etc/NetworkManager/conf.d/10-sturgeon.conf
}
kernel_mainline() {
pkgdesc="Close to mainline kernel"
depends="linux-postmarketos-qcom-msm8226"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
nonfree_firmware() {
pkgdesc="Firmware for WiFi, ADSP, etc."
depends="firmware-huawei-sturgeon-adsp firmware-huawei-sturgeon-wifi"
mkdir "$subpkgdir"
}
sha512sums="
7b0067ccb44d6c7db971fe40e654e898be5faab3233dc65a8a6a20043c89c26106bc94704d5fa77c51da06b3f32c01b5e89a17a7ff39300d7678a86838706319 deviceinfo
a19923f30ac1d328a85ab1162e44442da28dd1ae45529fb73e21d8004594487f61c8f5372e5bbaadfefd27fe27c8a22ce430b81891ac1965e5704bbfec108b82 networkmanager.conf
"