pmaports/device/device-huawei-angler/APKBUILD
Danct12 a415548b1d
device/*: remove deviceinfo_nonfree (!935)
[ci:ignore-count]

Signed-off-by: Danct12 <danct12@disroot.org>
2020-02-10 00:58:03 +03:00

44 lines
1.6 KiB
Text

# Reference: <https://postmarketos.org/devicepkg>
# Contributor: Zhuowei Zhang <zhuoweizhang@yahoo.com>
pkgname=device-huawei-angler
pkgver=1
pkgrel=17
pkgdesc="Huawei Nexus 6P"
url="https://postmarketos.org"
arch="aarch64"
license="MIT"
depends="postmarketos-base linux-huawei-angler mkbootimg msm-fb-refresher mesa-dri-swrast"
makedepends="devicepkg-dev"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
source="
deviceinfo
90-android-touch-dev.rules
bcmdhd.cal
"
# Note: bcmdhd.cal is from https://github.com/LineageOS/android_device_huawei_angler/blob/752aaf664ab079f4ce9cbdeae6978f615d39b783/bcmdhd.cal
# TODO: this calibration file isn't valid for all variants of this device
# See https://github.com/LineageOS/android_device_huawei_angler/blob/cm-14.1/init.angler.rc#L450
options="!check !archcheck"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
install -D -m644 "$srcdir"/90-android-touch-dev.rules \
"$pkgdir"/etc/udev/rules.d/90-android-touch-dev.rules
install -D -m644 "$srcdir"/bcmdhd.cal \
"$pkgdir"/etc/wifi/bcmdhd.cal
}
nonfree_firmware() {
pkgdesc="Wifi firmware"
depends="firmware-aosp-broadcom-wlan"
mkdir "$subpkgdir"
}
sha512sums="5538cc7aced0e45252fdd0a9ee07be93e632a3a344e61805220a1c626bbcb98235c8a1fa84ff91a747602718a4aa4fc1298a23422e37e49c4bdaaa74aa4edb77 deviceinfo
262f9f3e28cbb28d236cf6edce4919766baabb18e5b0cf35d672d306efeaf12fd66ffba57e6d9bef0eee90203dc98f95aab17145e4c12383055afb58b922ae58 90-android-touch-dev.rules
61fe1f91d7b0b570b77fcca76503373cbac2515ca3dcc2f2543b910dfaeb1e935a11975f824f6a72001df4e63329356a6aff2d016e9b4f5d8f7b739fee065c4e bcmdhd.cal"