2022-08-27 22:50:06 +02:00
|
|
|
# Maintainer: Manuel Hüsers <aur@huesers.de>
|
|
|
|
|
|
|
|
pkgbase=obs-vkcapture
|
|
|
|
pkgname=("$pkgbase" "lib32-$pkgbase")
|
2023-12-30 09:56:09 +01:00
|
|
|
pkgver=1.4.8
|
2022-08-27 22:50:06 +02:00
|
|
|
pkgrel=1
|
|
|
|
url="https://github.com/nowrep/$pkgbase"
|
|
|
|
license=('GPL2')
|
|
|
|
arch=('x86_64')
|
2023-04-04 00:58:31 +02:00
|
|
|
depends=('vulkan-icd-loader' 'libgl' 'libegl' 'obs-studio>=27')
|
2023-06-17 00:56:06 +02:00
|
|
|
makedepends=('gcc' 'cmake' 'vulkan-headers' 'lib32-gcc-libs' 'lib32-vulkan-icd-loader' 'lib32-libgl' 'lib32-libegl')
|
2022-11-29 19:08:19 +01:00
|
|
|
source=("https://github.com/nowrep/$pkgbase/archive/v$pkgver/$pkgbase-$pkgver.tar.gz")
|
2023-12-30 09:56:09 +01:00
|
|
|
sha512sums=('a46149132143bfddc3cbfd6d97427b6f055efd4bc83989672446fa94eee27b1b56f3e810bd62e4725a7028d33d995a20e3b0a03f03c457e4c3d738e414c8f421')
|
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
|
2022-12-06 22:10:20 +01:00
|
|
|
cmake --build build
|
2022-11-15 17:29:49 +01:00
|
|
|
|
|
|
|
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
|
2022-12-06 22:10:20 +01:00
|
|
|
cmake --build build32
|
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-12-06 22:10:20 +01:00
|
|
|
DESTDIR="$pkgdir" cmake --install build
|
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)'
|
2023-05-27 15:15:15 +02:00
|
|
|
depends=('lib32-vulkan-icd-loader' 'lib32-libgl' 'lib32-libegl')
|
2022-08-27 22:50:06 +02:00
|
|
|
|
2022-12-06 22:10:20 +01:00
|
|
|
DESTDIR="$pkgdir" cmake --install build32
|
2022-11-15 17:29:49 +01:00
|
|
|
rm -r "$pkgdir/usr/bin"
|
2022-08-27 22:50:06 +02:00
|
|
|
}
|