# Maintainer: Alice Gaudon # Contributor: Anderson Rocha pkgname=cef-minimal-obs-studio-browser-bin pkgver=94.4.11 _pkgcommit="gc4d96f0" _chromiumver="94.0.4606.81" _pkgver="${pkgver}+${_pkgcommit}+chromium-${_chromiumver}" _url_pkgver="${pkgver}%2B${_pkgcommit}%2Bchromium-${_chromiumver}" pkgrel=1 pkgdesc="Chromium Embedded Framework minimal release" arch=("i686" "x86_64") url="https://bitbucket.org/chromiumembedded/cef" license=("BSD") depends=("nss" "alsa-lib" "libxss" "libxtst" "libglvnd" "pango" "libxcursor" "dbus" "libxrandr" "libxcomposite" "at-spi2-atk") makedepends=("cmake" "make") provides=("cef-minimal=${pkgver}") conflicts=("cef-standard" "cef-git" "cef") cdn_build_package_url="https://cef-builds.spotifycdn.com" source_i686=( "${cdn_build_package_url}/cef_binary_${_url_pkgver}_linux32_minimal.tar.bz2" ) source_x86_64=( "${cdn_build_package_url}/cef_binary_${_url_pkgver}_linux64_minimal.tar.bz2" ) sha1sums_i686=('6e4602b2ca5993f2a849ed9800070d3583433b6d') sha1sums_x86_64=('7a8d86857dabb7a76c431554088b069aecbd0607') [[ "$CARCH" = "i686" ]] && _arch="32" [[ "$CARCH" = "x86_64" ]] && _arch="64" build() { cd "$srcdir"/cef_binary_${_pkgver}_linux${_arch}_minimal sed -i 's/-Werror/#-Werror/g' cmake/cef_variables.cmake cmake . make libcef_dll_wrapper } package() { mkdir -p "$pkgdir"/opt/cef/ cp -R "$srcdir"/cef_binary_${_pkgver}_linux${_arch}_minimal/* "$pkgdir"/opt/cef install -Dm644 "$srcdir"/cef_binary_${_pkgver}_linux${_arch}_minimal/LICENSE.txt "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE # Fix read permissions chmod 644 "$pkgdir"/opt/cef/libcef_dll_wrapper/libcef_dll_wrapper.a }