The package doesn't currently compile properly because of changes in the obs-studio package.
LibObs name has changed to libobs and the cmake files have changed so they don't set the LIBOBS_INCLUDE_DIRS variable anymore. Also the library name gets passed to ld with -llibobs, which results in ld looking for "liblibobs" and failing. Here's my patched PKGBUILD.
# Maintainer: tytan652 <tytan652@tytanium.xyz>
# Contributor: Atterratio
# Contributor: Omar Pakker <archlinux@opakker.nl>
pkgname=obs-gphoto
pkgver=0.5.0
pkgrel=2
pkgdesc="Allows connect DSLR cameras with obs-studio through gPhoto on Linux"
arch=("i686" "x86_64" "aarch64")
url="https://github.com/maaleske/obs-gphoto"
license=("GPL2")
depends=("obs-studio" "libgphoto2")
makedepends=("cmake" "git" "libcaption")
source=("$pkgname-$pkgver.tar.gz::https://github.com/maaleske/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=("6f1303582ea89f2f3203f86620ff5aeba66b5c83a8924c69e648845ae9fe2ba7")
build() {
cd "$pkgname-$pkgver"
sed -i -e 's/LibObs/libobs/' -e 's/${LIBOBS_LIBRARIES}/obs/' CMakeLists.txt
cmake -B build \
-DLIBOBS_INCLUDE_DIRS=/usr/include/obs \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DSYSTEM_INSTALL=1
make -C build
}
package() {
cd "$pkgname-$pkgver"
make -C build DESTDIR="$pkgdir/" install
}
Pinned Comments
tytan652 commented on 2021-06-09 08:48 (UTC) (edited on 2021-08-12 06:39 (UTC) by tytan652)
I could try to fork and maintain it the but I don't have any DSLR cameras to test the code.
Sorry
Note: I use the maaleske fork, if you feel like to fork and maintain it seriously, please remove libcaption dependency.