From b826079a12917b90521758cdd08885cd5a757e5e Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Mon, 15 Aug 2016 13:02:44 +0200 Subject: [PATCH] ngspice: correct install path for headers, install libngspice.dll.a --- mingw-w64-ngspice/PKGBUILD | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/mingw-w64-ngspice/PKGBUILD b/mingw-w64-ngspice/PKGBUILD index 316230c510..91ff951641 100644 --- a/mingw-w64-ngspice/PKGBUILD +++ b/mingw-w64-ngspice/PKGBUILD @@ -11,8 +11,8 @@ _realname=ngspice pkgbase=mingw-w64-${_realname} pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" pkgver=26 -pkgrel=1 -pkgdesc='Mixed-level/Mixed-signal circuit simulator based on Spice3f5, Ciber1b1, and Xspice.' +pkgrel=2 +pkgdesc='Mixed-level/Mixed-signal circuit simulator based on Spice3f5, Cider1b1, and Xspice.' url='http://ngspice.sourceforge.net' license=('BSD') arch=('any') @@ -61,7 +61,11 @@ package() { install -D -m644 "${srcdir}/${_realname}-${pkgver}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/LICENSE" install -D -m644 "${srcdir}/${_realname}-doc-${pkgver}/manual.pdf" "${pkgdir}${MINGW_PREFIX}/share/doc/${_realname}/manual.pdf" - cd "${srcdir}/build-shared-${CARCH}" - install -D -m755 "src/.libs/libngspice-0.dll" "${pkgdir}${MINGW_PREFIX}/bin" + # ngspice installs headers to /${PREFIX}/share/ngspice/include, which is not the usual location for *.h files + mv ${pkgdir}${MINGW_PREFIX}/share/ngspice/include ${pkgdir}${MINGW_PREFIX} + # library files have to be copied manually + cd "${srcdir}/build-shared-${CARCH}" + install -D -m755 src/.libs/libngspice-0.dll "${pkgdir}${MINGW_PREFIX}/bin" + install -D -m755 src/.libs/libngspice.dll.a "${pkgdir}${MINGW_PREFIX}/lib" }