summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 88586a8ee8db79238bdee4751c6bf77f426eac77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Maintainer: chn <g897331845@gmail.com>
pkgname=xtensor-io
pkgver=0.12.6
pkgrel=2
pkgdesc="xtensor plugin to read and write images, audio files, numpy (compressed) npz and HDF5"
arch=('any')
url="https://github.com/xtensor-stack/xtensor-io"
license=('BSD-3-Clause')
depends=('xtensor' 'openimageio' 'libsndfile' 'zlib' 'highfive' 'hdf5' 'blosc' 'gdal')
makedepends=('cmake')
source=(
  "${pkgname}-${pkgver}.tar.gz::https://github.com/xtensor-stack/xtensor-io/archive/${pkgver}.tar.gz"
  '001-install-libdeps.patch')

prepare() {
  cd "$srcdir"
  patch -Np0 < 001-install-libdeps.patch
}

build() {
	cd "${pkgname}-${pkgver}"
  mkdir -p build
  cd build
  cmake \
    -DCMAKE_INSTALL_PREFIX=${pkgdir}/usr \
    -DHAVE_OIIO=ON \
    -DHAVE_SndFile=ON \
    -DHAVE_ZLIB=ON \
    -DHAVE_HighFive=ON \
    -DHAVE_Blosc=ON \
    -DHAVE_GDAL=ON \
    ..
  make
}

package() {
	cd "${pkgname}-${pkgver}/build"
  make install
}

md5sums=('8ac452c45cb33104b381b01d7283d2ee'
         '0eb14beeb17d2f6d9813e29e78643c48')