# Maintainer: Gonzalo Exequiel Pedone # Contributor: Antonio Rojas _android_arch=armv7a-eabi pkgname=android-${_android_arch}-imath pkgver=3.1.11 pkgrel=1 pkgdesc="A C++ and python library of 2D and 3D vector, matrix, and math operations for computer graphics (Android ${_android_arch})" arch=('any') url='https://www.openexr.com/' license=('BSD-3-Clause') depends=('android-ndk') makedepends=('android-cmake' "android-${_android_arch}-boost") options=(!strip !buildflags staticlibs !emptydirs) source=("https://github.com/AcademySoftwareFoundation/Imath/archive/v$pkgver/imath-$pkgver.tar.gz") sha256sums=('9057849585e49b8b85abe7cc1e76e22963b01bfdc3b6d83eac90c499cd760063') build() { cd "${srcdir}/Imath-$pkgver" source android-env ${_android_arch} android-${_android_arch}-cmake \ -S . \ -B build cmake --build build } package() { cd "${srcdir}/Imath-$pkgver" source android-env ${_android_arch} DESTDIR="$pkgdir" cmake --install build ${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}"/${ANDROID_PREFIX_LIB}/*.so }