void-packages/srcpkgs/netcdf/template
yopito 0addc4463f netcdf: missing entry in common/shlibs
Closes: #12408 [via git-merge-pr]
2018-03-14 21:26:09 +00:00

36 lines
1 KiB
Bash

# Template file for 'netcdf'
pkgname=netcdf
version=4.6.0
revision=2
wrksrc="netcdf-c-${version}"
configure_args="--enable-shared"
short_desc="Machine-independent format for representing scientific data"
maintainer="Hans Grob <woufrous@gmail.com>"
build_style=gnu-configure
hostmakedepends="m4"
makedepends="hdf5-devel libcurl-devel"
license="NetCDF"
homepage="https://www.unidata.ucar.edu/software/netcdf/"
distfiles="https://github.com/Unidata/netcdf-c/archive/v${version}.tar.gz"
checksum=6d740356399aac12290650325a05aec2fe92c1905df10761b2b0100994197725
post_install() {
# Remove references to hardening -specs.
sed -e "s|-specs=.*hardened-ld||g" -e "s|-specs=.*hardened-cc1||g" \
-i ${DESTDIR}/usr/lib/libnetcdf.settings
vlicense COPYRIGHT
}
netcdf-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - delevopment files"
pkg_install() {
vmove usr/bin/nc-config
vmove usr/share/man/man3
vmove usr/lib/pkgconfig
vmove usr/lib/libnetcdf.settings
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
}
}