summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2113b85772a2399eea534db32315b4ae1663e8f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: tytan652 <tytan652@tytanium.xyz>
pkgname=obs-gphoto
pkgver=0.5.0
_obsver=27.0.0
pkgrel=1
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>=$_obsver" "libgphoto2" "libcaption")
makedepends=("cmake" "git")
source=(
  "$pkgname-$pkgver.tar.gz"::"https://github.com/maaleske/$pkgname/archive/v$pkgver.tar.gz"
  "obs-studio-$_obsver.tar.gz::https://github.com/obsproject/obs-studio/archive/$_obsver.tar.gz"
)
sha256sums=(
  "6f1303582ea89f2f3203f86620ff5aeba66b5c83a8924c69e648845ae9fe2ba7"
  "c7ea5369f4c94203a8a81b73c6372873f08ab9e5b20860691dad2c29f5dda85e"
)

build() {
  cd "$pkgname-$pkgver"
  cmake -B build \
  -DLIBOBS_INCLUDE_DIR=../obs-studio-$_obsver/libobs \
  -DCMAKE_INSTALL_PREFIX='/usr' \
  -DSYSTEM_INSTALL=1
  make -C build
}

package() {
  cd "$pkgname-$pkgver"
  make -C build DESTDIR="$pkgdir/" install
}