diff --git a/device/testing/bluetooth-raspberry-pi/APKBUILD b/device/testing/bluetooth-raspberry-pi/APKBUILD index a5b358252..870b9fa5f 100644 --- a/device/testing/bluetooth-raspberry-pi/APKBUILD +++ b/device/testing/bluetooth-raspberry-pi/APKBUILD @@ -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" diff --git a/device/testing/bluetooth-raspberry-pi/bluetooth-raspberry-pi.post-install b/device/testing/bluetooth-raspberry-pi/bluetooth-raspberry-pi-openrc.post-install similarity index 100% rename from device/testing/bluetooth-raspberry-pi/bluetooth-raspberry-pi.post-install rename to device/testing/bluetooth-raspberry-pi/bluetooth-raspberry-pi-openrc.post-install