diff --git a/mingw-w64-ngspice/PKGBUILD b/mingw-w64-ngspice/PKGBUILD index 07d1315da5..c7ad23a341 100644 --- a/mingw-w64-ngspice/PKGBUILD +++ b/mingw-w64-ngspice/PKGBUILD @@ -11,12 +11,12 @@ _realname=ngspice pkgbase=mingw-w64-${_realname} pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" pkgver=32 -pkgrel=1 +pkgrel=2 pkgdesc="Mixed-level/Mixed-signal circuit simulator based on Spice3f5, Cider1b1, and Xspice (mingw-w64)" url='https://ngspice.sourceforge.io/' license=('BSD') arch=('any') -makedepends=("${MINGW_PACKAGE_PREFIX}-gcc") +makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" "${MINGW_PACKAGE_PREFIX}-pkg-config") conflicts=(${MINGW_PACKAGE_PREFIX}-${_realname}-git) replaces=(${MINGW_PACKAGE_PREFIX}-${_realname}-git) depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs") @@ -61,6 +61,10 @@ package() { make install DESTDIR="${pkgdir}" install -D -m644 "${srcdir}/${_realname}-${pkgver}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/LICENSE" + # pkg-conf file has to be copied manually. Generated pkg-config file is the same for + # static and shared builds. + install -D -m644 "${srcdir}/build-shared-${CARCH}/ngspice.pc" "${pkgdir}${MINGW_PREFIX}/lib/pkgconfig/ngspice.pc" + # library files have to be copied manually cd "${srcdir}/build-shared-${CARCH}" install -D -m755 src/.libs/libngspice-0.dll "${pkgdir}${MINGW_PREFIX}/bin"