summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTércio Martins2020-11-22 13:50:35 -0300
committerTércio Martins2020-11-22 13:50:35 -0300
commitc8def8557868bbd676419561d425e493b6c69fb8 (patch)
tree269767e7df047e7d00a2f9a4a0e91210bac3a18e
downloadaur-c8def8557868bbd676419561d425e493b6c69fb8.tar.gz
Initial package upload
-rw-r--r--.SRCINFO39
-rw-r--r--PKGBUILD54
2 files changed, 93 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..372df8ea8d4
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,39 @@
+pkgbase = openimageio-git
+ pkgdesc = A library for reading and writing images, including classes, utilities, and applications
+ pkgver = spi.Arn3.6.72.1.r1021.gf2d7aaf1
+ pkgrel = 1
+ url = http://www.openimageio.org/
+ arch = x86_64
+ license = custom
+ makedepends = cmake
+ makedepends = qt5-base
+ makedepends = python
+ makedepends = boost
+ makedepends = mesa
+ makedepends = freetype2
+ makedepends = fontconfig
+ makedepends = libxrender
+ makedepends = ninja
+ makedepends = robin-map
+ depends = openexr
+ depends = boost-libs
+ depends = openjpeg2
+ depends = glew
+ depends = libtiff
+ depends = opencolorio-git
+ depends = intel-tbb
+ depends = libpng
+ depends = libraw
+ depends = libwebp
+ depends = fmt
+ depends = pugixml
+ depends = pybind11
+ optdepends = qt5-base: iv image viewer
+ optdepends = python: bindings support
+ provides = openimageio
+ conflicts = openimageio
+ source = git+https://github.com/OpenImageIO/oiio
+ sha512sums = SKIP
+
+pkgname = openimageio-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0b2bd576258
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,54 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com>
+# Contributor: SpepS <dreamspepser at yahoo dot it>
+
+pkgname=openimageio-git
+pkgver=spi.Arn3.6.72.1.r1021.gf2d7aaf1
+pkgrel=1
+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-git' 'intel-tbb' 'libpng' 'libraw' 'libwebp'
+ 'fmt' 'pugixml' 'pybind11')
+# TODO: Consider adding these deps: 'openvdb' 'ffmpeg' 'ptex' 'libheif' 'hdf5' 'opencv'
+makedepends=('cmake' 'qt5-base' 'python' 'boost' 'mesa' 'freetype2' 'fontconfig' 'libxrender' 'ninja' 'robin-map')
+optdepends=('qt5-base: iv image viewer'
+ 'python: bindings support')
+provides=('openimageio')
+conflicts=('openimageio')
+source=("git+https://github.com/OpenImageIO/oiio")
+sha512sums=('SKIP')
+
+pkgver() {
+ cd oiio
+ git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd oiio
+
+ cmake \
+ -Bbuild \
+ -GNinja \
+ -DUSE_PYTHON=ON \
+ -DPYTHON_VERSION=3 \
+ -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
+
+ 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
+}