pre_install() {
  pre_update
}

post_install() {
  cd /bin
  /bin/mv cygwin1.dll cygwin1.dll.old && /proc/cygdrive/c/windows/system32/cmd.exe /c copy cygwin1.dll.new cygwin1.dll
}

pre_update() {
  cd /bin
  ./rm -f cygwin1.dll.old
}

post_update() {
  post_install
}

pre_remove() {
  error "###!!! You cannot remove the cygwin1.dll with pacman as it is a
requirement for pacman to function."
  error "###!!! You must exit all Cygwin processes and use the Windows command
processor or file explorer."
  exit 1
}
