mirror of
https://codeberg.org/privacy1st/arch
synced 2025-01-11 03:46:05 +01:00
26 lines
483 B
Plaintext
26 lines
483 B
Plaintext
## arg 1: the new package version
|
|
pre_install() {
|
|
# Check if system is SSE4.2 capable
|
|
# lscpu is part of util-linux which is a dependency of mkinitcpio
|
|
lscpu | grep sse4_2 >/dev/null 2>&1
|
|
}
|
|
|
|
## arg 1: the new package version
|
|
post_install() {
|
|
holo apply
|
|
mkinitcpio -P
|
|
}
|
|
|
|
## arg 1: the new package version
|
|
## arg 2: the old package version
|
|
post_upgrade() {
|
|
holo apply
|
|
mkinitcpio -P
|
|
}
|
|
|
|
## arg 1: the old package version
|
|
post_remove() {
|
|
holo apply
|
|
mkinitcpio -P
|
|
}
|