summarylogtreecommitdiffstats
path: root/khefin.install
blob: 0c66f77d60c1afd49b46335f5af7e3a4f0204850 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
setcaps() {
  setcap cap_ipc_lock+ep usr/bin/khefin 2>/dev/null
}

pre_install() {
  printf "\nWARNING: development on this package will cease at the end of 2022 and it will be removed from AUR.\n"
  printf "See https://github.com/mjec/khefin/issues/42 for more information.\n\n"
}

post_install() {
  setcaps
}

pre_upgrade() {
  if [ "$(printf "0.5.1-1\n%s\n" "$2" | sort -n | tail -n1)" = "0.5.1-1" ]; then
    printf "\nWARNING: behavior of this package reading passphrases non-interactively has changed since version %s.\n" "$2"
    printf "See https://github.com/mjec/khefin/issues/29 for more information.\n\n"
  fi

  printf "\nWARNING: development on this package will cease at the end of 2022 and it will be removed from AUR.\n"
  printf "See https://github.com/mjec/khefin/issues/42 for more information.\n\n"
}

post_upgrade() {
  setcaps
}