void-packages/srcpkgs/openexr/template

45 lines
1.2 KiB
Bash

# Template file for 'openexr'
pkgname=openexr
version=3.1.5
revision=1
build_style=cmake
build_helper="qemu"
hostmakedepends="pkg-config"
makedepends="zlib-devel imath-devel"
short_desc="High dynamic-range (HDR) image file format"
maintainer="André Cerqueira <acerqueira021@gmail.com>"
license="BSD-3-Clause"
homepage="https://www.openexr.com/"
changelog="https://raw.githubusercontent.com/AcademySoftwareFoundation/openexr/main/CHANGES.md"
distfiles="https://github.com/openexr/openexr/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=93925805c1fc4f8162b35f0ae109c4a75344e6decae5a240afdfce25f8a433ec
if [ "$XBPS_TARGET_WORDSIZE" = "32" ]
then
make_check=no # Test Fails in i868
# See upstream:
# https://github.com/AcademySoftwareFoundation/openexr/issues/876
fi
post_install() {
vlicense LICENSE.md
}
libopenexr_package() {
short_desc+=" - runtime libraries"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
libopenexr-devel_package() {
short_desc+=" - development files"
depends="${makedepends} libopenexr>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share
}
}