# Maintainer: Darvin Delgado pkgname=mangohud-git pkgver=0.6.8.r145.g020e848 pkgrel=1 pkgdesc="A Vulkan overlay layer for monitoring FPS, temperatures, CPU/GPU load and more." url='https://github.com/flightlessmango/MangoHud' license=('MIT') arch=('x86_64') makedepends=('git' 'glslang' 'libx11' 'libxnvctrl' 'meson' 'python-mako' 'vulkan-headers') depends=('dbus' 'hicolor-icon-theme' 'vulkan-icd-loader') optdepends=( 'libxnvctrl: NVIDIA GPU stats' 'lib32-mangohud-git: 32-bit support' ) provides=('mangohud' 'mangohud-common') conflicts=('mangohud' 'mangohud-common' 'mangohud-common-git') replaces=('mangohud-common-git') source=("$pkgname::git+$url") sha512sums=('SKIP') pkgver() { cd $pkgname git describe --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g' } build() { local meson_options=( --wrap-mode=forcefallback -Dtests=disabled $pkgname ) arch-meson "${meson_options[@]}" build ninja -C build } package() { meson install --destdir="$pkgdir" -C build if [ -f "$pkgdir/usr/lib/libMangoHud.so" ]; then mv "$pkgdir/usr/lib/libMangoHud.so" "$pkgdir/usr/lib/mangohud/" fi install -Dm664 "$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }