main/postmarketos-mkinitfs: add new trigger for osk-sdl (MR 1563)

We now trigger on files in /usr/share/postmarketos-mkinitfs-triggers.
This can be used by other packages like osk-sdl for which an updated
version would otherwise never be used in the initramfs
This commit is contained in:
Bart Ribbers 2020-09-12 12:30:41 +02:00 committed by Alexey Min
parent 4f6bec666c
commit 01019884fb
No known key found for this signature in database
GPG key ID: 0B19D2A65870B448
2 changed files with 26 additions and 6 deletions

View file

@ -1,13 +1,28 @@
# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
pkgname=postmarketos-mkinitfs
pkgver=0.14.1
pkgrel=0
pkgrel=1
pkgdesc="Tool to generate initramfs images for postmarketOS"
url="https://postmarketos.org"
# multipath-tools: kpartx
depends="busybox-extras lddtree cryptsetup kmod multipath-tools
device-mapper parted e2fsprogs e2fsprogs-extra osk-sdl charging-sdl triggerhappy xz bzip2 lz4"
depends="
busybox-extras
bzip2
charging-sdl
cmd:kpartx
cryptsetup
device-mapper
e2fsprogs
e2fsprogs-extra
kmod
lddtree
lz4
osk-sdl
parted
triggerhappy
xz
"
replaces="mkinitfs"
triggers="$pkgname.trigger=/etc/postmarketos-mkinitfs/hooks:/usr/share/kernel/*"
triggers="$pkgname.trigger=/etc/postmarketos-mkinitfs/hooks:/usr/share/kernel/*:/usr/share/postmarketos-mkinitfs-triggers"
source="00-default.modules
init.sh.in
init_functions.sh
@ -16,7 +31,7 @@ source="00-default.modules
mkinitfs_test.sh
"
arch="noarch"
license="GPL2"
license="GPL-2.0-or-later"
provides="mkinitfs=0.0.1"
package() {

View file

@ -19,6 +19,11 @@ for i in "$@"; do
rebuild_all="true"
break ;;
# osk-sdl change
/usr/share/postmarketos-mkinitfs-triggers)
rebuild_all="true"
break ;;
# Kernel flavor change
/usr/share/kernel/*)
flavor=${i##*/}