[arch-commits] Commit in openimageio/trunk (PKGBUILD)

Sven-Hendrik Haase svenstaro at archlinux.org
Thu Apr 30 13:46:45 UTC 2020


    Date: Thursday, April 30, 2020 @ 13:46:44
  Author: svenstaro
Revision: 623325

upgpkg: openimageio 2.1.13.0-1

Modified:
  openimageio/trunk/PKGBUILD

----------+
 PKGBUILD |   28 +++++++++++++---------------
 1 file changed, 13 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-30 13:35:13 UTC (rev 623324)
+++ PKGBUILD	2020-04-30 13:46:44 UTC (rev 623325)
@@ -2,27 +2,25 @@
 # Contributor: SpepS <dreamspepser at yahoo dot it>
 
 pkgname=openimageio
-pkgver=2.1.11.2
-pkgrel=3
+pkgver=2.1.13.0
+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' 'intel-tbb' 'libpng' 'libraw' 'libwebp')
-makedepends=('cmake' 'qt5-base' 'python' 'boost' 'mesa' 'git' 'freetype2' 'fontconfig' 'libxrender')
+makedepends=('cmake' 'qt5-base' 'python' 'boost' 'mesa' 'git' 'freetype2' 'fontconfig' 'libxrender' 'ninja')
 optdepends=('qt5-base: iv image viewer'
             'python: bindings support')
-source=(git+git://github.com/OpenImageIO/oiio.git#tag=Release-${pkgver})
-md5sums=('SKIP')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/OpenImageIO/oiio/archive/Release-2.1.13.0.tar.gz")
+sha512sums=('dcf1fe2f62e0e91316799206d66c767a7a727912de74ae9b50128a6b1bcb1bca993fef967f79d6a5a86da8f368e5d1287293864cdfc196bc973a2d6557d65c06')
 
-prepare() {
-  mkdir oiio/build
-}
-
 build() {
-  cd oiio/build
+  cd oiio-Release-$pkgver
 
-  cmake .. \
+  cmake \
+      -Bbuild \
+      -GNinja \
       -DUSE_PYTHON=ON \
       -DPYTHON_VERSION=3.8 \
       -DCMAKE_INSTALL_PREFIX=/usr \
@@ -30,13 +28,13 @@
       -DOIIO_BUILD_TESTS=ON \
       -DOIIO_BUILD_TOOLS=ON \
       -DSTOP_ON_WARNING=OFF
-  make
+  ninja -C build
 }
 
 package() {
-  cd oiio/build
+  cd oiio-Release-$pkgver
 
-  make DESTDIR="$pkgdir" install
+  DESTDIR="$pkgdir" ninja -C build install
 
-  install -Dm644 ../LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE".md
+  install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE".md
 }



More information about the arch-commits mailing list