mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-03 06:51:57 +01:00
47 lines
1.5 KiB
Plaintext
47 lines
1.5 KiB
Plaintext
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
|
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
|
|
pkgname=libmedc
|
|
pkgver=4.1.0
|
|
pkgrel=0
|
|
pkgdesc="Open source library for numerical simulation"
|
|
url="https://www.salome-platform.org/downloads/current-version"
|
|
arch="all"
|
|
license="GPL-3.0-or-later"
|
|
makedepends="cmake hdf5-dev swig python3-dev"
|
|
options="!check" #test suite is nonfunctional with python bindings
|
|
subpackages="$pkgname-dev $pkgname-doc $pkgname-python:_py"
|
|
source="
|
|
https://files.salome-platform.org/Salome/other/med-$pkgver.tar.gz
|
|
hdf5-1.12.patch
|
|
hdf-version.patch
|
|
cmake-config-dir.patch
|
|
"
|
|
builddir="$srcdir/med-$pkgver"
|
|
|
|
build() {
|
|
cmake \
|
|
-B ./build \
|
|
-DCMAKE_BUILD_TYPE=None \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DMEDFILE_BUILD_TESTS=OFF \
|
|
-DMEDFILE_BUILD_PYTHON=ON .
|
|
make -C build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" make -C build install
|
|
}
|
|
|
|
_py() {
|
|
pkgdesc="Python bindings for libmedc"
|
|
depends="python3"
|
|
amove usr/lib/python3*
|
|
}
|
|
|
|
sha512sums="
|
|
94d07663c2f6a3cd497f54b480c3d742476d2a25172feb567980c9e75d49f4661aa2c6aaf570470938265997154e348bc1608065b86d42afda52d4e6361fedf8 med-4.1.0.tar.gz
|
|
65e68a1ddf077f0406498cf26165d5012039c279d6a5da03e29f67edad3fa4bbf6bb0e767fb4bfe279db0f68d0e6ab67c1e973db4ea967ad014bb40dff51b36d hdf5-1.12.patch
|
|
665f765ed752aaa69b844c1428e551aa93e168f39436877afef0353674a0b8cb61f2774d9ab1de45701d1bb6e99b8654018d895f28ac09ad1d592463fd620133 hdf-version.patch
|
|
b794675b97d81a982f06ea3ac07f0a2c6f820cb829055aca9c3259e9157809e674e5de7f7f6502548f3c841f55b27a1521e3734d2aab9291933b131f53b67d59 cmake-config-dir.patch
|
|
"
|