void-packages/srcpkgs/med/template
2019-12-24 12:24:39 +01:00

43 lines
1 KiB
Bash

# Template file for 'med'
pkgname=med
version=4.0.0
revision=3
build_style=gnu-configure
configure_args="--with-swig=yes --includedir=/usr/include/med"
pycompile_module=med
hostmakedepends="gcc-fortran swig"
makedepends="hdf5-devel python3-devel tk-devel"
depends="tk" # xmdump* are wish scripts
short_desc="Data Modelization and Exchanges"
maintainer="Piraty <piraty1@inbox.ru>"
license="GPL-3.0-only, LGPL-3.0-only"
homepage="https://www.salome-platform.org"
distfiles="http://files.salome-platform.org/Salome/other/med-${version}.tar.gz"
checksum=a474e90b5882ce69c5e9f66f6359c53b8b73eb448c5f631fa96e8cd2c14df004
nocross="hdf5 is nocross"
libmed-devel_package() {
short_desc+=" library - development files"
depends="libmed>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/libmed*.a
vmove usr/lib/libmed*.so
}
}
libmed_package() {
short_desc+=" library"
pkg_install() {
vmove usr/lib/libmed*
}
}
med-doc_package() {
short_desc+=" - Documentation"
archs=noarch
pkg_install() {
vmove usr/share/doc/med
}
}