diff --git a/electron-bin/lure.sh b/electron-bin/lure.sh new file mode 100644 index 0000000..1ac995c --- /dev/null +++ b/electron-bin/lure.sh @@ -0,0 +1,46 @@ +name='electron-bin' +version='30.0.1' +release='1' +desc='Build cross platform desktop apps with web technologies — prebuilt' +homepage='https://electronjs.org' +maintainer="Евгений Храмов " +architectures=('amd64') +license=('MIT custom') +provides=('electron') +conflicts=('electron' 'electron-bin' 'electron-git') + +deps=('c-ares' 'alsa-lib' 'gtk3' 'libevent' 'libffi' 'nss') +build_deps=('pnpm' 'git') +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}") +checksums=('SKIP') + +package() { + 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/${_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 +} diff --git a/vesktop/lure.sh b/vesktop/lure.sh index 6d5e0cd..44a533e 100644 --- a/vesktop/lure.sh +++ b/vesktop/lure.sh @@ -4,7 +4,7 @@ release='1' desc='Vesktop gives you the performance of web Discord and the comfort of Discord Desktop' homepage='https://github.com/Vencord/Vesktop' maintainer="Евгений Храмов " -architectures=('amd64' 'aarch64') +architectures=('amd64') license=('GPL3') provides=('vencord') conflicts=('vencord') @@ -12,7 +12,7 @@ conflicts=('vencord') deps=('electron') deps_redos=('electron') build_deps=('pnpm' 'git') -optdepends=( +opt_deps=( 'libnotify: Notifications' 'xdg-utils: Open links, files, etc' 'xdg-desktop-portal: Screensharing with Wayland' @@ -24,10 +24,7 @@ checksums=('SKIP') prepare() { cd ${srcdir}/Vesktop-${version} - mkdir /usr/lib/npm - cd /usr/lib/npm - npm install electron --save-dev - sed -i '/linux/s/^/ "electronDist": "\/usr\/lib\/npm\/node_modules\/electron",\n/' "${srcdir}/Vesktop-${version}/package.json" + sed -i '/linux/s/^/ "electronDist": "\/usr\/lib\/electron",\n/' "${srcdir}/Vesktop-${version}/package.json" } build() {