49 lines
1.4 KiB
Bash
49 lines
1.4 KiB
Bash
# Maintainer: Manuel Hüsers <aur@huesers.de>
|
|
|
|
pkgbase=obs-vkcapture
|
|
pkgname=("$pkgbase" "lib32-$pkgbase")
|
|
pkgver=1.2.2
|
|
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/v$pkgver/$pkgbase-$pkgver.tar.gz")
|
|
sha512sums=('382578afbd9bfacc4e3b2bf16e244ab8318e07c1cfdbe2d887acae6eefea4eba5ccc03e0e96ddd06e1bb65a229c622eb8205a380dace0abb91dce07812419a31')
|
|
|
|
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"
|
|
}
|