diff --git a/mingw-w64-ngspice/PKGBUILD b/mingw-w64-ngspice/PKGBUILD index a015259e0bfbd..4a98658497b40 100644 --- a/mingw-w64-ngspice/PKGBUILD +++ b/mingw-w64-ngspice/PKGBUILD @@ -29,6 +29,7 @@ makedepends=( "${MINGW_PACKAGE_PREFIX}-autotools" "${MINGW_PACKAGE_PREFIX}-cc" ) +install="${_realname}-${MSYSTEM}.install" source=( "https://downloads.sourceforge.net/project/${_realname}/ng-spice-rework/${pkgver}/${_realname}-${pkgver}.tar.gz" "https://downloads.sourceforge.net/project/${_realname}/ng-spice-rework/${pkgver}/${_realname}-doc-${pkgver}.tar.gz" diff --git a/mingw-w64-ngspice/ngspice-CLANG32.install b/mingw-w64-ngspice/ngspice-CLANG32.install new file mode 100644 index 0000000000000..4a871df2684dc --- /dev/null +++ b/mingw-w64-ngspice/ngspice-CLANG32.install @@ -0,0 +1,9 @@ +post_install() { + local _prefix="/clang32" + local _prefix_win="$(cygpath -m "${_prefix}")" + sed -s "s|${_prefix}|${_prefix_win}|g" -i "${_prefix}/share/ngspice/scripts/spinit" +} + +post_upgrade() { + post_install +} diff --git a/mingw-w64-ngspice/ngspice-CLANG64.install b/mingw-w64-ngspice/ngspice-CLANG64.install new file mode 100644 index 0000000000000..6166d167f597e --- /dev/null +++ b/mingw-w64-ngspice/ngspice-CLANG64.install @@ -0,0 +1,9 @@ +post_install() { + local _prefix="/clang64" + local _prefix_win="$(cygpath -m "${_prefix}")" + sed -s "s|${_prefix}|${_prefix_win}|g" -i "${_prefix}/share/ngspice/scripts/spinit" +} + +post_upgrade() { + post_install +} diff --git a/mingw-w64-ngspice/ngspice-CLANGARM64.install b/mingw-w64-ngspice/ngspice-CLANGARM64.install new file mode 100644 index 0000000000000..10641137ead61 --- /dev/null +++ b/mingw-w64-ngspice/ngspice-CLANGARM64.install @@ -0,0 +1,9 @@ +post_install() { + local _prefix="/clangarm64" + local _prefix_win="$(cygpath -m "${_prefix}")" + sed -s "s|${_prefix}|${_prefix_win}|g" -i "${_prefix}/share/ngspice/scripts/spinit" +} + +post_upgrade() { + post_install +} diff --git a/mingw-w64-ngspice/ngspice-MINGW32.install b/mingw-w64-ngspice/ngspice-MINGW32.install new file mode 100644 index 0000000000000..bcce2261e76d3 --- /dev/null +++ b/mingw-w64-ngspice/ngspice-MINGW32.install @@ -0,0 +1,9 @@ +post_install() { + local _prefix="/mingw32" + local _prefix_win="$(cygpath -m "${_prefix}")" + sed -s "s|${_prefix}|${_prefix_win}|g" -i "${_prefix}/share/ngspice/scripts/spinit" +} + +post_upgrade() { + post_install +} diff --git a/mingw-w64-ngspice/ngspice-MINGW64.install b/mingw-w64-ngspice/ngspice-MINGW64.install new file mode 100644 index 0000000000000..0bdd2e15eb087 --- /dev/null +++ b/mingw-w64-ngspice/ngspice-MINGW64.install @@ -0,0 +1,9 @@ +post_install() { + local _prefix="/mingw64" + local _prefix_win="$(cygpath -m "${_prefix}")" + sed -s "s|${_prefix}|${_prefix_win}|g" -i "${_prefix}/share/ngspice/scripts/spinit" +} + +post_upgrade() { + post_install +} diff --git a/mingw-w64-ngspice/ngspice-UCRT64.install b/mingw-w64-ngspice/ngspice-UCRT64.install new file mode 100644 index 0000000000000..20b68e40617a9 --- /dev/null +++ b/mingw-w64-ngspice/ngspice-UCRT64.install @@ -0,0 +1,9 @@ +post_install() { + local _prefix="/ucrt64" + local _prefix_win="$(cygpath -m "${_prefix}")" + sed -s "s|${_prefix}|${_prefix_win}|g" -i "${_prefix}/share/ngspice/scripts/spinit" +} + +post_upgrade() { + post_install +}