blob: 42ab7ae21863853cd44276de8c559fabbda0fdd7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: Darvin Delgado <dnmodder at gmail dot com>
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"
}
|