archrelease: copy trunk to community-any
[ArchLinux/community.git] / pacredir / trunk / pacredir.install
blobc978c7bd07c84f30470928e9da7f88491007fafe
1 #!/bin/sh
3 message_server_error_limit() {
4 echo ' > With its latest release `pacman` now supports a server error limit,'
5 echo ' > which breaks `pacredir`. Rebuild `pacman` with that feature disabled'
6 echo ' > or install from this repository:'
7 echo ' > [pacredir]'
8 echo ' > Server = https://pkgbuild.com/~eworm/$repo/$arch/'
11 post_install() {
12 echo ' > For instructions visit: https://github.com/eworm-de/pacredir#usage'
13 message_server_error_limit
16 post_upgrade() {
17 # nothing is stored by pacredir, so restarting is safe
18 systemctl try-restart pacredir.service
20 # return if old package version greater 0.4.4-0...
21 (( $(vercmp $2 '0.4.4-0') > 0 )) && return
23 message_server_error_limit