diff options
author | Michel Zou | 2023-07-04 22:16:23 +0200 |
---|---|---|
committer | Michel Zou | 2023-07-04 22:16:23 +0200 |
commit | b8edc7173d1120c4db6dac9a4b6e536dcbe9af1d (patch) | |
tree | b8f1defe60d84287b72d7626b38759c6664e6d5a | |
download | aur-b8edc7173d1120c4db6dac9a4b6e536dcbe9af1d.tar.gz |
9.11.0
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 41 |
2 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..202473ed5489 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = mingw-w64-medcoupling + pkgdesc = Field data manipulation library (mingw-w64) + pkgver = 9.11.0 + pkgrel = 1 + url = https://www.salome-platform.org/downloads + arch = any + license = LGPL + makedepends = mingw-w64-cmake + makedepends = mingw-w64-boost + depends = mingw-w64-med + depends = mingw-w64-metis + depends = mingw-w64-scotch + depends = mingw-w64-libxml2 + options = !buildflags + options = !strip + options = staticlibs + source = git+https://git.salome-platform.org/gitpub/tools/medcoupling.git#tag=V9_11_0 + md5sums = SKIP + +pkgname = mingw-w64-medcoupling diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..424a161020fa --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +pkgname=mingw-w64-medcoupling +pkgver=9.11.0 +pkgrel=1 +pkgdesc='Field data manipulation library (mingw-w64)' +arch=('any') +url='https://www.salome-platform.org/downloads' +license=('LGPL') +depends=('mingw-w64-med' 'mingw-w64-metis' 'mingw-w64-scotch' 'mingw-w64-libxml2') +makedepends=('mingw-w64-cmake' 'mingw-w64-boost') +options=('!buildflags' '!strip' 'staticlibs') +source=("git+https://git.salome-platform.org/gitpub/tools/medcoupling.git#tag=V9_11_0") +md5sums=(SKIP) +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +prepare() { + cd "${srcdir}/medcoupling" + rm -rf configuration + git clone --depth 1 -b V9_11_0 https://git.salome-platform.org/gitpub/tools/configuration.git + sed -i "s|Ws2_32.lib|ws2_32|g" configuration/cmake/SalomeSetupPlatform.cmake + sed -i "s|Userenv|userenv|g" configuration/cmake/SalomeSetupPlatform.cmake +} + +build() { + cd "${srcdir}/medcoupling" + for _arch in ${_architectures}; do + mkdir -p build-${_arch} && pushd build-${_arch} + ${_arch}-cmake -DMEDCOUPLING_BUILD_DOC=OFF -DMEDCOUPLING_ENABLE_PYTHON=OFF -DMEDCOUPLING_BUILD_TESTS=OFF \ + -DCONFIGURATION_ROOT_DIR="$srcdir"/medcoupling/configuration .. + make + popd + done +} + +package() { + for _arch in $_architectures; do + cd "$srcdir"/medcoupling/build-${_arch} + make install DESTDIR="$pkgdir" + ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll + ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a + done +} |