2020-01-30 07:22:48 +00:00
|
|
|
pkgname=('mangohud' 'lib32-mangohud')
|
|
|
|
pkgver=r24.b67a2aa
|
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Vulkan overlay layer to display information about the application"
|
|
|
|
arch=('x86_64')
|
2020-01-31 22:52:43 +00:00
|
|
|
makedepends=('gcc' 'meson' 'python-mako' 'libx11' 'lib32-libx11' 'git')
|
2020-01-30 07:22:48 +00:00
|
|
|
depends=('glslang' 'libglvnd' 'lib32-libglvnd' 'vulkan-headers')
|
2020-01-31 22:49:30 +00:00
|
|
|
replaces=('vulkan-mesa-layer-mango' 'lib32-vulkan-mesa-layer-mango')
|
2020-01-30 07:22:48 +00:00
|
|
|
url="https://github.com/flightlessmango/MangoHud"
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd $startdir
|
|
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
|
|
}
|
|
|
|
|
2020-01-31 23:00:06 +00:00
|
|
|
prepare() {
|
|
|
|
git submodule update --init --depth 50
|
|
|
|
}
|
|
|
|
|
2020-01-30 07:22:48 +00:00
|
|
|
build() {
|
|
|
|
cd $startdir
|
2020-01-31 22:58:54 +00:00
|
|
|
# ./build.sh clean
|
2020-01-30 07:22:48 +00:00
|
|
|
./build.sh build
|
|
|
|
}
|
|
|
|
|
|
|
|
package_mangohud() {
|
|
|
|
provides=("mangohud=${pkgver}")
|
|
|
|
cd $startdir
|
|
|
|
install -Dm664 "build/release/usr/lib64/libMangoHud.so" "${pkgdir}/usr/lib/libMangoHud.so"
|
|
|
|
install -Dm664 "build/release/usr/share/vulkan/implicit_layer.d/mangohud.json" "${pkgdir}/usr/share/vulkan/implicit_layer.d/mangohud.json"
|
|
|
|
}
|
|
|
|
package_lib32-mangohud() {
|
|
|
|
provides=("lib32-mangohud=${pkgver}")
|
|
|
|
cd $startdir
|
|
|
|
install -Dm664 "build/release/usr/lib32/libMangoHud.so" "${pkgdir}/usr/lib32/libMangoHud.so"
|
|
|
|
}
|