Fix missing ngspice pkg-config file.
* Add make pkg-config to build dependencies. * Make sure ngspice.pc file gets added to package. * Bump package release version.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user