Received: from out0.migadu.com (out0.migadu.com [94.23.1.103]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 9BEBD780E96 for ; Fri, 26 Nov 2021 15:24:30 +0000 (UTC) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=salkield.uk; s=key1; t=1637940268; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=YghSK12iwxS7BK0v3fgchhM/aWnhK9SraXAJrMlqoRQ=; b=kjWQbzZNZwt85DPy2VHrBD7+1PqCLuFmXYt0RcUw9FL6ny27YPOeip0Rs30y2F54wh++JL 0Sb8M7/uTaQRqpw2UFzcUIDS7Tyf5LxhBkciHmG2+4vHmRix/utYbDIAu8xAyzMNuo/Ovn UfhTP0yD7OFuCn0HWLytW+vDILZNKyI= From: Edd Salkield To: alpine-aports@lists.alpinelinux.org Cc: Edd Salkield Subject: [PATCH v2] testing/hdf4: new aport Date: Fri, 26 Nov 2021 15:24:21 +0000 Message-Id: <20211126152421.28171-1-edd@salkield.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: edd@salkield.uk https://www.hdfgroup.org/solutions/hdf4/ HDF4 is a data model, library, and file format for storing and managing data --- Changes v1 -> v2: - Removed redundant patch - Updated config.guess - Added build and host configure flags - Updated pkgdesc - Removed question comment testing/hdf4/APKBUILD | 46 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 testing/hdf4/APKBUILD diff --git a/testing/hdf4/APKBUILD b/testing/hdf4/APKBUILD new file mode 100644 index 0000000000..d0c8c3a7a5 --- /dev/null +++ b/testing/hdf4/APKBUILD @@ -0,0 +1,46 @@ +# Contributor: Edd Salkield +# Maintainer: Edd Salkield +pkgname=hdf4 +pkgver=4.2.15 +pkgrel=0 +pkgdesc="Data model, library, and file format for storing and managing data" +url="https://www.hdfgroup.org/solutions/hdf4/" +arch="all" +license="custom" +options="!check" # Upstream tests appear broken +depends_dev="zlib-dev jpeg-dev portablexdr-dev" +makedepends="$depends_dev gfortran bison flex" +checkdepends="diffutils" # Flags not supported by busybox diff are used +subpackages="$pkgname-dev $pkgname-doc" +source="https://support.hdfgroup.org/ftp/HDF/releases/HDF"$pkgver"/src/hdf-"$pkgver".tar.bz2" +builddir="$srcdir"/"hdf-$pkgver" + +prepare() { + default_prepare + update_config_sub + update_config_guess +} + +build() { + # This flag required to treat Fortran argument mismatch as a warning, + # not an error. + # This got fixed in master https://github.com/HDFGroup/hdf4/issues/1 + # but isn't fixed yet in the latest release. + export FFLAGS="$FFLAGS -fallow-argument-mismatch" + export LIBS="$LIBS -lportablexdr" + ./configure --prefix=/usr --build=$CBUILD --host=$CHOST + make +} + +check() { + make check +} + +package() { + make DESTDIR="$pkgdir" install-recursive + install -Dm644 COPYING "$pkgdir"/usr/share/licenses/"$pkgname"/COPYING +} + +sha512sums=" +7d4037800ef8950ed74f225355ef5458444bed26fc189fbbd2ce7d36009998013ac1f6ba5d4e60834acf8f6f73550357238745acc35e162679919400a48191e9 hdf-4.2.15.tar.bz2 +" -- 2.34.1