diff options
author | NexAdn | 2017-11-06 16:14:17 +0100 |
---|---|---|
committer | NexAdn | 2017-11-06 16:14:17 +0100 |
commit | 63187a2288b16d7db612c7170c9cc376ecadaf7e (patch) | |
tree | f394a49a4dba34b7fa0538403df27a36b93954d6 | |
parent | c46475488ad21a8a6863d7cff8737480337a0936 (diff) | |
download | aur-63187a2288b16d7db612c7170c9cc376ecadaf7e.tar.gz |
Version 0.3.0, compile from source
Signed-off-by: NexAdn <>
-rwxr-xr-x[-rw-r--r--] | .SRCINFO | 21 | ||||
-rwxr-xr-x[-rw-r--r--] | PKGBUILD | 40 | ||||
-rwxr-xr-x | transparentpainting.patch | 12 |
3 files changed, 48 insertions, 25 deletions
diff --git a/.SRCINFO b/.SRCINFO index 471db94f5198..491f6f68f6aa 100644..100755 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,21 +1,20 @@ pkgbase = obs-linuxbrowser pkgdesc = Browser source plugin for obs-studio based on CEF. Alternative to obs-qtwebkit. pkgver = 0.3.0 - pkgrel = 2 + pkgrel = 3 url = https://github.com/bazukas/obs-linuxbrowser + arch = i686 arch = x86_64 license = GPL - depends = obs-studio>=20.0.1 - depends = gconf - depends = nss - depends = libxss - depends = pango - depends = atk - depends = libxrandr - depends = libxcomposite + makedepends = make + makedepends = cmake + depends = obs-studio>=18.0.1 + depends = cef-minimal optdepends = pepper-flash: Flash support - source = https://github.com/bazukas/obs-linuxbrowser/releases/download/0.3.0/linuxbrowser0.3.0-obs20.0.1-64bit.tgz - sha256sums = d455b4e36f8b4ec7c12ac255a0fc0bedf3572a5c74754a14f26150e5c95edff9 + source = https://github.com/bazukas/obs-linuxbrowser/archive/0.3.0.tar.gz + source = transparentpainting.patch + sha256sums = 94ab4d2f83a6ad4bcea884240f770ca87cdea1b035228905ef0c10f7cc9f4e30 + sha256sums = 76733b17029ab1e5873c02754751b666cc4e10d6ff771f6eb8ea3d321a6d2246 pkgname = obs-linuxbrowser diff --git a/PKGBUILD b/PKGBUILD index 0dbd9933c615..571cfe643e76 100644..100755 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,27 +1,39 @@ # Maintainer: NexAdn pkgname=obs-linuxbrowser pkgver=0.3.0 -_obsver=20.0.1 -pkgrel=2 +pkgrel=3 pkgdesc="Browser source plugin for obs-studio based on CEF. Alternative to obs-qtwebkit." -arch=("x86_64") +arch=("i686" "x86_64") url="https://github.com/bazukas/obs-linuxbrowser" license=("GPL") depends=( - "obs-studio>=${_obsver}" - "gconf" "nss" "libxss" "pango" "atk" "libxrandr" "libxcomposite" + "obs-studio>=18.0.1" "cef-minimal" ) +makedepends=("make" "cmake") optdepends=("pepper-flash: Flash support") source=( - "https://github.com/bazukas/${pkgname}/releases/download/${pkgver}/linuxbrowser${pkgver}-obs${_obsver}-64bit.tgz" -) -sha256sums=( - "d455b4e36f8b4ec7c12ac255a0fc0bedf3572a5c74754a14f26150e5c95edff9" + "https://github.com/bazukas/$pkgname/archive/${pkgver}.tar.gz" + "transparentpainting.patch" ) +sha256sums=('94ab4d2f83a6ad4bcea884240f770ca87cdea1b035228905ef0c10f7cc9f4e30' + '76733b17029ab1e5873c02754751b666cc4e10d6ff771f6eb8ea3d321a6d2246') +prepare() { + cd "$srcdir"/"$pkgname-${pkgver}" + patch -p1 < $srcdir/transparentpainting.patch +} + +build() { + cd "$srcdir"/${pkgname}-${pkgver} + mkdir -p ./build + cd ./build + cmake -D CEF_DIR="/opt/cef" .. + make clean + make -j4 +} package() { - cd ${srcdir}/${pkgname} - install -d ${pkgdir}/usr/lib/obs-plugins/ - install -d ${pkgdir}/usr/share/obs/obs-plugins/${pkgname}/ - install -Dm755 ./bin/64bit/* ${pkgdir}/usr/lib/obs-plugins/ - cp -R ./data/* ${pkgdir}/usr/share/obs/obs-plugins/${pkgname}/ + mkdir -p "$pkgdir"/usr/lib/obs-plugins/ + mkdir -p "$pkgdir"/usr/share/obs/obs-plugins/$pkgname + cp -R "$srcdir"/$pkgname-${pkgver}/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-$pkgver/build/build/$pkgname/data/* "$pkgdir"/usr/share/obs/obs-plugins/$pkgname } diff --git a/transparentpainting.patch b/transparentpainting.patch new file mode 100755 index 000000000000..ddfd7486aed1 --- /dev/null +++ b/transparentpainting.patch @@ -0,0 +1,12 @@ +diff --git a/src/browser/browser-app.cpp b/src/browser/browser-app.cpp +index 967b55b..6bedadb 100644 +--- a/src/browser/browser-app.cpp ++++ b/src/browser/browser-app.cpp +@@ -246,7 +246,6 @@ void BrowserApp::OnContextInitialized() + return; + + CefWindowInfo info; +- info.transparent_painting_enabled = true; + info.width = width; + info.height = height; + info.windowless_rendering_enabled = true; |