summarylogtreecommitdiffstats
path: root/gr-air-modes-git.install
blob: ac1104404f339381dc54bb515652d00519419f85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
post_install() {
  pacman -Q python2-pyqt4 > /dev/null 2>&1
  _pyqt4=$?

  pacman -Q python2-pyqwt > /dev/null 2>&1
  _pyqwt=$?

  if [ "$_pyqt4" != "0" ] || [ "$_pyqwt" != "0" ]; then
    echo ""
    echo "You've installed gr-air-modes-git without GUI support."
    echo "If you want to install the GUI you will need to install"
    echo "python2-pyqt4 and python2-pyqwt and reinstall this package."
    echo ""
    echo "To install those packages as dependencies you can do the following:"
    echo "pacman -S --asdep python2-pyqt4 python2-pyqwt"
    echo ""
  fi
}

post_upgrade() {
  post_install
}