Skip to content

Commit

Permalink
ixion: optdepends on python
Browse files Browse the repository at this point in the history
use pyd extension for python module
  • Loading branch information
MehdiChinoune committed Jan 10, 2024
1 parent 0111944 commit 9ba73b3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions mingw-w64-ixion/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ _realname=ixion
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=0.19.0
pkgrel=1
pkgrel=2
pkgdesc="A general purpose formula parser & interpreter. (mingw-w64)"
arch=('any')
mingw_arch=('ucrt64' 'clang64' 'clangarm64')
Expand All @@ -14,11 +14,12 @@ msys2_references=(
)
license=('spdx:MPL-2.0')
depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs"
"${MINGW_PACKAGE_PREFIX}-boost"
"${MINGW_PACKAGE_PREFIX}-python")
"${MINGW_PACKAGE_PREFIX}-boost")
makedepends=("${MINGW_PACKAGE_PREFIX}-cc"
"${MINGW_PACKAGE_PREFIX}-autotools"
"${MINGW_PACKAGE_PREFIX}-mdds")
"${MINGW_PACKAGE_PREFIX}-mdds"
"${MINGW_PACKAGE_PREFIX}-python")
optdepends=("${MINGW_PACKAGE_PREFIX}-python: Python bindings")
source=("https://gitlab.com/ixion/ixion/-/archive/${pkgver}/${_realname}-${pkgver}.tar.bz2"
"001-fix-build-on-mingw.patch")
sha256sums=('c8b6315bae2d33a0e18b60004d625e4a5ea8a7326364f9f0b51cd6b49bdf93e8'
Expand Down Expand Up @@ -51,6 +52,8 @@ package() {

DESTDIR="${pkgdir}" make install

# Use *.pyd extension for python module
mv "${pkgdir}${MINGW_PREFIX}"/lib/python3.11/site-packages/ixion.{dll,pyd}
# remove unused import library
rm -f "${pkgdir}${MINGW_PREFIX}"/lib/python3.11/site-packages/ixion.dll.a

Expand Down

0 comments on commit 9ba73b3

Please sign in to comment.