blob: efdf086f3571d90b4f69a48ade46e8cfca9c6f08 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Maintainer: tytan652 <tytan652 at tytanium dot xyz>
pkgname=cef-minimal-obs-rc-bin
_cefver="127.3.4"
_version=${_cefver//-/_}
_commit="e9e2e14"
_cefbranch="6533"
_chromiumver="127.0.${_cefbranch}.100"
_rebuild="3" # The tarball sometime can get rebuild by OBS Project
pkgver="${_version}+g${_commit}+chromium_${_chromiumver}_${_rebuild}"
pkgrel=1
epoch=2
pkgdesc="Chromium Embedded Framework minimal release needed by OBS Studio beta release in /opt/cef-obs"
arch=("x86_64" "aarch64")
url="https://github.com/chromiumembedded/cef/tree/6533"
license=(BSD-3-Clause)
depends=(
"alsa-lib" "at-spi2-core" "cairo" "dbus" "expat" "gcc-libs" "glib2"
"glibc" "libcups" "libdrm" "libx11" "libxcb" "libxcomposite"
"libxdamage" "libxext" "libxfixes" "libxkbcommon" "libxrandr" "mesa"
"nspr" "nss" "pango" "wayland"
)
makedepends=("cmake")
provides=("cef-minimal-obs=$pkgver")
conflicts=("cef-minimal-obs")
# Prevent people from using link time optimisation for this package because it make OBS unable to be built against it
options=('!lto' '!strip' 'debug')
source_x86_64=("https://cdn-fastly.obsproject.com/downloads/cef_binary_6533_linux_x86_64_v3.tar.xz")
source_aarch64=("https://cdn-fastly.obsproject.com/downloads/cef_binary_6533_linux_aarch64_v3.tar.xz")
sha256sums_x86_64=("cb7225c7a937ac4cdc9c41700061f45cccc640d696902357782e57f8250bf43a")
sha256sums_aarch64=("f92df7f076bdc8cac2e3c77e27be418008b7168723201cb73fdbc2f6d91bc778")
prepare() {
cd "${srcdir}/cef_binary_${_cefbranch}_linux_${CARCH}"
# Fix directories permissions
chmod 755 Release
chmod 755 Resources
chmod 755 Resources/locales
chmod 755 include
chmod 755 include/base
chmod 755 include/base/internal
chmod 755 include/capi
chmod 755 include/capi/test
chmod 755 include/capi/views
chmod 755 include/internal
chmod 755 include/test
chmod 755 include/views
chmod 755 include/wrapper
chmod 755 libcef_dll
chmod 755 libcef_dll/base
chmod 755 libcef_dll/cpptoc
chmod 755 libcef_dll/cpptoc/test
chmod 755 libcef_dll/cpptoc/views
chmod 755 libcef_dll/ctocpp
chmod 755 libcef_dll/ctocpp/test
chmod 755 libcef_dll/ctocpp/views
chmod 755 libcef_dll/wrapper
}
package() {
mkdir -p "$pkgdir"/opt/cef-obs/
cp -a "${srcdir}/cef_binary_${_cefbranch}_linux_${CARCH}"/* "$pkgdir"/opt/cef-obs
rm -f "$pkgdir"/opt/cef-obs/LICENSE.txt
rm -rf "$pkgdir"/opt/cef-obs/cmake
install -Dm644 "${srcdir}/cef_binary_${_cefbranch}_linux_${CARCH}/LICENSE.txt" "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE
}
|