blob: 340141e6fb4ccdf97fdee09a385ea79b39daceae (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Maintainer: Darvin Delgado <dnmodder at gmail dot com>
_pkgname=MangoHud
pkgname=lib32-mangohud-git
pkgver=0.7.2.r110.g24d3cd9
pkgrel=1
pkgdesc="32-bit libraries for MangoHud and MangoApp"
url='https://github.com/flightlessmango/MangoHud'
license=('MIT')
arch=('x86_64')
makedepends=(
'appstream'
'git'
'glfw'
'glslang'
'lib32-cmocka'
'lib32-libglvnd'
'lib32-libxrandr'
'libxnvctrl'
'meson'
'nlohmann-json'
'python-mako'
'vulkan-headers'
)
depends=(
'lib32-gcc-libs'
'lib32-glibc'
'lib32-libxkbcommon'
'lib32-wayland'
)
optdepends=(
'lib32-vulkan-icd-loader: Vulkan support'
)
provides=('lib32-mangohud' 'lib32-mangoapp')
conflicts=('lib32-mangohud' 'lib32-mangoapp')
source=("$_pkgname::git+$url")
sha512sums=('SKIP')
pkgver() {
cd $_pkgname
git describe --tags --long --abbrev=7 | sed 's/^v//;s/-rc[0-9]\+-/-/;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
export CC="${CC:-gcc} -m32"
export CXX="${CXX:-g++} -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig:/usr/lib/i386-linux-gnu/pkgconfig:/usr/lib/pkgconfig:${PKG_CONFIG_PATH_32}"
export LLVM_CONFIG="/usr/bin/llvm-config32"
arch-meson "$_pkgname" build \
-Dinclude_doc=true \
-Dmangoapp=false \
-Dmangohudctl=false \
--libdir lib32 \
--wrap-mode=default
meson compile -C build
}
package() {
meson install -C build --tags runtime,mangoapp --destdir "$pkgdir"
rm -rf "$pkgdir/usr/bin"
install -Dm 0644 "$_pkgname/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|