Files
the-void-club/srcpkgs/magnum-integration/template

38 lines
1.3 KiB
Bash

# Template file for 'magnum-integration'
pkgname=magnum-integration
version=2020.06.r347.g090b67d
revision=1
build_style=cmake
configure_args="-DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DMAGNUM_WITH_BULLETINTEGRATION=ON -DMAGNUM_WITH_GLMINTEGRATION=ON -DMAGNUM_WITH_IMGUIINTEGRATION=ON -DMAGNUM_WITH_EIGENINTEGRATION=ON"
hostmakedepends="git wget tar"
makedepends="corrade magnum bullet-devel glm eigen libglvnd-devel"
short_desc="Integration libraries for the Magnum C++11 graphics engine (Bullet, Eigen, GLM, and IMGUI[1.92.4])"
maintainer="Dora 'cat' <cat@thenight.club>"
license="MIT"
homepage="https://magnum.graphics/"
changelog="https://doc.magnum.graphics/magnum/changelog-integration.html"
do_fetch(){
git clone https://github.com/mosra/magnum-integration/ "$wrksrc"
cd $wrksrc
wget https://github.com/ocornut/imgui/archive/refs/tags/v1.92.4.tar.gz -O imgui.tar.gz
}
pre_configure(){
actual_version=$(git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g;s/v//g')
if [[ $actual_version != $version ]] then
echo "Update version to $actual_version"
exit 1
fi
cd $wrksrc
tar xf imgui.tar.gz -C src/MagnumExternal/
mv src/MagnumExternal/imgui-1.92.4 src/MagnumExternal/ImGui
}
post_install() {
vlicense COPYING LICENSE
}