electron38-bin 38.1.2-1
This commit is contained in:
94
electron38-bin/alr.sh
Normal file
94
electron38-bin/alr.sh
Normal file
@@ -0,0 +1,94 @@
|
||||
name='electron38-bin'
|
||||
version='38.1.2'
|
||||
release='1'
|
||||
desc='Build cross platform desktop apps with web technologies'
|
||||
desc_ru='Создание кроссплатформенных настольных приложений с веб-технологиями'
|
||||
homepage='https://electronjs.org'
|
||||
maintainer="Evgeniy Khramov <xpamych@yandex.ru>"
|
||||
maintainer_ru="Евгений Храмов <xpamych@yandex.ru>"
|
||||
architectures=('all')
|
||||
license=('MIT custom')
|
||||
provides=("electron31=$version")
|
||||
conflicts=("electron31")
|
||||
|
||||
deps=(
|
||||
'c-ares'
|
||||
'alsa-lib'
|
||||
'gtk3'
|
||||
'libevent'
|
||||
'libffi'
|
||||
'nss'
|
||||
)
|
||||
|
||||
deps_arch=("${deps[@]}")
|
||||
deps_alt=(
|
||||
'c-ares'
|
||||
'libalsa'
|
||||
'gtk3'
|
||||
'libevent'
|
||||
'libffi'
|
||||
'libnss'
|
||||
)
|
||||
deps_debian=(
|
||||
'libc-ares2'
|
||||
'libasound2'
|
||||
'libgtk-3-0'
|
||||
'libevent-2.1-7'
|
||||
'libffi8'
|
||||
'libnss3'
|
||||
)
|
||||
deps_fedora=("${deps[@]}")
|
||||
deps_redos=("${deps[@]}")
|
||||
deps_rhel=("${deps[@]}")
|
||||
deps_rosa=("${deps[@]}")
|
||||
|
||||
build_deps=('git')
|
||||
|
||||
build_deps_arch=("${build_deps[@]}" 'pnpm')
|
||||
build_deps_alt=("${build_deps[@]}")
|
||||
build_deps_debian=("${build_deps[@]}" 'pnpm')
|
||||
build_deps_fedora=("${build_deps[@]}" 'pnpm')
|
||||
build_deps_redos=("${build_deps[@]}" 'pnpm')
|
||||
build_deps_rhel=("${build_deps[@]}" 'pnpm')
|
||||
build_deps_rosa=("${build_deps[@]}" 'pnpm')
|
||||
opt_deps=('kde-cli-tools: file deletion support (kioclient5)'
|
||||
'pipewire: WebRTC desktop sharing under Wayland'
|
||||
'qt5-base: enable Qt5 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)')
|
||||
opt_deps_redos=('kde-cli-tools: file deletion support (kioclient5)'
|
||||
'pipewire: WebRTC desktop sharing under Wayland'
|
||||
'qt5-qtbase: enable Qt5 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)'
|
||||
)
|
||||
|
||||
sources=("https://github.com/electron/electron/releases/download/v${version}/electron-v${version}-linux-x64.zip")
|
||||
checksums=('SKIP')
|
||||
|
||||
package() {
|
||||
cd ${srcdir}
|
||||
install -dm755 "${pkgdir}/usr/lib/electron/"
|
||||
find . -mindepth 1 -maxdepth 1 -type f ! -name "*.zip" ! -name "LICENSE*" -exec cp -r --no-preserve=ownership --preserve=mode -t "${pkgdir}/usr/lib/electron/." {} +
|
||||
|
||||
for _folder in 'locales' 'resources'; do
|
||||
cp -r --no-preserve=ownership --preserve=mode "${_folder}/" "${pkgdir}/usr/lib/electron/${_folder}/"
|
||||
done
|
||||
|
||||
chmod u+s "${pkgdir}/usr/lib/electron/chrome-sandbox"
|
||||
|
||||
install -dm755 "${pkgdir}/usr/bin"
|
||||
ln -nfs "/usr/lib/electron/electron" "${pkgdir}/usr/bin/electron"
|
||||
|
||||
for _license in 'LICENSE' 'LICENSES.chromium.html'; do
|
||||
install -Dm644 "${_license}" "${pkgdir}/usr/share/licenses/${name}/${_license}"
|
||||
done
|
||||
}
|
||||
|
||||
files() {
|
||||
files-find ./usr/lib/electron
|
||||
files-find-bin
|
||||
files-find-share "licenses/$name"
|
||||
}
|
Reference in New Issue
Block a user