pine64-pinephonepro: move openrc scripts to subpackage (MR 5688)

This commit is contained in:
Aster Boese 2024-09-30 17:41:07 -04:00 committed by Clayton Craft
parent 7a9b5a205d
commit 0125e65f90
No known key found for this signature in database
GPG key ID: 4A4CED6D7EDF950A
4 changed files with 10 additions and 6 deletions

View file

@ -3,7 +3,7 @@
pkgname=device-pine64-pinephonepro
pkgdesc="PINE64 PinePhone Pro"
pkgver=4
pkgrel=1
pkgrel=2
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
@ -25,13 +25,10 @@ makedepends="
subpackages="
$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-gnome
$pkgname-openrc
$pkgname-sway
$pkgname-x11
"
install="
$pkgname.post-install
$pkgname.post-upgrade
"
source="
51_keyboard.gschema.override
90-modem-eg25.rules
@ -123,6 +120,13 @@ gnome() {
"$subpkgdir"/usr/share/glib-2.0/schemas
}
openrc() {
install_if="$pkgname=$pkgver-r$pkgrel openrc"
install="$subpkgname.post-install $subpkgname.post-upgrade"
mkdir -p "$subpkgdir"
}
sway() {
install_if="$pkgname=$pkgver-r$pkgrel sway-virtual"
install -Dm644 "$srcdir"/sway-pinephone-keyboard.conf \

View file

@ -0,0 +1 @@
./device-pine64-pinephonepro-openrc.post-install

View file

@ -1 +0,0 @@
device-pine64-pinephonepro.post-install