Files
pmaports-rtwo/device/community/device-oneplus-enchilada/APKBUILD
T
Achill Gilgenast ecd710af96 */*: move to maintainer= variables
* Also move right above pkgname=
* Move Co-Maintainer lines above maintainer=
* Remove empty lines in the header

pmbootstrap 3.7+ & abuild supports maintainer= variables.

See also https://gitlab.alpinelinux.org/alpine/tsc/-/issues/88

[ci:skip-build]: no pkgver/pkgrel changes
[ci:ignore-count]: intended
[ci:skip-vercheck]: no functional changes
[skip ci]: false positives

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7723>
2026-01-12 17:01:35 +01:00

89 lines
2.7 KiB
Bash

# Reference: <https://postmarketos.org/devicepkg>
maintainer="Casey Connolly <kcxt@postmarketos.org>"
pkgname=device-oneplus-enchilada
pkgdesc="OnePlus 6"
pkgver=18
pkgrel=1
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
firmware-oneplus-sdm845>=9
hexagonrpcd>=0.3.2-r3
linux-postmarketos-qcom-sdm845
mkbootimg
postmarketos-base
alsa-ucm-conf-sdm845
soc-qcom
soc-qcom-modem
soc-qcom-pd-mapper
soc-qcom-qbootctl
unl0kr-fbforcerefresh
"
makedepends="devicepkg-dev"
source="
deviceinfo
hexagonrpcd.confd
modules-initfs
q6voiced.conf
80-device-oneplus-enchilada.preset
81-libssc-oneplus-enchilada.rules
"
install="
$pkgname-openrc.post-install
$pkgname-openrc.post-upgrade
"
subpackages="
$pkgname-pmtest
$pkgname-openrc
$pkgname-systemd
"
build() {
devicepkg_build $startdir $pkgname
}
package() {
replaces="$pkgname-nonfree-firmware"
devicepkg_package $startdir $pkgname
install -Dm644 "$srcdir"/81-libssc-oneplus-enchilada.rules \
-t "$pkgdir"/usr/lib/udev/rules.d/
install -Dm644 "$srcdir"/q6voiced.conf \
"$pkgdir"/etc/conf.d/q6voiced
install -Dm644 "$srcdir"/hexagonrpcd.confd \
"$pkgdir"/usr/share/hexagonrpcd/hexagonrpcd-sdsp.conf
}
openrc() {
install_if="$pkgname=$pkgver-r$pkgrel openrc"
depends="hexagonrpcd-openrc"
mkdir -p "$subpkgdir"
}
pmtest() {
depends="bootrr qrtr firmware-oneplus-sdm845 postmarketos-test-unl0kr"
install_if="$pkgname=$pkgver-r$pkgrel postmarketos-mkinitfs-hook-ci"
install="$subpkgdir/$subpkgname.post-install"
mkdir -p "$subpkgdir"
devicepkg_pmtest_post_install "ttyMSM0,115200" > "$subpkgdir/$subpkgname.post-install"
}
systemd() {
install -Dm644 -t "$subpkgdir"/usr/lib/systemd/system-preset \
"$srcdir"/80-device-oneplus-enchilada.preset
default_systemd
}
sha512sums="
5e01100ec14d8492909cc3ea62c1d1bf1859aaff11e134bdc00a96d5458636f57469b144df4a724146e3bf40044db5f4646e9e44ab195466d7850c3616e00b59 deviceinfo
c8d3026e9f803ea823e35f83dab66fa8545e99af9655576476c194567113084d78200feab46f84983a2dad608ca55c0a4a66e36406c6d64023c0aec59307d146 hexagonrpcd.confd
ea8709aa214cffaefb1d486c0c47044537446faebff16efb3b015623f043f730b7121e401c676e43aa8868bd6c630fc8a2d7dbf5fb082490e9b5493e0405b66d modules-initfs
fe9871c325a38c0cadc9631870801ec15ab9f5b786ee854325b93eb3d23e7d8b1ac4f1075572ffcd225d8ec514dec09b986972ddff12a89260c0218af6de7887 q6voiced.conf
a72de3293bc59e0afa0114d74030e4e725959f7619879ab616b0164595d57033affc3d1d4ccc9d8bc191b177a4c1593c1ad0a19fe7e452c3e0c9c847135c1102 80-device-oneplus-enchilada.preset
2c16ba75e0077b2b1eaefa4c73b287475505a1aeb291ec29316d41cc094277320f9d2aaabfd91eb1dc0f488ab2d61a94faef16e7afe0f1e226779113761b9a37 81-libssc-oneplus-enchilada.rules
"