Package Details: electerm-bin 1.39.5-1

Git Clone URL: https://aur.archlinux.org/electerm-bin.git (read-only, click to copy)
Package Base: electerm-bin
Description: An electron-based SSH/SFTP Connection manager and terminal
Upstream URL: https://electerm.html5beta.com
Keywords: ssh terminal
Licenses: MIT
Conflicts: electerm, electerm-git
Provides: electerm
Submitter: solveit
Maintainer: solveit
Last Packager: solveit
Votes: 5
Popularity: 0.002146
First Submitted: 2020-02-14 19:16 (UTC)
Last Updated: 2024-05-13 14:57 (UTC)

Latest Comments

1 2 Next › Last »

zxp19821005 commented on 2024-05-09 07:45 (UTC) (edited on 2024-05-09 07:47 (UTC) by zxp19821005)

I'm the maintainer of electerm-git.Here are some suggestion: Use system-wide electron and add multi-arch support.

# Maintainer: Michael Asher <michael@wesolveeverything.com>
pkgname=electerm-bin
pkgver=1.39.2
_electronversion=26
pkgrel=1
pkgdesc="An electron-based SSH/SFTP Connection manager and terminal"
arch=(
    'aarch64'
    'armv7h'
    'x86_64'
)
url="https://electerm.html5beta.com"
_ghurl="https://github.com/electerm/electerm"
license=('MIT')
provides=("${pkgname%-bin}=${pkgver}")
conflicts=("${pkgname%-bin}")
depends=(
    "electron${_electronversion}"
    'perl'
    'java-runtime'
)
source=(
    "LICENSE-${pkgver}::https://raw.githubusercontent.com/electerm/electerm/v${pkgver}/LICENSE"
    "${pkgname%-bin}.sh"
)
source_aarch64=("${pkgname%-bin}-${pkgver}-aarch64.deb::${_ghurl}/releases/download/v${pkgver}/${pkgname%-bin}-${pkgver}-linux-arm64.deb")
source_armv7h=("${pkgname%-bin}-${pkgver}-armv7h.deb::${_ghurl}/releases/download/v${pkgver}/${pkgname%-bin}-${pkgver}-linux-armv7l.deb")
source_x86_64=("${pkgname%-bin}-${pkgver}-x86_64.deb::${_ghurl}/releases/download/v${pkgver}/${pkgname%-bin}-${pkgver}-linux-amd64.deb")
sha256sums=('a9b7ccf11bec7796b217a7575d3324c16613a46bfc899e72ec2c11da28d0991e'
            '05762c556c85a4423b28600ccbbe7b7dcdd3d1be526ef4a588a510671fa6c62a')
