Skip to content

Commit

Permalink
package/archlinux: bundle Basis Universal in the AUR package.
Browse files Browse the repository at this point in the history
  • Loading branch information
mosra committed Jun 26, 2020
1 parent 8f378a1 commit 1ac7a53
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions package/archlinux/magnum-plugins-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Author: mosra <mosra@centrum.cz>
pkgname=magnum-plugins-git
pkgver=2019.10.r0.g4d710136
pkgver=2019.10.r284.g8b60cd48
_basis_pkgver=2f43afcc97d0a5dafdb73b4e24e123cf9687a418
pkgrel=1
pkgdesc="Plugins for the Magnum C++11/C++14 graphics engine (Git version)"
arch=('i686' 'x86_64')
Expand All @@ -10,8 +11,12 @@ depends=('magnum-git' 'devil' 'faad2' 'libpng' 'libjpeg' 'freetype2' 'assimp' 'm
makedepends=('cmake' 'git' 'ninja')
provides=('magnum-plugins')
conflicts=('magnum-plugins')
source=("git+git://github.com/mosra/magnum-plugins.git")
sha1sums=('SKIP')
source=("git+git://github.com/mosra/magnum-plugins.git"
# A commit that's before the UASTC support (which is not implemented
# yet, because latest versions crash even on trivial tests)
"https://github.com/BinomialLLC/basis_universal/archive/2f43afcc97d0a5dafdb73b4e24e123cf9687a418.tar.gz")
sha1sums=('SKIP'
'b8d3995292c2c0bbedea943250087b0a9a92ca96')

pkgver() {
cd "$srcdir/${pkgname%-git}"
Expand All @@ -22,12 +27,15 @@ build() {
mkdir -p "$srcdir/build"
cd "$srcdir/build"

# Bundle Basis Universal
ln -sf $srcdir/basis_universal-${_basis_pkgver}/ "$srcdir/${pkgname%-git}/src/external/basis-universal"

cmake "$srcdir/${pkgname%-git}" \
-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 \
Expand Down

0 comments on commit 1ac7a53

Please sign in to comment.