netcdf: rebuild against hdf5-1.8.19

While I'm here:
- move nc-config and libnetcdf.settings to -devel
- remove hardening -specs from libnetcdf.settings
- small cleanup
This commit is contained in:
Alessio Sergi 2017-06-24 23:57:46 +02:00
parent 61735f1e9a
commit 8ca9eeeeb9
1 changed files with 9 additions and 6 deletions

View File

@ -1,22 +1,23 @@
# Template file for 'netcdf'
pkgname=netcdf
version=4.4.1.1
revision=1
short_desc="A machine-independent format for representing scientific data"
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"
depends="hdf5"
license="netcdf"
homepage="https://www.unidata.ucar.edu/software/netcdf/"
distfiles="https://github.com/Unidata/netcdf-c/archive/v${version}.tar.gz"
wrksrc="netcdf-c-${version}"
checksum=7f040a0542ed3f6d27f3002b074e509614e18d6c515b2005d1537fec01b24909
configure_args="--enable-shared"
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
}
@ -24,8 +25,10 @@ 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