Skip to content
Snippets Groups Projects
Verified Commit f55c9c0d authored by Aster Boese's avatar Aster Boese Committed by Clayton Craft
Browse files

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

parent 056e257d
No related branches found
No related tags found
1 merge request!5688Move post-install scripts that contain openrc-specific commands to openrc subpackages
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
pkgname=device-xiaomi-scorpio pkgname=device-xiaomi-scorpio
pkgdesc="Xiaomi Mi Note 2" pkgdesc="Xiaomi Mi Note 2"
pkgver=3 pkgver=3
pkgrel=14 pkgrel=15
url="https://postmarketos.org" url="https://postmarketos.org"
license="MIT" license="MIT"
arch="aarch64" arch="aarch64"
...@@ -23,6 +23,7 @@ makedepends="devicepkg-dev" ...@@ -23,6 +23,7 @@ makedepends="devicepkg-dev"
subpackages=" subpackages="
$pkgname-phosh $pkgname-phosh
$pkgname-nonfree-firmware:nonfree_firmware $pkgname-nonfree-firmware:nonfree_firmware
$pkgname-nonfree-firmware-openrc:nonfree_firmware_openrc
" "
source=" source="
...@@ -56,13 +57,18 @@ nonfree_firmware() { ...@@ -56,13 +57,18 @@ nonfree_firmware() {
linux-firmware-qca linux-firmware-qca
soc-qcom-msm8996-nonfree-firmware soc-qcom-msm8996-nonfree-firmware
" "
install="$subpkgname.post-install"
mkdir "$subpkgdir" mkdir "$subpkgdir"
install -Dm644 "$srcdir/30-gpu-firmware.files" -t \ install -Dm644 "$srcdir/30-gpu-firmware.files" -t \
"$subpkgdir/usr/share/mkinitfs/files" "$subpkgdir/usr/share/mkinitfs/files"
} }
nonfree_firmware_openrc() {
install_if="$pkgname-nonfree-firmware=$pkgver-r$pkgrel openrc"
install="$subpkgname.post-install"
mkdir "$subpkgdir"
}
phosh() { phosh() {
install_if="$pkgname=$pkgver-r$pkgrel phosh" install_if="$pkgname=$pkgver-r$pkgrel phosh"
install -Dm644 "$srcdir"/phoc.ini \ install -Dm644 "$srcdir"/phoc.ini \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment