PKGBUILDs/extra/openexr/PKGBUILD

34 lines
918 B
Bash
Raw Normal View History

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-11-13 00:23:36 +00:00
pkgver=3.3.2
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)
2024-11-13 00:23:36 +00:00
makedepends=(cmake
git)
source=(git+https://github.com/openexr/openexr#tag=v$pkgver)
sha256sums=('549c95f71f36f7e6164828f6646b1ec1c4efff6994431416d9a7884345c5ab55')
2023-03-11 01:20:29 +00:00
build() {
[[ $CARCH == "armv7h" ]] && CFLAGS=`echo $CFLAGS | sed -e 's/neon/vfpv3/'` && CXXFLAGS="$CFLAGS"
2024-11-13 00:23:36 +00:00
cmake -B build -S $pkgname \
2023-03-11 01:20:29 +00:00
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=None
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
2024-11-13 00:23:36 +00:00
install -Dm644 $pkgname/LICENSE.md -t "$pkgdir"/usr/share/licenses/$pkgname
2023-03-11 01:20:29 +00:00
}