raspberry-pi0: move openrc scripts to subpackages (MR 5688)

This commit is contained in:
Aster Boese 2024-09-30 20:29:38 -04:00 committed by Clayton Craft
parent 0bc1d4cd0d
commit 902dcc4d52
No known key found for this signature in database
GPG key ID: 4A4CED6D7EDF950A
4 changed files with 10 additions and 3 deletions

View file

@ -2,14 +2,14 @@
pkgname=device-raspberry-pi0
pkgdesc="Raspberry Pi Zero"
pkgver=1
pkgrel=1
pkgrel=2
url="https://postmarketos.org"
license="MIT"
arch="armhf"
options="!check !archcheck"
depends="postmarketos-base raspberrypi-bootloader linux-rpi bluetooth-raspberry-pi"
makedepends="devicepkg-dev"
install="$pkgname.post-install $pkgname.post-upgrade"
subpackages="$pkgname-openrc"
source="deviceinfo modules-initfs config.txt usercfg.txt cmdline.txt 95-vchiq-permissions.rules"
build() {
@ -25,6 +25,13 @@ package() {
"$pkgdir"/etc/udev/rules.d/95-vchiq-permissions.rules
}
openrc() {
install_if="$pkgname=$pkgver-r$pkgrel openrc"
install="$subpkgname.post-install $subpkgname.post-upgrade"
mkdir -p "$subpkgdir"
}
sha512sums="
98927951d5c1302798e5af1f79170eb4236d40978fa84f63748b8aba51eef86f5cb8597d63ca37b8bf12bbc3382d09ed8ec842261d3135734f497c22898d2ea9 deviceinfo
09540960017460809c091457ba9f96b0d12c8a12ef300b77017651bf1492e66440244502ccf22fb8c58d0362751366ef1acf1c5a60b0698c1dda530f0945c17f modules-initfs

View file

@ -0,0 +1 @@
./device-raspberry-pi0-openrc.post-install

View file

@ -1 +0,0 @@
device-raspberry-pi0.post-install