commit 2918b6b3318b735d0ef76bedbeeb5c3d4954b5da Author: Manuel Hüsers Date: Sat Aug 27 22:50:06 2022 +0200 Initial commit with version 1.2.0 diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..c476678 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +pkgbase = obs-vkcapture + pkgver = 1.2.0 + pkgrel = 1 + url = https://github.com/nowrep/obs-vkcapture + arch = x86_64 + license = GPL2 + makedepends = gcc + makedepends = cmake + makedepends = vulkan-headers + makedepends = lib32-gcc-libs + makedepends = lib32-vulkan-icd-loader + makedepends = lib32-libgl + depends = vulkan-icd-loader + depends = libgl + depends = obs-studio>=27 + source = https://github.com/nowrep/obs-vkcapture/archive/v1.2.0.tar.gz + sha512sums = e30aeb24af467a9f8a343985b77ea5cd4e39fdcdec067f3c65f7dd9b8915a933bff1ee5127e4a7a4eaa0e740f97f31af669cb5a75155bbd9937d694d739a6d7d + +pkgname = obs-vkcapture + pkgdesc = OBS Linux Vulkan/OpenGL game capture + +pkgname = lib32-obs-vkcapture + pkgdesc = OBS Linux Vulkan/OpenGL game capture (32-bit) + depends = lib32-vulkan-icd-loader + depends = lib32-libgl diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..1a98e3f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Manuel Hüsers + +pkgbase=obs-vkcapture +pkgname=("$pkgbase" "lib32-$pkgbase") +pkgver=1.2.0 +pkgrel=1 +url="https://github.com/nowrep/$pkgbase" +license=('GPL2') +arch=('x86_64') +depends=('vulkan-icd-loader' 'libgl' 'obs-studio>=27') +makedepends=('gcc' 'cmake' 'vulkan-headers' 'lib32-gcc-libs' 'lib32-vulkan-icd-loader' 'lib32-libgl') +source=("https://github.com/nowrep/$pkgbase/archive/v1.2.0.tar.gz") +sha512sums=('e30aeb24af467a9f8a343985b77ea5cd4e39fdcdec067f3c65f7dd9b8915a933bff1ee5127e4a7a4eaa0e740f97f31af669cb5a75155bbd9937d694d739a6d7d') + +build() { + cmake -B build -S "$pkgbase-$pkgver" -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_INSTALL_DATADIR=/share \ + -DCMAKE_BUILD_TYPE=Release + make -C build + + export CFLAGS="-m32 ${CFLAGS}" + export CXXFLAGS="-m32 ${CXXFLAGS}" + export LDFLAGS="-m32 ${LDFLAGS}" + + cmake -B build32 -S "$pkgbase-$pkgver" -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib32 \ + -DCMAKE_INSTALL_DATADIR=/share \ + -DCMAKE_LIBRARY_PATH=/usr/lib32 \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_PLUGIN=OFF + make -C build32 +} + +package_obs-vkcapture() { + pkgdesc='OBS Linux Vulkan/OpenGL game capture' + + make -C build DESTDIR="$pkgdir" install +} + +package_lib32-obs-vkcapture() { + pkgdesc='OBS Linux Vulkan/OpenGL game capture (32-bit)' + depends=('lib32-vulkan-icd-loader' 'lib32-libgl') + + make -C build32 DESTDIR="$pkgdir" install + rm -r "$pkgdir/usr/bin" +}