blob: 8281dbcbf3de3ecc269c3c181334b7f98f348e87 (
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
|
# Maintainer: EatMyVenom <eat.my.venomm@gmail.com>
_name=electron-beta
pkgname=electron-beta-bin
_ver="13.0.0-beta.4"
pkgver=13.0.0.beta.4
pkgrel=1
pkgdesc="Build cross platform desktop apps with web technologies"
arch=('x86_64')
url="https://electronjs.org/"
license=('MIT' 'custom')
depends=('c-ares' 'ffmpeg' 'gtk3' 'http-parser' 'libevent' 'libxslt' 'minizip'
'nss' 're2' 'snappy')
makedepends=('tar')
provides=('electron' 'electron-beta')
conflicts=()
replaces=()
source=("https://github.com/electron/electron/releases/download/v${_ver}/electron-v${_ver}-linux-x64.zip")
md5sums=('c157355cdbc4efdf27cb31d921ebf604')
package() {
cd $srcdir
install -dm755 "${pkgdir}/usr/lib/${_name}"
cp -r "./" "${pkgdir}/usr/lib/${_name}"
chmod u+s "${pkgdir}/usr/lib/${_name}/chrome-sandbox"
install -dm755 "${pkgdir}/usr/share/licenses/${_name}"
for l in "${pkgdir}/usr/lib/${_name}"/{LICENSE,LICENSES.chromium.html}; do
ln -s \
"$(realpath --relative-to="${pkgdir}/usr/share/licenses/${_name}" "${l}")" \
"${pkgdir}/usr/share/licenses/${_name}"
done
install -dm755 "${pkgdir}"/usr/bin
ln -s "../lib/${_name}/electron" "${pkgdir}/usr/bin/${_name}"
}
|