blob: 6e76428c58012e2d06492e72ce466e947794dc3f (
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
47
48
49
50
51
|
# Maintainer: Darvin Delgado <dnmodder at gmail dot com>
_pkgname=lib32-mangohud
pkgname=lib32-mangohud-git
pkgver=0.6.8.r66.g8450291
pkgrel=1
pkgdesc="A Vulkan overlay layer for monitoring FPS, temperatures, CPU/GPU load and more (32 bit library)."
url='https://github.com/flightlessmango/MangoHud'
license=('MIT')
arch=('x86_64')
makedepends=('gcc' 'git' 'glslang' 'lib32-libx11' 'libxnvctrl' 'meson' 'nlohmann-json' 'pkgconf' 'python-mako' 'vulkan-headers')
depends=('lib32-dbus' 'lib32-vulkan-icd-loader')
provides=('lib32-mangohud')
conflicts=('lib32-mangohud')
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=nofallback
-Duse_system_vulkan=enabled
-Dinclude_doc=false
-Dtests=disabled
"${pkgname%-git}"
)
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
export LLVM_CONFIG="/usr/bin/llvm-config32"
arch-meson "${meson_options[@]}" build --libdir lib32
ninja -C build
}
package() {
meson install --destdir="$pkgdir" -C build --tags runtime
if [ -f "$pkgdir/usr/lib32/libMangoHud.so" ]; then
mv "$pkgdir/usr/lib32/libMangoHud.so" "$pkgdir/usr/lib32/mangohud/"
fi
install -Dm664 "${_pkgname}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
rm -rf "$pkgdir/usr/share/vulkan"
}
|