xiaomi-vayu: move openrc scripts to subpackage (MR 5688)

This commit is contained in:
Aster Boese 2024-09-30 21:17:27 -04:00 committed by Clayton Craft
parent f82ceef9f3
commit fbc404a5ac
No known key found for this signature in database
GPG key ID: 4A4CED6D7EDF950A
2 changed files with 7 additions and 1 deletions

View file

@ -3,7 +3,7 @@
pkgname=device-xiaomi-vayu
pkgdesc="Xiaomi POCO X3 Pro"
pkgver=1
pkgrel=1
pkgrel=2
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
@ -22,6 +22,7 @@ source="
subpackages="
$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-nonfree-firmware-openrc:nonfree_firmware_openrc
$pkgname-phosh
"
@ -47,6 +48,11 @@ nonfree_firmware() {
pd-mapper
tqftpserv
"
mkdir "$subpkgdir"
}
nonfree_firmware_openrc() {
install_if="$pkgname-nonfree-firmware=$pkgver-r$pkgrel openrc"
install="$subpkgname.post-install"
mkdir "$subpkgdir"
}