summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5071782d36b943222080915a1984f7ccf8e18c28 (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
35
36
37
38
39
# Maintainer: NexAdn
pkgname=obs-linuxbrowser
pkgver=0.4.0
pkgrel=1
pkgdesc="Browser source plugin for obs-studio based on CEF. Alternative to obs-qtwebkit."
arch=("i686" "x86_64")
url="https://github.com/bazukas/obs-linuxbrowser"
license=("GPL")
conflicts=("obs-linuxbrowser-bin")
depends=(
	"obs-studio>=21.1.1"
	"gconf" "nss" "libxss" "pango" "atk" "libxrandr" "libxcomposite"
)
makedepends=("make" "cmake" "git" "cef-minimal")
optdepends=("pepper-flash: Flash support"
	"cef-minimal: Up-to-date browser backend")
source=(
	"${pkgname}::git+https://github.com/bazukas/${pkgname}.git"
)
sha256sums=('SKIP')
prepare() {
	cd "$srcdir"/"${pkgname}"
	git checkout ${pkgver}
}
build() {
	cd "${srcdir}"/${pkgname}
	mkdir -p ./build
	cd ./build
	cmake -D CEF_DIR="/opt/cef" ..
	make clean
	make
}
package() {
	mkdir -p "${pkgdir}"/usr/lib/obs-plugins/
	mkdir -p "${pkgdir}"/usr/share/obs/obs-plugins/${pkgname}
	cp -R "${srcdir}"/${pkgname}/build/build/${pkgname}/bin/64bit/* "${pkgdir}"/usr/lib/obs-plugins/
	mv "${pkgdir}"/usr/lib/obs-plugins/libobs-linuxbrowser.so "${pkgdir}"/usr/lib/obs-plugins/obs-linuxbrowser.so
	cp -R "${srcdir}"/${pkgname}/build/build/${pkgname}/data/* "${pkgdir}"/usr/share/obs/obs-plugins/${pkgname}
}