summarylogtreecommitdiffstats
path: root/.install
blob: 0e4a3a0a41f0abd5d81ce732792b5450295e401d (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
#==> Auto-generated file from PKGBUILD <==#
pkgname="xfce-simple-dark"
_home="/home/$(logname)"
_pretty_pkgname="Xfce-Simple-Dark"
_themes="$_home/.themes"
_dstdir="$_home/.local/share/themes/$_pretty_pkgname"
_geany_config="$_home/.config/geany/colorschemes"
_geany_file="simple-dark.conf"

post_remove() {
  # Remove previous version source
  if [ -d $_dstdir ]; then
    echo "Remove $_dstdir"
    rm -r $_dstdir
  fi
  # Remove previous version links
  for ln in $_themes/$_pretty_pkgname*; do
    link=$_themes/$(basename $ln)
    if [ -L $link ]; then
      echo "Unlink $link"
      unlink $link
    fi
  done
  if [ -L $_geany_config/$_geany_file ]; then
    echo "Unlink $_geany_config/$_geany_file"
    unlink $_geany_config/$_geany_file
  fi
}