blob: e3ab6113cb79928737d6a5587623cd1cb311e368 (
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
68
|
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
# Co-maintainer: Yurii Kolesnykov <root@yurikoles.com>
# Based on extra/electron* by
# Bruno Pagani <archange@archlinux.org>
# Caleb Maclennan <caleb@alerque.com>
_projectname=electron
_major=34
_pkgname="${_projectname}${_major}"
pkgname="${_pkgname}"-bin
_subver="0.1"
_pkgver="${_major}.${_subver}"
pkgver="${_pkgver/-/.}"
pkgrel=1
pkgdesc="Build cross platform desktop apps with web technologies — prebuilt"
arch=(
'aarch64'
'armv7h'
'x86_64'
)
url='https://electronjs.org'
_ghurl="https://github.com/electron/electron"
license=(
'MIT'
'LicenseRef-custom'
)
provides=(
"${_pkgname}=${pkgver}"
)
conflicts=("${_pkgname}")
depends=(
'alsa-lib'
'gtk3'
'nss'
)
optdepends=(
'kde-cli-tools: file deletion support (kioclient5)'
'pipewire: WebRTC desktop sharing under Wayland'
'qt6-base: enable Qt6 with --enable-features=AllowQt'
'gtk4: for --gtk-version=4 (GTK4 IME might work better on Wayland)'
'trash-cli: file deletion support (trash-put)'
"xdg-utils: open URLs with desktop's default (xdg-email, xdg-open)"
)
source_aarch64=(
"${_pkgname}-chromedriver-${pkgver}-aarch64.zip::${_ghurl}/releases/download/v${_pkgver}/chromedriver-v${_pkgver}-linux-arm64.zip"
"${_pkgname}-${pkgver}-aarch64.zip::${_ghurl}/releases/download/v${_pkgver}/electron-v${_pkgver}-linux-arm64.zip"
)
source_armv7h=(
"${_pkgname}-chromedriver-${pkgver}-armv7h.zip::${_ghurl}/releases/download/v${_pkgver}/chromedriver-v${_pkgver}-linux-armv7l.zip"
"${_pkgname}-${pkgver}-armv7h.zip::${_ghurl}/releases/download/v${_pkgver}/electron-v${_pkgver}-linux-armv7l.zip"
)
source_x86_64=(
"${_pkgname}-chromedriver-${pkgver}-x86_64.zip::${_ghurl}/releases/download/v${_pkgver}/chromedriver-v${_pkgver}-linux-x64.zip"
"${_pkgname}-${pkgver}-x86_64.zip::${_ghurl}/releases/download/v${_pkgver}/electron-v${_pkgver}-linux-x64.zip"
)
sha256sums_aarch64=('aa3c5fa44fb78bcb8d5ca89a3063dce7e755aa527d67e13a82a53cc2a8360492'
'db16bcca04ee7082f044d75e5410cb450725cb55c5498fac15c6f92079e856d0')
sha256sums_armv7h=('2941b030426660efa474727f7bfbb1cefbffeb2bac0dc8a5a6c40e25f9ce52e7'
'150558414c2b7f555471b43b64ead836539eaf69ac590817c198f5a80fc14219')
sha256sums_x86_64=('bfa89dcce450b48298b2e34dd5ebafc19e1dfd275db4b75cece02c592f0c5e4e'
'a80804d6469feeb71f8853cdc699a64dc07b07085c4a4c56eedfb24a3049f221')
package() {
install -Dm755 -d "${pkgdir}/usr/"{bin,lib/"${_pkgname}"}
find "${srcdir}" -mindepth 1 -maxdepth 1 -type f ! -name "*.zip" ! -name "LICENSE*" -exec cp -r --no-preserve=ownership --preserve=mode -t "${pkgdir}/usr/lib/${_pkgname}/." {} +
cp -r --no-preserve=ownership --preserve=mode "${srcdir}/"{locales,resources} "${pkgdir}/usr/lib/${_pkgname}"
chmod u+s "${pkgdir}/usr/lib/${_pkgname}/chrome-sandbox"
ln -nfs "/usr/lib/${_pkgname}/${_projectname}" "${pkgdir}/usr/bin/${_pkgname}"
install -Dm644 "${srcdir}/LICENSE"* -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|