2022-08-27 22:50:06 +02:00
|
|
|
# Maintainer: Manuel Hüsers <aur@huesers.de>
|
|
|
|
|
|
|
|
pkgbase=obs-vkcapture
|
|
|
|
pkgname=("$pkgbase" "lib32-$pkgbase")
|
2022-10-30 14:15:29 +01:00
|
|
|
pkgver=1.2.1
|
2022-08-27 22:50:06 +02:00
|
|
|
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')
|
2022-10-30 14:15:29 +01:00
|
|
|
source=("https://github.com/nowrep/$pkgbase/archive/v$pkgver.tar.gz")
|
|
|
|
sha512sums=('55ba0c449cef9c80db82e98a2f6e282dfbf00a7ef0c180e307bd602ae13aadbb0383a38a56dcf4d67ed7ac1e5dd392be7ef71bb1e6f39278da69ed110c159bb0')
|
2022-08-27 22:50:06 +02:00
|
|
|
|
|
|
|
build() {
|
2022-11-15 17:29:49 +01:00
|
|
|
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 -j $(nproc)
|
|
|
|
|
|
|
|
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 -j $(nproc)
|
2022-08-27 22:50:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
package_obs-vkcapture() {
|
2022-11-15 17:29:49 +01:00
|
|
|
pkgdesc='OBS Linux Vulkan/OpenGL game capture'
|
2022-08-27 22:50:06 +02:00
|
|
|
|
2022-11-15 17:29:49 +01:00
|
|
|
make -C build DESTDIR="$pkgdir" install
|
2022-08-27 22:50:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
package_lib32-obs-vkcapture() {
|
2022-11-15 17:29:49 +01:00
|
|
|
pkgdesc='OBS Linux Vulkan/OpenGL game capture (32-bit)'
|
|
|
|
depends=('lib32-vulkan-icd-loader' 'lib32-libgl')
|
2022-08-27 22:50:06 +02:00
|
|
|
|
2022-11-15 17:29:49 +01:00
|
|
|
make -C build32 DESTDIR="$pkgdir" install
|
|
|
|
rm -r "$pkgdir/usr/bin"
|
2022-08-27 22:50:06 +02:00
|
|
|
}
|