mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 02:14:37 +08:00
38 lines
983 B
Bash
38 lines
983 B
Bash
pkgname=hdf5
|
|
pkgver=1.10.3
|
|
pkgrel=2
|
|
arch=('x86_64')
|
|
pkgdesc="General purpose library and file format for storing scientific data"
|
|
url="http://www.hdfgroup.org/HDF5/"
|
|
license=('custom')
|
|
depends=('zlib' 'sh')
|
|
source=("https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.3/src/$pkgname-$pkgver.tar.bz2")
|
|
options=('!libtool')
|
|
md5sums=('56c5039103c51a40e493b43c504ce982')
|
|
|
|
build() {
|
|
cd $srcdir/${pkgname}-${pkgver/_/-}
|
|
# export CFLAGS="${CFLAGS/O2/O0}"
|
|
# export CXXFLAGS="${CFLAGS}"
|
|
./configure --prefix=/usr --disable-static \
|
|
--enable-unsupported \
|
|
--enable-hl \
|
|
--enable-threadsafe \
|
|
--enable-build-mode=production \
|
|
--with-pic \
|
|
--docdir=/usr/share/doc/hdf5/ \
|
|
--with-pthread=/usr/lib/ \
|
|
--disable-sharedlib-rpath
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/${pkgname}-${pkgver/_/-}
|
|
|
|
make prefix=$pkgdir/usr install
|
|
|
|
install -Dm644 $srcdir/${pkgname}-${pkgver/_/-}/COPYING \
|
|
$pkgdir/usr/share/licenses/${pkgname}/LICENSE
|
|
}
|
|
|