Files
pmaports-rtwo/device/community/device-oneplus-enchilada/APKBUILD
T
Aster Boese 60545412b2 treewide: device/community: remove usage of nonfree-firmware subpackages
pkgname-nonfree-firmware packages have been not allowed for years, but nearly
every device package just didn't fix that. With the new grep check, these need
to be fixed no matter what.

The changing of `replaces=` to include the full name of the package and not
the pkgname variable is to work around limitations of the grep ci check, as it
cannot differentiate between a nonfree-firmware subpackage and a string
stating its replacement. A workaround for that is to use the whole package
name, as the grep check checks for the pkgname variable.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8958>
2026-07-19 20:36:39 +00:00

81 lines
2.4 KiB
Bash

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