oneplus-fajita: move openrc scripts to subpackage (MR 5688)

This commit is contained in:
Aster Boese
2024-11-04 10:52:35 -08:00
committed by Clayton Craft
parent 9a095777ba
commit 8251a6956f
4 changed files with 13 additions and 5 deletions
@@ -4,7 +4,7 @@
pkgname=device-oneplus-fajita
pkgdesc="OnePlus 6T"
pkgver=14
pkgrel=0
pkgrel=1
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
@@ -26,7 +26,11 @@ source="
q6voiced.conf
81-libssc-oneplus-fajita.rules
"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware $pkgname-pmtest"
subpackages="
$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-nonfree-firmware-openrc:nonfree_firmware_openrc
$pkgname-pmtest
"
build() {
devicepkg_build $startdir $pkgname
@@ -48,11 +52,15 @@ nonfree_firmware() {
soc-qcom-sdm845-modem
"
replaces="hexagonrpcd-openrc"
install -Dm644 "$srcdir"/81-libssc-oneplus-fajita.rules -t "$subpkgdir"/usr/lib/udev/rules.d/
}
nonfree_firmware_openrc() {
install_if="$pkgname-nonfree-firmware=$pkgver-r$pkgrel openrc"
install="$subpkgname.post-install $subpkgname.post-upgrade"
mkdir "$subpkgdir"
install -Dm644 q6voiced.conf "$subpkgdir"/etc/conf.d/q6voiced
install -Dm644 "$srcdir"/81-libssc-oneplus-fajita.rules -t "$subpkgdir"/usr/lib/udev/rules.d/
install -Dm644 "$srcdir"/hexagonrpcd.confd "$subpkgdir"/etc/conf.d/hexagonrpcd-sdsp
}
@@ -0,0 +1 @@
./device-oneplus-fajita-nonfree-firmware-openrc.post-install
@@ -1 +0,0 @@
device-oneplus-fajita-nonfree-firmware.post-install