add PKGBUILD

pull/20/head
telans 4 years ago
parent b67a2aad16
commit 667e47a835
No known key found for this signature in database
GPG Key ID: 195444EE92DBCB20

3
.gitignore vendored

@ -2,6 +2,9 @@ build/
__pycache__/
.vscode/
MangoHud*.tar.gz
pkg/*
mangohud*.tar.*
lib32-mangohud*.tar.*
# Prerequisites
*.d

@ -0,0 +1,31 @@
pkgname=('mangohud' 'lib32-mangohud')
pkgver=r24.b67a2aa
pkgrel=1
pkgdesc="Vulkan overlay layer to display information about the application"
arch=('x86_64')
makedepends=('gcc' 'meson' 'python-mako' 'libx11' 'lib32-libx11')
depends=('glslang' 'libglvnd' 'lib32-libglvnd' 'vulkan-headers')
url="https://github.com/flightlessmango/MangoHud"
pkgver() {
cd $startdir
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd $startdir
./build.sh clean
./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"
}
Loading…
Cancel
Save