Compare commits

..

2 commits

Author SHA1 Message Date
7225f40574 upgpkg: obs-vkcapture 1.3.0-1
upstream release
2023-01-17 17:10:21 +01:00
57c1e0daff Generically use cmake for build instead of make directly 2022-12-06 22:10:20 +01:00
2 changed files with 9 additions and 9 deletions

View file

@ -1,5 +1,5 @@
pkgbase = obs-vkcapture pkgbase = obs-vkcapture
pkgver = 1.2.2 pkgver = 1.3.0
pkgrel = 1 pkgrel = 1
url = https://github.com/nowrep/obs-vkcapture url = https://github.com/nowrep/obs-vkcapture
arch = x86_64 arch = x86_64
@ -13,8 +13,8 @@ pkgbase = obs-vkcapture
depends = vulkan-icd-loader depends = vulkan-icd-loader
depends = libgl depends = libgl
depends = obs-studio>=27 depends = obs-studio>=27
source = https://github.com/nowrep/obs-vkcapture/archive/v1.2.2/obs-vkcapture-1.2.2.tar.gz source = https://github.com/nowrep/obs-vkcapture/archive/v1.3.0/obs-vkcapture-1.3.0.tar.gz
sha512sums = 382578afbd9bfacc4e3b2bf16e244ab8318e07c1cfdbe2d887acae6eefea4eba5ccc03e0e96ddd06e1bb65a229c622eb8205a380dace0abb91dce07812419a31 sha512sums = 60e7bb315c8863fe97160e1cae19286ea70ff2d820d1868e45f84dd41955dc77bcc5e94b3075a81d05bfd32f523e84fbca0d57429a9e94ef0c80fb95b3dc8f68
pkgname = obs-vkcapture pkgname = obs-vkcapture
pkgdesc = OBS Linux Vulkan/OpenGL game capture pkgdesc = OBS Linux Vulkan/OpenGL game capture

View file

@ -2,7 +2,7 @@
pkgbase=obs-vkcapture pkgbase=obs-vkcapture
pkgname=("$pkgbase" "lib32-$pkgbase") pkgname=("$pkgbase" "lib32-$pkgbase")
pkgver=1.2.2 pkgver=1.3.0
pkgrel=1 pkgrel=1
url="https://github.com/nowrep/$pkgbase" url="https://github.com/nowrep/$pkgbase"
license=('GPL2') license=('GPL2')
@ -10,7 +10,7 @@ arch=('x86_64')
depends=('vulkan-icd-loader' 'libgl' 'obs-studio>=27') depends=('vulkan-icd-loader' 'libgl' 'obs-studio>=27')
makedepends=('gcc' 'cmake' 'vulkan-headers' 'lib32-gcc-libs' 'lib32-vulkan-icd-loader' 'lib32-libgl') 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") source=("https://github.com/nowrep/$pkgbase/archive/v$pkgver/$pkgbase-$pkgver.tar.gz")
sha512sums=('382578afbd9bfacc4e3b2bf16e244ab8318e07c1cfdbe2d887acae6eefea4eba5ccc03e0e96ddd06e1bb65a229c622eb8205a380dace0abb91dce07812419a31') sha512sums=('60e7bb315c8863fe97160e1cae19286ea70ff2d820d1868e45f84dd41955dc77bcc5e94b3075a81d05bfd32f523e84fbca0d57429a9e94ef0c80fb95b3dc8f68')
build() { build() {
cmake -B build -S "$pkgbase-$pkgver" \ cmake -B build -S "$pkgbase-$pkgver" \
@ -18,7 +18,7 @@ build() {
-DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_DATADIR=/share \ -DCMAKE_INSTALL_DATADIR=/share \
-DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_TYPE=Release
make -C build cmake --build build
export CFLAGS="-m32 ${CFLAGS}" export CFLAGS="-m32 ${CFLAGS}"
export CXXFLAGS="-m32 ${CXXFLAGS}" export CXXFLAGS="-m32 ${CXXFLAGS}"
@ -31,19 +31,19 @@ build() {
-DCMAKE_LIBRARY_PATH=/usr/lib32 \ -DCMAKE_LIBRARY_PATH=/usr/lib32 \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DBUILD_PLUGIN=OFF -DBUILD_PLUGIN=OFF
make -C build32 cmake --build build32
} }
package_obs-vkcapture() { package_obs-vkcapture() {
pkgdesc='OBS Linux Vulkan/OpenGL game capture' pkgdesc='OBS Linux Vulkan/OpenGL game capture'
make -C build DESTDIR="$pkgdir" install DESTDIR="$pkgdir" cmake --install build
} }
package_lib32-obs-vkcapture() { package_lib32-obs-vkcapture() {
pkgdesc='OBS Linux Vulkan/OpenGL game capture (32-bit)' pkgdesc='OBS Linux Vulkan/OpenGL game capture (32-bit)'
depends=('lib32-vulkan-icd-loader' 'lib32-libgl') depends=('lib32-vulkan-icd-loader' 'lib32-libgl')
make -C build32 DESTDIR="$pkgdir" install DESTDIR="$pkgdir" cmake --install build32
rm -r "$pkgdir/usr/bin" rm -r "$pkgdir/usr/bin"
} }