diff options
author | Darvin Delgado | 2020-02-06 18:40:51 -0400 |
---|---|---|
committer | Darvin Delgado | 2020-02-06 18:40:51 -0400 |
commit | 67a7bd801b13ca140298d230bf677906f4b4f170 (patch) | |
tree | 10dfad1f425c1cc85225bb6380a2d4cb04ad386d | |
download | aur-67a7bd801b13ca140298d230bf677906f4b4f170.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 36 | ||||
-rw-r--r-- | PKGBUILD | 71 |
2 files changed, 107 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..469a2aeaaeb5 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,36 @@ +pkgbase = mangohud-git + pkgver = 0.1.0.r24.g1bc513f + pkgrel = 1 + url = https://github.com/flightlessmango/MangoHud + arch = x86_64 + license = MIT + makedepends = meson + makedepends = python-mako + makedepends = glslang + makedepends = libglvnd + makedepends = lib32-libglvnd + depends = gcc-libs + depends = libx11 + source = mangohud::git+https://github.com/flightlessmango/MangoHud.git + source = Vulkan-Docs::git+https://github.com/KhronosGroup/Vulkan-Docs.git + source = Vulkan-Loader::git+https://github.com/KhronosGroup/Vulkan-Loader.git + source = ImGui::git+https://github.com/flightlessmango/ImGui.git + source = Vulkan-Headers::git+https://github.com/KhronosGroup/Vulkan-Headers.git + sha512sums = SKIP + sha512sums = SKIP + sha512sums = SKIP + sha512sums = SKIP + sha512sums = SKIP + +pkgname = mangohud-git + pkgdesc = A Vulkan overlay layer for monitoring FPS, temperatures, CPU/GPU load and more + depends = gcc-libs + depends = libx11 + conflicts = mangohud + +pkgname = lib32-mangohud-git + pkgdesc = A Vulkan overlay layer for monitoring FPS, temperatures, CPU/GPU load and more (32-bit) + depends = lib32-gcc-libs + depends = lib32-libx11 + conflicts = lib32-mangohud + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e29f80f48384 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,71 @@ +# Maintainer: Ranieri Althoff <ranisalt+aur at gmail dot com> + +_pkgbase=mangohud +pkgbase=$_pkgbase-git +pkgname=('mangohud-git' 'lib32-mangohud-git') +pkgver=0.1.0.r24.g1bc513f +pkgrel=1 +url='https://github.com/flightlessmango/MangoHud' +license=('MIT') +arch=('x86_64') +depends=('gcc-libs' 'libx11') +makedepends=('meson' 'python-mako' 'glslang' 'libglvnd' 'lib32-libglvnd') +source=("$_pkgbase::git+$url.git" + 'Vulkan-Docs::git+https://github.com/KhronosGroup/Vulkan-Docs.git' + 'Vulkan-Loader::git+https://github.com/KhronosGroup/Vulkan-Loader.git' + 'ImGui::git+https://github.com/flightlessmango/ImGui.git' + 'Vulkan-Headers::git+https://github.com/KhronosGroup/Vulkan-Headers.git') +sha512sums=('SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP') + +pkgver() { + cd "$srcdir/${_pkgbase}" + git describe --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g' +} + +prepare() { + cd "$_pkgbase" + git submodule init + git config submodule.'modules/Vulkan-Docs'.url "$srcdir/Vulkan-Docs" + git config submodule.'modules/Vulkan-Loader'.url "$srcdir/Vulkan-Loader" + git config submodule.'modules/ImGui/src'.url "$srcdir/ImGui" + git config submodule.'modules/Vulkan-Headers'.url "$srcdir/Vulkan-Headers" + git submodule update +} + +build() { + arch-meson "$_pkgbase" build64 + ninja -C build64 + + export CC="gcc -m32" + export CXX="g++ -m32" + export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" + export LLVM_CONFIG="/usr/bin/llvm-config32" + arch-meson "$_pkgbase" build32 --libdir lib32 + ninja -C build32 +} + +package_mangohud-git() { + pkgdesc='A Vulkan overlay layer for monitoring FPS, temperatures, CPU/GPU load and more' + depends=('gcc-libs' 'libx11') + conflicts=('mangohud') + + DESTDIR="$pkgdir" ninja -C build64 install + sed -i -e 's|libMangoHud.so|/usr/lib/&|g' "$pkgdir/usr/share/vulkan/implicit_layer.d/mangohud.json" + install -Dm644 "$_pkgbase/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +package_lib32-mangohud-git() { + pkgdesc='A Vulkan overlay layer for monitoring FPS, temperatures, CPU/GPU load and more (32-bit)' + depends=('lib32-gcc-libs' 'lib32-libx11') + conflicts=('lib32-mangohud') + + DESTDIR="$pkgdir" ninja -C build32 install + mv "$pkgdir/usr/share/vulkan/implicit_layer.d/"mangohud{,32}.json + sed -i -e 's|libMangoHud.so|/usr/lib32/&|g' -e 's|64bit|32bit|g' "$pkgdir/usr/share/vulkan/implicit_layer.d/mangohud32.json" + + install -Dm644 "$_pkgbase/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |