[arch-commits] Commit in magnum-plugins/repos/community-x86_64 (PKGBUILD PKGBUILD)

Alexander Rødseth arodseth at archlinux.org
Thu Aug 6 13:57:34 UTC 2020


    Date: Thursday, August 6, 2020 @ 13:57:34
  Author: arodseth
Revision: 670932

archrelease: copy trunk to community-x86_64

Added:
  magnum-plugins/repos/community-x86_64/PKGBUILD
    (from rev 670931, magnum-plugins/trunk/PKGBUILD)
Deleted:
  magnum-plugins/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |  121 +++++++++++++++++++++++++++++++++++--------------------------
 1 file changed, 71 insertions(+), 50 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-08-06 13:57:28 UTC (rev 670931)
+++ PKGBUILD	2020-08-06 13:57:34 UTC (rev 670932)
@@ -1,50 +0,0 @@
-# Maintainer:
-# Contributor: Alexander F. Rødseth <xyproto at archlinux.org>
-# Contributor: Mosra <mosra at centrum.cz>
-
-pkgname=magnum-plugins
-pkgver=2019.10
-pkgrel=1
-pkgdesc='Plugins for the Magnum C++11/C++14 graphics engine'
-arch=(x86_64)
-url='https://magnum.graphics'
-license=(MIT)
-depends=(assimp devil faad2 freetype2 libjpeg libpng "magnum>=$pkgver")
-makedepends=(cmake)
-source=($pkgname-$pkgver.tar.gz::"https://github.com/mosra/$pkgname/archive/v$pkgver.tar.gz")
-sha256sums=('d475e7d153a926e3194f9f7f7716e9530214e35b829438f8900c5c0c84741d03')
-
-build() {
-  mkdir -p build
-  cd build
-  cmake ../$pkgname-$pkgver \
-    -DCMAKE_INSTALL_PREFIX=/usr \
-    -DWITH_ASSIMPIMPORTER=ON \
-    -DWITH_BASISIMAGECONVERTER=OFF \
-    -DWITH_BASISIMPORTER=OFF \
-    -DWITH_DDSIMPORTER=ON \
-    -DWITH_DEVILIMAGEIMPORTER=ON \
-    -DWITH_DRFLACAUDIOIMPORTER=ON \
-    -DWITH_DRMP3AUDIOIMPORTER=ON \
-    -DWITH_DRWAVAUDIOIMPORTER=ON \
-    -DWITH_FAAD2AUDIOIMPORTER=ON \
-    -DWITH_FREETYPEFONT=ON \
-    -DWITH_JPEGIMAGECONVERTER=ON \
-    -DWITH_JPEGIMPORTER=ON \
-    -DWITH_MINIEXRIMAGECONVERTER=ON \
-    -DWITH_PNGIMAGECONVERTER=ON \
-    -DWITH_PNGIMPORTER=ON \
-    -DWITH_OPENGEXIMPORTER=ON \
-    -DWITH_STANFORDIMPORTER=ON \
-    -DWITH_STBIMAGECONVERTER=ON \
-    -DWITH_STBIMAGEIMPORTER=ON \
-    -DWITH_STBTRUETYPEFONT=ON \
-    -DWITH_STBVORBISAUDIOIMPORTER=ON \
-    -DWITH_TINYGLTFIMPORTER=ON
-  make
-}
-
-package() {
-  make DESTDIR="$pkgdir" -C build install
-  install -Dm644 $pkgname-$pkgver/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname/
-}

Copied: magnum-plugins/repos/community-x86_64/PKGBUILD (from rev 670931, magnum-plugins/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-08-06 13:57:34 UTC (rev 670932)
@@ -0,0 +1,71 @@
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+# Contributor: Mosra <mosra at centrum.cz>
+
+pkgname=magnum-plugins
+pkgver=2020.06
+_basis_pkgver=2f43afcc97d0a5dafdb73b4e24e123cf9687a418
+_meshoptimizer_pkgver=0.14
+pkgrel=1
+pkgdesc='Plugins for the Magnum C++11/C++14 graphics engine'
+arch=(x86_64)
+url='https://magnum.graphics'
+license=(MIT)
+depends=(assimp devil faad2 freetype2 libjpeg libpng magnum)
+makedepends=(cmake git glfw ninja)
+source=("git+https://github.com/mosra/magnum-plugins#commit=b0f2818b781eb0fb6a8a76095a6529fc85d442f3"
+        "basis_universal.tar.gz::https://github.com/BinomialLLC/basis_universal/archive/${_basis_pkgver}.tar.gz"
+        "meshoptimizer.tar.gz::https://github.com/zeux/meshoptimizer/archive/v${_meshoptimizer_pkgver}.tar.gz")
+sha256sums=('SKIP'
+            'f983ab5bfc5c32474914a87d9ca572c7fb970bf96f7bc68385c08772f633639f'
+            '5a6e429ecf72325131b439a46297a690f0cab833c7563efdadab26c0a6cf8490')
+
+build() {
+  mkdir -p build
+  cd build
+
+  # Bundle Basis Universal and meshoptimizer
+  ln -sf "$srcdir"/basis_universal-${_basis_pkgver}/ "$srcdir/${pkgname%-git}/src/external/basis-universal"
+  ln -sf "$srcdir"/meshoptimizer-${_meshoptimizer_pkgver}/ "$srcdir/${pkgname%-git}/src/external/meshoptimizer"
+
+  cmake "$srcdir/magnum-plugins" \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DWITH_ASSIMPIMPORTER=ON \
+    -DWITH_BASISIMAGECONVERTER=ON \
+    -DWITH_BASISIMPORTER=ON \
+    -DWITH_DDSIMPORTER=ON \
+    -DWITH_DEVILIMAGEIMPORTER=ON \
+    -DWITH_DRFLACAUDIOIMPORTER=ON \
+    -DWITH_DRMP3AUDIOIMPORTER=ON \
+    -DWITH_DRWAVAUDIOIMPORTER=ON \
+    -DWITH_FAAD2AUDIOIMPORTER=ON \
+    -DWITH_FREETYPEFONT=ON \
+    -DWITH_ICOIMPORTER=ON \
+    -DWITH_JPEGIMAGECONVERTER=ON \
+    -DWITH_JPEGIMPORTER=ON \
+    -DWITH_MESHOPTIMIZERSCENECONVERTER=ON \
+    -DWITH_MINIEXRIMAGECONVERTER=ON \
+    -DWITH_OPENGEXIMPORTER=ON \
+    -DWITH_PNGIMAGECONVERTER=ON \
+    -DWITH_PNGIMPORTER=ON \
+    -DWITH_PRIMITIVEIMPORTER=ON \
+    -DWITH_STANFORDIMPORTER=ON \
+    -DWITH_STANFORDSCENECONVERTER=ON \
+    -DWITH_STBIMAGECONVERTER=ON \
+    -DWITH_STBIMAGEIMPORTER=ON \
+    -DWITH_STBTRUETYPEFONT=ON \
+    -DWITH_STBVORBISAUDIOIMPORTER=ON \
+    -DWITH_STLIMPORTER=ON \
+    -DWITH_TINYGLTFIMPORTER=ON \
+    -GNinja
+  ninja
+}
+
+package() {
+  DESTDIR="$pkgdir" ninja -C build install
+  install -Dm644 $pkgname/COPYING \
+    "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+}
+
+# getver: github.com/mosra/magnum-plugins/releases/latest
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list