[arch-commits] Commit in magnum-plugins/trunk (PKGBUILD)
Alexander Rødseth
arodseth at archlinux.org
Thu Aug 6 13:57:29 UTC 2020
Date: Thursday, August 6, 2020 @ 13:57:28
Author: arodseth
Revision: 670931
upgpkg: magnum-plugins 2020.06-1
Modified:
magnum-plugins/trunk/PKGBUILD
----------+
PKGBUILD | 51 ++++++++++++++++++++++++++++++++++++---------------
1 file changed, 36 insertions(+), 15 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-08-06 13:44:17 UTC (rev 670930)
+++ PKGBUILD 2020-08-06 13:57:28 UTC (rev 670931)
@@ -1,27 +1,38 @@
-# Maintainer:
-# Contributor: Alexander F. Rødseth <xyproto at archlinux.org>
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
# Contributor: Mosra <mosra at centrum.cz>
pkgname=magnum-plugins
-pkgver=2019.10
+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>=$pkgver")
-makedepends=(cmake)
-source=($pkgname-$pkgver.tar.gz::"https://github.com/mosra/$pkgname/archive/v$pkgver.tar.gz")
-sha256sums=('d475e7d153a926e3194f9f7f7716e9530214e35b829438f8900c5c0c84741d03')
+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
- cmake ../$pkgname-$pkgver \
+
+ # 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=OFF \
- -DWITH_BASISIMPORTER=OFF \
+ -DWITH_BASISIMAGECONVERTER=ON \
+ -DWITH_BASISIMPORTER=ON \
-DWITH_DDSIMPORTER=ON \
-DWITH_DEVILIMAGEIMPORTER=ON \
-DWITH_DRFLACAUDIOIMPORTER=ON \
@@ -29,22 +40,32 @@
-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_OPENGEXIMPORTER=ON \
+ -DWITH_PRIMITIVEIMPORTER=ON \
-DWITH_STANFORDIMPORTER=ON \
+ -DWITH_STANFORDSCENECONVERTER=ON \
-DWITH_STBIMAGECONVERTER=ON \
-DWITH_STBIMAGEIMPORTER=ON \
-DWITH_STBTRUETYPEFONT=ON \
-DWITH_STBVORBISAUDIOIMPORTER=ON \
- -DWITH_TINYGLTFIMPORTER=ON
- make
+ -DWITH_STLIMPORTER=ON \
+ -DWITH_TINYGLTFIMPORTER=ON \
+ -GNinja
+ ninja
}
package() {
- make DESTDIR="$pkgdir" -C build install
- install -Dm644 $pkgname-$pkgver/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname/
+ 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