# Maintainer: Tobias Powalowski # ALARM: Kevin Mihelich # - build v7 with vfpv3, neon is broken pkgname=openexr pkgver=3.2.2 pkgrel=1 pkgdesc='A high dynamic-range image file format library' url='https://www.openexr.com/' arch=(x86_64) license=(BSD) depends=(gcc-libs glibc imath libdeflate) makedepends=(cmake) source=(https://github.com/openexr/openexr/archive/v$pkgver/$pkgname-$pkgver.tar.gz) sha256sums=('65de6459c245a4977ce4d7777e70b30d7ef48ec38e0cfb10205706ca50a8bf2e') build() { [[ $CARCH == "armv7h" ]] && CFLAGS=`echo $CFLAGS | sed -e 's/neon/vfpv3/'` && CXXFLAGS="$CFLAGS" cmake -B build -S $pkgname-$pkgver \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=None cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build install -Dm644 $pkgname-$pkgver/LICENSE.md -t "$pkgdir"/usr/share/licenses/$pkgname }