From 0ce247f1b7fe90a8d2919a2386d9a79371bc8836 Mon Sep 17 00:00:00 2001 From: Aster Boese Date: Mon, 30 Sep 2024 21:15:23 -0400 Subject: [PATCH] xiaomi-raphael: move openrc scripts to subpackage (MR 5688) --- device/testing/device-xiaomi-raphael/APKBUILD | 8 +++++++- ...e-xiaomi-raphael-nonfree-firmware-openrc.post-install} | 0 2 files changed, 7 insertions(+), 1 deletion(-) rename device/testing/device-xiaomi-raphael/{device-xiaomi-raphael-nonfree-firmware.post-install => device-xiaomi-raphael-nonfree-firmware-openrc.post-install} (100%) diff --git a/device/testing/device-xiaomi-raphael/APKBUILD b/device/testing/device-xiaomi-raphael/APKBUILD index c2a3bbc41..bd423906c 100644 --- a/device/testing/device-xiaomi-raphael/APKBUILD +++ b/device/testing/device-xiaomi-raphael/APKBUILD @@ -2,7 +2,7 @@ pkgname=device-xiaomi-raphael pkgdesc="Xiaomi Mi 9T Pro / Redmi K20 Pro" pkgver=2 -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 " build() { @@ -52,6 +53,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" } diff --git a/device/testing/device-xiaomi-raphael/device-xiaomi-raphael-nonfree-firmware.post-install b/device/testing/device-xiaomi-raphael/device-xiaomi-raphael-nonfree-firmware-openrc.post-install similarity index 100% rename from device/testing/device-xiaomi-raphael/device-xiaomi-raphael-nonfree-firmware.post-install rename to device/testing/device-xiaomi-raphael/device-xiaomi-raphael-nonfree-firmware-openrc.post-install