blob: beb12ed237d0df705e329d7d1767c53a5b5525b2 (
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
|
# Maintainer: Darvin Delgado <dnmodder at gmail dot com>
pkgname=lib32-mangohud-git
pkgver=0.6.9.1.r79.g30748bd
pkgrel=1
pkgdesc="32-bit libraries for MangoHud and MangoApp"
url='https://github.com/flightlessmango/MangoHud'
license=('MIT')
arch=('x86_64')
makedepends=('git' 'glfw-x11' 'glslang' 'lib32-cmocka' 'lib32-libglvnd' 'libxnvctrl' 'meson' 'nlohmann-json' 'python-mako')
depends=('lib32-dbus' 'lib32-gcc-libs' 'lib32-libx11' 'lib32-vulkan-icd-loader')
provides=('lib32-mangohud' 'lib32-mangoapp')
conflicts=('lib32-mangohud' 'lib32-mangoapp')
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
-Dmangoapp_layer=true
-Dinclude_doc=false
$pkgname
)
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
meson compile -C build
}
package() {
meson install -C build --tags runtime,mangoapp --destdir "$pkgdir"
install -Dm 0664 "$pkgname/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/"
rm -rf "$pkgdir/usr/bin"
}
|