mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
added extra/openexr
This commit is contained in:
parent
3e37676588
commit
abfa3377c5
1 changed files with 29 additions and 0 deletions
29
extra/openexr/PKGBUILD
Normal file
29
extra/openexr/PKGBUILD
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
|
||||||
|
|
||||||
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||||
|
# - build v7 with vfpv3, neon is broken
|
||||||
|
|
||||||
|
pkgname=openexr
|
||||||
|
pkgver=3.1.6
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc='A high dynamic-range image file format library'
|
||||||
|
url='https://www.openexr.com/'
|
||||||
|
arch=(x86_64)
|
||||||
|
license=(BSD)
|
||||||
|
depends=(zlib imath)
|
||||||
|
makedepends=(cmake)
|
||||||
|
source=(https://github.com/openexr/openexr/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
|
||||||
|
sha256sums=('daa33d93a7b706e27368a162060df0246a7750c39a01a122d33b13f5c45d2029')
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
Loading…
Reference in a new issue