cp "${WORKDIR}"/epic4-local "${EROOT}"/usr/share/epic/script/local This is 100% wrong. It breaks binary packages, and even in source build there is no guarantee that S wouldn't be removed before postinst.
Package removed.