device-pine64-pinephone: move openrc specifics into subpackage (MR 5364)

This commit is contained in:
jane400 2024-07-19 16:47:03 -07:00 committed by Clayton Craft
parent 87ccb5b57c
commit 35fc61416e
No known key found for this signature in database
GPG key ID: 4A4CED6D7EDF950A
3 changed files with 3 additions and 2 deletions

View file

@ -3,7 +3,7 @@
# Co-Maintainer: Jan Jasper de Kroon <jajadekroon@gmail.com>
pkgname=device-pine64-pinephone
pkgver=3
pkgrel=2
pkgrel=3
pkgdesc="PINE64 PinePhone"
url="https://postmarketos.org"
license="MIT"
@ -40,7 +40,7 @@ depends="
# FIXME: use upstream alsa-ucm-conf instead, once it works the same (pma#2115)
replaces="alsa-ucm-conf"
makedepends="devicepkg-dev dtc"
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-upgrade"
install="$pkgname.pre-upgrade"
source="
00_alsa_pinephone_dshare.conf
10-pinephone-proximity.rules
@ -177,6 +177,7 @@ nonfree_firmware() {
openrc() {
install_if="$pkgname=$pkgver-r$pkgrel eg25-manager-openrc"
install="$subpkgname.post-install $subpkgname.post-upgrade"
depends="eg25-manager-openrc"
install -Dm644 "$srcdir"/90-modem-eg25-openrc.rules -t \
"$subpkgdir"/usr/lib/udev/rules.d/