main/postmarketos-ui-fbkeyboard: add -openrc subpackage (MR 5374)

This commit is contained in:
Bart Ribbers 2024-07-23 22:09:07 +02:00 committed by Clayton Craft
parent 250b96f0fa
commit 3e26598a1b
No known key found for this signature in database
GPG key ID: 4A4CED6D7EDF950A
5 changed files with 14 additions and 3 deletions

View file

@ -2,7 +2,7 @@
# Maintainer: Ferenc Bakonyi <bakonyi.ferenc@gmail.com> # Maintainer: Ferenc Bakonyi <bakonyi.ferenc@gmail.com>
pkgname=postmarketos-ui-fbkeyboard pkgname=postmarketos-ui-fbkeyboard
pkgver=3 pkgver=3
pkgrel=0 pkgrel=1
pkgdesc="Plain framebuffer console with touchscreen keyboard support" pkgdesc="Plain framebuffer console with touchscreen keyboard support"
url="https://github.com/bakonyiferenc/fbkeyboard" url="https://github.com/bakonyiferenc/fbkeyboard"
arch="all" arch="all"
@ -13,7 +13,7 @@ depends="
postmarketos-base-ui postmarketos-base-ui
postmarketos-base-ui-networkmanager postmarketos-base-ui-networkmanager
" "
install="$pkgname.post-install $pkgname.pre-deinstall $pkgname.post-upgrade" subpackages="$pkgname-openrc"
source="fbkeyboard.init" source="fbkeyboard.init"
options="!check" # No tests options="!check" # No tests
@ -21,6 +21,17 @@ package() {
install -Dm755 "$srcdir"/fbkeyboard.init "$pkgdir"/etc/init.d/fbkeyboard install -Dm755 "$srcdir"/fbkeyboard.init "$pkgdir"/etc/init.d/fbkeyboard
} }
openrc() {
install_if="$pkgname=$pkgver-r$pkgrel openrc"
install="$subpkgname.post-install $subpkgname.pre-deinstall $subpkgname.post-upgrade"
depends="
fbkeyboard-openrc
networkmanager-openrc
"
mkdir -p "$subpkgdir"
}
sha512sums=" sha512sums="
bed2c48abfac7cc9bc16fb16cd3ae3a7048121d2867b961458f0d3a9520e16598c8115a7b00808bded64904956aea445fa31a3106c52bab87cfba3420be309b8 fbkeyboard.init bed2c48abfac7cc9bc16fb16cd3ae3a7048121d2867b961458f0d3a9520e16598c8115a7b00808bded64904956aea445fa31a3106c52bab87cfba3420be309b8 fbkeyboard.init
" "

View file

@ -0,0 +1 @@
postmarketos-ui-fbkeyboard-openrc.post-install

View file

@ -1 +0,0 @@
postmarketos-ui-fbkeyboard.post-install