sha256sums_aarch64=('f2d0fa816b4993b21d52682add9f3b456cb1890a08cdd14dc8e7374b4a5761dd')
sha256sums_armv7h=('16bfc26e2bd27edd519d3f6c29978db1282724761c0bede8295b7974bf09369c')
sha256sums_x86_64=('43776b523f40ede2e55d87de699e16d2bd1b51395d237852803a7d1d09d54711')
build() {
    sed -e "s|@electronversion@|${_electronversion}|g" \
        -e "s|@appname@|${pkgname%-bin}|g" \
        -e "s|@runname@|app.asar|g" \
        -e "s|@options@||g" \
        -i "${srcdir}/${pkgname%-bin}.sh"
    bsdtar -xf "${srcdir}/data."*
    sed "s|/opt/${pkgname%-bin}/${pkgname%-bin}|${pkgname%-bin}|g" -i "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop"
}
package() {
    install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
    install -Dm644 "${srcdir}/opt/${pkgname%-bin}/resources/app.asar" -t "${pkgdir}/usr/lib/${pkgname%-bin}"
    cp -r "${srcdir}/opt/${pkgname%-bin}/resources/app.asar.unpacked" "${pkgdir}/usr/lib/${pkgname%-bin}"
    install -Dm644 "${srcdir}/usr/share/icons/hicolor/128x128/apps/${pkgname%-bin}.png" -t "${pkgdir}/usr/share/pixmaps"
    install -Dm644 "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
    install -Dm644 "${srcdir}/usr/share/doc/${pkgname%-bin}/changelog.gz" -t "${pkgdir}/usr/share/doc/${pkgname%-bin}"
    install -Dm644 "${srcdir}/LICENSE-${pkgver}" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
#!/bin/bash
set -e
_APPDIR="/usr/lib/@appname@"
_RUNNAME="${_APPDIR}/@runname@"
_OPTIONS="@options@"
export PATH="${_APPDIR}:${PATH}"
export LD_LIBRARY_PATH="${_APPDIR}/swiftshader:${_APPDIR}/lib:${LD_LIBRARY_PATH}"
export ELECTRON_IS_DEV=0
export ELECTRON_FORCE_IS_PACKAGED=true
export ELECTRON_DISABLE_SECURITY_WARNINGS=true
export ELECTRON_OVERRIDE_DIST_PATH="/usr/bin/electron@electronversion@"
export NODE_ENV=production
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
_FLAGS_FILE="${XDG_CONFIG_HOME}/@appname@-flags.conf"
declare -a flags
if [[ -f "${_FLAGS_FILE}" ]]; then
    mapfile -t < "${_FLAGS_FILE}"
fi
for line in "${MAPFILE[@]}"; do
    if [[ ! "${line}" =~ ^[[:space:]]*#.* ]] && [[ -n "${line}" ]]; then
        flags+=("${line}")
    fi
done
cd "${_APPDIR}"
if [[ "${EUID}" -ne 0 ]] || [[ "${ELECTRON_RUN_AS_NODE}" ]]; then
    exec electron@electronversion@ "${_RUNNAME}" "${_OPTIONS}" "${_USER_FLAGS}" "$@" || exit $?
else
    exec electron@electronversion@ "${_RUNNAME}" "${_OPTIONS}" --no-sandbox "${_USER_FLAGS}" "$@" || exit $?
fi

maxpayne3 commented on 2024-01-15 10:26 (UTC)

Thanks for the desktop file, but it's useless if you don't install the icon (under the path you specified: /usr/share/pixmaps/electerm.png). Hope you fix it. Thanks.

zxp19821005 commented on 2023-11-29 05:08 (UTC)

@solveit I think it's better use deb file as the source.such as https://github.com/electerm/electerm/releases/download/v1.37.16/electerm-1.37.16-linux-amd64.deb

solveit commented on 2023-02-27 19:14 (UTC)

@ovear - I added a desktop file. I don't typically launch things from an icon, so let me know if you run into issues.

Ovear commented on 2023-02-26 10:09 (UTC)

Hi solveit,

Could you add a electerm.desktop file to this package just like electerm package did. So that we can launch electerm in GUI ways, which is more convenient.

solveit commented on 2022-06-01 15:53 (UTC)

imic: I have updated the PKGBUILD to rev 1.21.74. I wouldn't recommend skipping the sha256sum as it validates the package integrity of the downloaded file from github.

imic commented on 2022-06-01 10:44 (UTC)

修改下构建文件的如下两个地方,就可以升级了。 pkgver=1.21.74

sha256sums=('SKIP' 'SKIP')

另外,没找到sha256sums后面的两个参数代表的含义,网上看到有用SKIP的,试了下,可以跳过验证。

imic commented on 2022-06-01 09:55 (UTC)

v1.21.73 会导致配置也丢失了,Manjaro 21.2.6 Qonos, 希望打包下v1.21.74

ptr1337 commented on 2021-10-21 05:27 (UTC)

@solveit

would it possible to give me the submaintainer? since this package is alltime outdated.

regards

rainbus commented on 2021-06-20 11:57 (UTC)

When can switch to the official deb package, this can simplify the process of configure.