Files
the-void-club/srcpkgs/magnum-extras/template
2025-11-19 17:06:01 +02:00

31 lines
877 B
Bash

# Template file for 'magnum-extras'
pkgname=magnum-extras
version=2020.06.r991.gf7fe781
revision=1
build_style=cmake
configure_args="-DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DMAGNUM_WITH_UI=ON"
hostmakedepends="git corrade"
makedepends="corrade magnum libglvnd Vulkan-Headers SDL2-devel"
short_desc="Extra functionality for the Magnum C++11/C++14 graphics engine"
maintainer="Dora 'cat' <cat@thenight.club>"
license="MIT"
homepage="https://magnum.graphics/"
changelog="https://doc.magnum.graphics/magnum/changelog-extras.html"
do_fetch(){
git clone https://github.com/mosra/magnum-extras/ "$wrksrc"
}
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
}
post_install() {
vlicense COPYING LICENSE
}