summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorzxp198210052024-08-21 18:10:16 +0800
committerzxp198210052024-08-21 18:10:16 +0800
commit6266878d0356bb32417dca564b89e23b7f779370 (patch)
tree89b49ccfa3da1d95e66daecb808c3e86b99b4721 /PKGBUILD
parent47856abc54b67fd5cfea301942d11cfa79431a2c (diff)
downloadaur-electron19-bin.tar.gz
fix errors
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD113
1 files changed, 59 insertions, 54 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 4252bc259e46..9d88f8a40748 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,71 +1,76 @@
# Maintainer: Yurii Kolesnykov <root@yurikoles.com>
-
+# Co-Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
# Based on aur/electron8-bin by Tom Vincent <http://tlvince.com/contact>
-
-# Based on extra/electron19 by
-# Bruno Pagani <archange@archlinux.org>
+# Based on extra/electron28 by
# Caleb Maclennan <caleb@alerque.com>
-
+# loqs <bugs-archlinux@entropy-collector.net>
+# kxxt <rsworktech@outlook.com>
# https://releases.electronjs.org/
-
-_pkgver=19.1.9
-pkgrel=2
-pkgver="${_pkgver/-/.}"
-_major_ver=${pkgver%%.*}
_projectname=electron
-_pkgname="${_projectname}${_major_ver}"
-pkgname="${_pkgname}"-bin
-pkgdesc='Build cross platform desktop apps with web technologies'
-pkgdesc+=' — binary'
-arch=(x86_64 armv7h aarch64)
+_major=19
+_pkgname="${_projectname}${_major}"
+pkgname="${_pkgname}-bin"
+_subver="1.9"
+_pkgver="${_major}.${_subver}"
+pkgver="${_pkgver/-/.}"
+pkgrel=3
+pkgdesc="Build cross platform desktop apps with web technologies — prebuilt"
+arch=(
+ 'aarch64'
+ 'armv7h'
+ 'x86_64'
+)
url='https://electronjs.org'
-license=(MIT BSD-3-Clause)
-depends=(
- alsa-lib # libasound.so.2
- gcc-libs # libgcc_s.so
- glibc # libc.so libm.so
- gtk3 libgtk-3.so
- nss # libnss3.so
+_ghurl="https://github.com/electron/electron"
+license=(
+ 'MIT'
+ 'LicenseRef-custom'
+)
+provides=(
+ "${_pkgname}=${pkgver}"
)
-optdepends=('kde-cli-tools: file deletion support (kioclient5)'
- 'pipewire: WebRTC desktop sharing under Wayland'
- 'trash-cli: file deletion support (trash-put)'
- 'xdg-utils: open URLs with desktop’s default (xdg-email, xdg-open)')
-provides=("${_pkgname}=${pkgver}")
conflicts=("${_pkgname}")
-_releaseurl="https://github.com/${_projectname}/${_projectname}/releases/download/v${_pkgver}"
+depends=(
+ 'alsa-lib'
+ 'gtk3'
+ 'nss'
+)
+optdepends=(
+ 'kde-cli-tools: file deletion support (kioclient5)'
+ 'pipewire: WebRTC desktop sharing under Wayland'
+ 'qt5-base: enable Qt5 with --enable-features=AllowQt'
+ 'trash-cli: file deletion support (trash-put)'
+ 'xdg-utils: open URLs with desktop`s default'
+)
source_aarch64=(
- "${_releaseurl}/chromedriver-v${_pkgver}-linux-arm64.zip"
- "${_releaseurl}/${_projectname}-v${_pkgver}-linux-arm64.zip"
+ "${pkgname%-bin}-chromedriver-${pkgver}-aarch64.zip::${_ghurl}/releases/download/v${_pkgver}/chromedriver-v${_pkgver}-linux-arm64.zip"
+ "${pkgname%-bin}-${pkgver}-aarch64.zip::${_ghurl}/releases/download/v${_pkgver}/electron-v${_pkgver}-linux-arm64.zip"
)
source_armv7h=(
- "${_releaseurl}/chromedriver-v${_pkgver}-linux-armv7l.zip"
- "${_releaseurl}/${_projectname}-v${_pkgver}-linux-armv7l.zip"
+ "${pkgname%-bin}-chromedriver-${pkgver}-armv7h.zip::${_ghurl}/releases/download/v${_pkgver}/chromedriver-v${_pkgver}-linux-armv7l.zip"
+ "${pkgname%-bin}-${pkgver}-armv7h.zip::${_ghurl}/releases/download/v${_pkgver}/electron-v${_pkgver}-linux-armv7l.zip"
)
source_x86_64=(
- "${_releaseurl}/chromedriver-v${_pkgver}-linux-x64.zip"
- "${_releaseurl}/${_projectname}-v${_pkgver}-linux-x64.zip"
+ "${pkgname%-bin}-chromedriver-${pkgver}-x86_64.zip::${_ghurl}/releases/download/v${_pkgver}/chromedriver-v${_pkgver}-linux-x64.zip"
+ "${pkgname%-bin}-${pkgver}-x86_64.zip::${_ghurl}/releases/download/v${_pkgver}/electron-v${_pkgver}-linux-x64.zip"
)
-sha256sums_x86_64=('6b066a9784e86e8710ccbf6224ca143b12d0f3b2988c34a4852d0d1002bb08a6'
- 'fd320675f1647e03d96764a906c51c567bf0bcbe0301550e4559d66dd76796df')
-sha256sums_armv7h=('cb46629e77f20c40b6c48ab485410204f8d22001b5d94f002590fc9d357cabb6'
- '90b4afbf03dde52953ada2d7082fed9a8954e7547d1d93c6286ba04f9ef68987')
sha256sums_aarch64=('72d48a1d35ee2b952ce79d7786bc82dd12b54adfb7ad96a6a0cb5c11f512c47e'
'473e07a6db8a92d4627ef1012dda590c5a04fb3d9804cc5237b033fdb6f52211')
+sha256sums_armv7h=('cb46629e77f20c40b6c48ab485410204f8d22001b5d94f002590fc9d357cabb6'
+ '90b4afbf03dde52953ada2d7082fed9a8954e7547d1d93c6286ba04f9ef68987')
+sha256sums_x86_64=('6b066a9784e86e8710ccbf6224ca143b12d0f3b2988c34a4852d0d1002bb08a6'
+ 'fd320675f1647e03d96764a906c51c567bf0bcbe0301550e4559d66dd76796df')
package() {
- install -dm755 "${pkgdir}/usr/lib/${_pkgname}/"
- find . -mindepth 1 -maxdepth 1 -type f ! -name "*.zip" ! -name "LICENSE*" -exec cp -r --no-preserve=ownership --preserve=mode -t "${pkgdir}/usr/lib/${_pkgname}/." {} +
-
- for _folder in 'locales' 'resources'; do
- cp -r --no-preserve=ownership --preserve=mode "${_folder}/" "${pkgdir}/usr/lib/${_pkgname}/${_folder}/"
- done
-
- chmod u+s "${pkgdir}/usr/lib/${_pkgname}/chrome-sandbox"
-
- install -dm755 "${pkgdir}/usr/bin"
- ln -nfs "/usr/lib/${_pkgname}/${_projectname}" "${pkgdir}/usr/bin/${_pkgname}"
-
- for _license in 'LICENSE' 'LICENSES.chromium.html'; do
- install -Dm644 "${_license}" "${pkgdir}/usr/share/licenses/${pkgname}/${_license}"
- done
-}
+ install -dm755 "${pkgdir}/usr/lib/${_pkgname}/"
+ find . -mindepth 1 -maxdepth 1 -type f ! -name "*.zip" ! -name "LICENSE*" -exec cp -r --no-preserve=ownership --preserve=mode -t "${pkgdir}/usr/lib/${_pkgname}/." {} +
+ for _folder in 'locales' 'resources'; do
+ cp -r --no-preserve=ownership --preserve=mode "${_folder}/" "${pkgdir}/usr/lib/${_pkgname}/${_folder}/"
+ done
+ chmod u+s "${pkgdir}/usr/lib/${_pkgname}/chrome-sandbox"
+ install -dm755 "${pkgdir}/usr/bin"
+ ln -nfs "/usr/lib/${_pkgname}/${_projectname}" "${pkgdir}/usr/bin/${_pkgname}"
+
+ for _license in 'LICENSE' 'LICENSES.chromium.html'; do
+ install -Dm644 "${_license}" "${pkgdir}/usr/share/licenses/${pkgname}/${_license}"
+ done
+} \ No newline at end of file