diff --git a/mingw-w64-ghdl/PKGBUILD b/mingw-w64-ghdl/PKGBUILD index 80ecaa7248..d61874065c 100644 --- a/mingw-w64-ghdl/PKGBUILD +++ b/mingw-w64-ghdl/PKGBUILD @@ -2,7 +2,7 @@ _realname=ghdl pkgbase="mingw-w64-${_realname}" pkgname='__placeholder__' pkgver=2.0.0.r1392.g19babff18 -pkgrel=1 +pkgrel=2 pkgdesc='GHDL: the open-source analyzer, compiler, simulator and (experimental) synthesizer for VHDL' arch=('any') mingw_arch=('mingw32' 'mingw64' 'ucrt64') @@ -63,10 +63,11 @@ _package() { mkdir -p "${_lib}" make DESTDIR="${pkgdir}" install - sed -i -e 's@.*\(/mingw.*\)@\1@' "${_lib}"/libghdl.link + local PREFIX_DEPS=$(cygpath -am ${MINGW_PREFIX}) + sed -s "s|${PREFIX_DEPS}|${MINGW_PREFIX}|g" -i "${_lib}"/libghdl.link if [ "${CARCH}" = "x86_64" ]; then - sed -i -e 's@^-L.*\(/mingw.*\)@-L\1@' "${_lib}"/ghdl/grt.lst + sed -s "s|${PREFIX_DEPS}|${MINGW_PREFIX}|g" -i "${_lib}"/ghdl/grt.lst fi # License