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