summarylogtreecommitdiffstats
path: root/wicd.install
blob: d3bc93849707bc953d676f4f8dfea3d2b8fb6f96 (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
27
28
29
30
31
32
33
PKGNAME=wicd

repo_info() {
    echo
    echo "============================="
    echo "You can download the package in repo:"
    echo "[home_alextalker_aur_Arch_Extra]"
    echo "SigLevel = Never"
    echo 'Server = http://download.opensuse.org/repositories/home:/alextalker:/aur/Arch_Extra/$arch'
    echo "============================="
}

pre_remove () {
    for pyo in $(pacman -Qql $PKGNAME  | grep \.py$ | sed 's|.py$|.pyo|g'); do
        if [ -f "$pyo" ]; then
            rm "$pyo"
        fi
    done
}

post_install() {
  repo_info
  echo "==> You need to restart the dbus service after "
  echo "==> upgrading wicd."
  echo "==> Disable networkmanager, dhcpcd or other networking " 
  echo "==> utility and add 'wicd' to your systemd configuration."
  echo
  echo "==> To run: wicd-cli or wicd-curses"    
}

post_upgrade() {
    repo_info
}