bluetooth-raspberry-pi: move openrc scripts to subpackage (MR 5688)

This commit is contained in:
Aster Boese 2024-09-30 18:52:19 -04:00 committed by Clayton Craft
parent bbbf3a1062
commit 02066257eb
No known key found for this signature in database
GPG key ID: 4A4CED6D7EDF950A
2 changed files with 9 additions and 2 deletions

View file

@ -2,13 +2,13 @@
pkgname=bluetooth-raspberry-pi
pkgver=1
pkgrel=0
pkgrel=1
pkgdesc="Service and udev rule for built-in bluetooth on Raspberry Pi zero w, 3B, 3B plus"
url="https://github.com/RPi-Distro/bluez-firmware"
arch="armhf aarch64"
license="MIT"
depends="bluez bluez-deprecated"
install="$pkgname.post-install"
subpackages="$pkgname-openrc"
source="pi-bluetooth.openrc 50-bluetooth-hci-auto-poweron.rules"
options="!check !archcheck"
@ -18,5 +18,12 @@ package() {
install -Dm755 pi-bluetooth.openrc "$pkgdir"/etc/init.d/pi-bluetooth
}
openrc() {
install_if="$pkgname=$pkgver-r$pkgrel openrc"
install="$subpkgname.post-install"
default_openrc
}
sha512sums="34a50554466dd6096cbee9b14fc0d77b268b731cd45981e69394343dad25d6006dbe44bee30700d71b80c593d38699dfc870983ae7d862b9c09afb39c5d3b383 pi-bluetooth.openrc
511281ae8cbebd4390836ba83049a7fb793121d60ebd6c436bf36330e0aab738a827daf7fd6721cc71681e72b7ddaa581814264cc3bf759f07148fe5b657b981 50-bluetooth-hci-auto-poweron.rules"