arch-packages/obs-vkcapture/PKGBUILD

50 lines
1.5 KiB
Text
Raw Normal View History

2022-08-27 22:50:06 +02:00
# Maintainer: Manuel Hüsers <aur@huesers.de>
pkgbase=obs-vkcapture
pkgname=("$pkgbase" "lib32-$pkgbase")
pkgver=1.3.2
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' 'libegl' 'obs-studio>=27')
2022-08-27 22:50:06 +02:00
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=('ada2f6b2c453dade28a37abac0728096c84aa1522215588d97113eeb047d7af57b56b302016735ec342b7f5841dadf2cad554794647b7f82f9e01cc62e52603d')
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
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
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
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)'
depends=('lib32-vulkan-icd-loader' 'lib32-libgl')
2022-08-27 22:50:06 +02: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
}