Date: Thursday, April 13, 2023 @ 18:27:25
  Author: arojas
Revision: 1445947

archrelease: copy trunk to community-staging-x86_64

Added:
  openimageio/repos/community-staging-x86_64/
  openimageio/repos/community-staging-x86_64/PKGBUILD
    (from rev 1445946, openimageio/trunk/PKGBUILD)

----------+
 PKGBUILD |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

Copied: openimageio/repos/community-staging-x86_64/PKGBUILD (from rev 1445946, 
openimageio/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2023-04-13 18:27:25 UTC (rev 1445947)
@@ -0,0 +1,48 @@
+# Maintainer: Sven-Hendrik Haase <[email protected]>
+# Contributor: SpepS <dreamspepser at yahoo dot it>
+
+pkgname=openimageio
+pkgver=2.4.10.0
+pkgrel=2
+pkgdesc="A library for reading and writing images, including classes, 
utilities, and applications"
+arch=('x86_64')
+url="http://www.openimageio.org/";
+license=('custom')
+depends=('openexr' 'boost-libs' 'openjpeg2' 'glew' 'libtiff' 'opencolorio' 
'libpng' 'libraw' 'libwebp'
+         'pugixml' 'pybind11' 'libheif' 'hdf5' 'freetype2')
+# TODO: Consider adding these deps: 'openvdb' 'ffmpeg' 'ptex' 'opencv'
+makedepends=('cmake' 'qt5-base' 'python' 'boost' 'mesa' 'fontconfig' 
'libxrender' 'ninja' 'robin-map' 'fmt')
+optdepends=('qt5-base: iv image viewer'
+            'python: bindings support')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/OpenImageIO/oiio/archive/refs/tags/v$pkgver.tar.gz";)
+sha512sums=('c828e5528a17dc8e0c1928b7e9088c7e4983cb5260557821ee2a602d7b2801e4131fd1074dd1dcecbf1bd2e91fd9fe3d6bd62544a3fe5cce78d6c6720dd145f3')
+
+build() {
+  cd oiio-$pkgver
+
+  local python_version=$(python -c 'import sys; print(".".join(map(str, 
sys.version_info[:2])))')
+  cmake \
+    -Bbuild \
+    -GNinja \
+    -DUSE_PYTHON=ON \
+    -DPYTHON_VERSION=$python_version \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=lib \
+    -DOIIO_BUILD_TESTS=ON \
+    -DOIIO_BUILD_TOOLS=ON \
+    -DBUILD_MISSING_FMT=OFF \
+    -DUSE_EXTERNAL_PUGIXML=ON \
+    -DSTOP_ON_WARNING=OFF
+  ninja -C build
+}
+
+package() {
+  cd oiio-$pkgver
+
+  DESTDIR="$pkgdir" ninja -C build install
+
+  # Remove vendored fonts
+  rm -r "$pkgdir"/usr/share/fonts
+
+  install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE".md
+}

Reply via email to