2021-05-03 13:26:54 +02:00
|
|
|
## 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
|
|
|
|
}
|
|
|
|
|
2021-05-02 21:58:11 +02:00
|
|
|
## arg 1: the new package version
|
|
|
|
post_install() {
|
|
|
|
holo apply
|
2021-05-03 13:26:54 +02:00
|
|
|
mkinitcpio -P
|
2021-05-02 21:58:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
## arg 1: the new package version
|
|
|
|
## arg 2: the old package version
|
|
|
|
post_upgrade() {
|
|
|
|
holo apply
|
2021-05-03 13:26:54 +02:00
|
|
|
mkinitcpio -P
|
2021-05-02 21:58:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
## arg 1: the old package version
|
|
|
|
post_remove() {
|
|
|
|
holo apply
|
2021-05-03 13:26:54 +02:00
|
|
|
mkinitcpio -P
|
2021-05-02 21:58:11 +02:00
|
|
|
}
|