2023-03-11 01:20:29 +00:00
|
|
|
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - build v7 with vfpv3, neon is broken
|
|
|
|
|
|
|
|
pkgname=openexr
|
2024-03-07 13:22:35 +00:00
|
|
|
pkgver=3.2.3
|
2023-09-27 18:51:01 +00:00
|
|
|
pkgrel=1
|
2023-03-11 01:20:29 +00:00
|
|
|
pkgdesc='A high dynamic-range image file format library'
|
|
|
|
url='https://www.openexr.com/'
|
|
|
|
arch=(x86_64)
|
2024-03-07 13:22:35 +00:00
|
|
|
license=(BSD-3-Clause)
|
2023-09-27 18:51:01 +00:00
|
|
|
depends=(gcc-libs
|
|
|
|
glibc
|
|
|
|
imath
|
|
|
|
libdeflate)
|
2023-03-11 01:20:29 +00:00
|
|
|
makedepends=(cmake)
|
|
|
|
source=(https://github.com/openexr/openexr/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
|
2024-03-07 13:22:35 +00:00
|
|
|
sha256sums=('f3f6c4165694d5c09e478a791eae69847cadb1333a2948ca222aa09f145eba63')
|
2023-03-11 01:20:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|