diff --git a/tur-continuous/electron/0001-electron-getversion-from-file.patch b/tur-continuous/electron/0001-electron-getversion-from-file.patch deleted file mode 100644 index 40533b925..000000000 --- a/tur-continuous/electron/0001-electron-getversion-from-file.patch +++ /dev/null @@ -1,12 +0,0 @@ -We pass `--no-history` to gclient, so there will be no version for electron. ---- a/electron/script/lib/get-version.js -+++ b/electron/script/lib/get-version.js -@@ -11,7 +11,7 @@ - // The only difference in the "git describe" technique is that technically a commit can "change" it's version - // number if a tag is created / removed retroactively. i.e. the first time a commit is pushed it will be 1.2.3 - // and after the tag is made rebuilding the same commit will result in it being 1.2.4 -- const output = spawnSync('git', ['describe', '--tags', '--abbrev=0'], { -+ const output = spawnSync('cat', ['ELECTRON_VERSION'], { - cwd: path.resolve(__dirname, '..', '..') - }); - if (output.status !== 0) { diff --git a/tur-continuous/electron/0002-v8-fix-trap-handler.patch b/tur-continuous/electron/0002-v8-fix-trap-handler.patch deleted file mode 100644 index b3bab7970..000000000 --- a/tur-continuous/electron/0002-v8-fix-trap-handler.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/third_party/electron_node/deps/v8/src/trap-handler/trap-handler.h -+++ b/third_party/electron_node/deps/v8/src/trap-handler/trap-handler.h -@@ -19,7 +19,7 @@ - - // X64 on Linux, Windows, MacOS, FreeBSD. - #if V8_HOST_ARCH_X64 && V8_TARGET_ARCH_X64 && \ -- ((V8_OS_LINUX && !V8_OS_ANDROID) || V8_OS_WIN || V8_OS_DARWIN || \ -+ (V8_OS_LINUX || V8_OS_WIN || V8_OS_DARWIN || \ - V8_OS_FREEBSD) - #define V8_TRAP_HANDLER_SUPPORTED true - // Arm64 (non-simulator) on Mac. diff --git a/tur-continuous/electron/0003-cares-config.patch b/tur-continuous/electron/0003-cares-config.patch deleted file mode 100644 index 1eaab1170..000000000 --- a/tur-continuous/electron/0003-cares-config.patch +++ /dev/null @@ -1,24 +0,0 @@ ---- a/third_party/electron_node/deps/cares/config/linux/ares_config.h -+++ b/third_party/electron_node/deps/cares/config/linux/ares_config.h -@@ -59,10 +59,10 @@ - #define HAVE_ARPA_INET_H 1 - - /* Define to 1 if you have the header file. */ --#define HAVE_ARPA_NAMESER_COMPAT_H 1 -+// #define HAVE_ARPA_NAMESER_COMPAT_H 1 - - /* Define to 1 if you have the header file. */ --#define HAVE_ARPA_NAMESER_H 1 -+// #define HAVE_ARPA_NAMESER_H 1 - - /* Define to 1 if you have the header file. */ - #define HAVE_ASSERT_H 1 -@@ -128,7 +128,7 @@ - #define HAVE_GETNAMEINFO 1 - - /* Define to 1 if you have the getservbyport_r function. */ --#define HAVE_GETSERVBYPORT_R 1 -+// #define HAVE_GETSERVBYPORT_R 1 - - /* Define to 1 if you have the `gettimeofday' function. */ - #define HAVE_GETTIMEOFDAY 1 diff --git a/tur-continuous/electron/0004-electron-disable-sandbox.patch b/tur-continuous/electron/0004-electron-disable-sandbox.patch deleted file mode 100644 index 8924aa80b..000000000 --- a/tur-continuous/electron/0004-electron-disable-sandbox.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- a/electron/shell/app/electron_main_delegate.cc -+++ b/electron/shell/app/electron_main_delegate.cc -@@ -262,7 +262,9 @@ - if (env->HasVar(kElectronEnableStackDumping)) - base::debug::EnableInProcessStackDumping(); - -+#ifndef __TERMUX__ - if (env->HasVar(kElectronDisableSandbox)) -+#endif - command_line->AppendSwitch(sandbox::policy::switches::kNoSandbox); - - tracing_sampler_profiler_ = diff --git a/tur-continuous/electron/0005-node-as-posix.patch b/tur-continuous/electron/0005-node-as-posix.patch deleted file mode 100644 index 712059090..000000000 --- a/tur-continuous/electron/0005-node-as-posix.patch +++ /dev/null @@ -1,14 +0,0 @@ ---- a/third_party/electron_node/src/node_internals.h -+++ b/third_party/electron_node/src/node_internals.h -@@ -287,9 +287,9 @@ - - // Functions defined in node.cc that are exposed via the bootstrapper object - --#if defined(__POSIX__) && !defined(__ANDROID__) && !defined(__CloudABI__) -+#if defined(__POSIX__) && !defined(__CloudABI__) - #define NODE_IMPLEMENTS_POSIX_CREDENTIALS 1 --#endif // defined(__POSIX__) && !defined(__ANDROID__) && !defined(__CloudABI__) -+#endif // defined(__POSIX__) && !defined(__CloudABI__) - - namespace credentials { - bool SafeGetenv(const char* key, diff --git a/tur-continuous/electron/0006-gtk-fix-dynamic-loaded-libraries.patch b/tur-continuous/electron/0006-gtk-fix-dynamic-loaded-libraries.patch deleted file mode 100644 index 8c4cd7e1b..000000000 --- a/tur-continuous/electron/0006-gtk-fix-dynamic-loaded-libraries.patch +++ /dev/null @@ -1,53 +0,0 @@ ---- a/ui/gtk/gtk_compat.cc -+++ b/ui/gtk/gtk_compat.cc -@@ -62,22 +62,38 @@ - } - - void* GetLibGio() { -+#ifdef __TERMUX__ -+ static void* libgio = DlOpen("libgio-2.0.so"); -+#else - static void* libgio = DlOpen("libgio-2.0.so.0"); -+#endif - return libgio; - } - - void* GetLibGdk3() { -+#ifdef __TERMUX__ -+ static void* libgdk3 = DlOpen("libgdk-3.so"); -+#else - static void* libgdk3 = DlOpen("libgdk-3.so.0"); -+#endif - return libgdk3; - } - - void* GetLibGtk3(bool check = true) { -+#ifdef __TERMUX__ -+ static void* libgtk3 = DlOpen("libgtk-3.so", check); -+#else - static void* libgtk3 = DlOpen("libgtk-3.so.0", check); -+#endif - return libgtk3; - } - - void* GetLibGtk4(bool check = true) { -+#ifdef __TERMUX__ -+ static void* libgtk4 = DlOpen("libgtk-4.so", check); -+#else - static void* libgtk4 = DlOpen("libgtk-4.so.1", check); -+#endif - return libgtk4; - } - -@@ -124,7 +140,11 @@ - } // namespace - - void* GetLibGdkPixbuf() { -+#ifdef __TERMUX__ -+ static void* libgdk_pixbuf = DlOpen("libgdk_pixbuf-2.0.so"); -+#else - static void* libgdk_pixbuf = DlOpen("libgdk_pixbuf-2.0.so.0"); -+#endif - return libgdk_pixbuf; - } - diff --git a/tur-continuous/electron/build.sh b/tur-continuous/electron/build.sh deleted file mode 100644 index fece3a96b..000000000 --- a/tur-continuous/electron/build.sh +++ /dev/null @@ -1,306 +0,0 @@ -TERMUX_PKG_HOMEPAGE=https://github.com/electron/electron -TERMUX_PKG_DESCRIPTION="Build cross-platform desktop apps with JavaScript, HTML, and CSS" -TERMUX_PKG_LICENSE="MIT, BSD 3-Clause" -TERMUX_PKG_MAINTAINER="Chongyun Lee " -_CHROMIUM_VERSION=110.0.5481.77 -TERMUX_PKG_VERSION=23.0.0 -TERMUX_PKG_SRCURL=git+https://github.com/electron/electron -TERMUX_PKG_DEPENDS="electron-deps" -TERMUX_PKG_BUILD_DEPENDS="libnotify, libffi-static" -# Chromium doesn't support i686 on Linux. -TERMUX_PKG_BLACKLISTED_ARCHES="i686" - -termux_step_get_source() { - # Check whether we need to get source - if [ -f "$TERMUX_PKG_CACHEDIR/.electron-source-fetched" ]; then - local _fetched_source_version=$(cat $TERMUX_PKG_CACHEDIR/.electron-source-fetched) - if [ "$_fetched_source_version" = "$TERMUX_PKG_VERSION" ]; then - echo "[INFO]: Use pre-fetched source (version $_fetched_source_version)." - ln -sfr $TERMUX_PKG_CACHEDIR/tmp-checkout/src $TERMUX_PKG_SRCDIR - # Revert patches - shopt -s nullglob - local f - for f in $TERMUX_PKG_BUILDER_DIR/*.patch; do - echo "[INFO]: Reverting $(basename "$f")" - (sed "s|@TERMUX_PREFIX@|$TERMUX_PREFIX|g" "$f" | patch -f --silent -R -p1 -d "$TERMUX_PKG_SRCDIR") || true - done - shopt -u nullglob - python $TERMUX_SCRIPTDIR/common-files/apply-chromium-patches.py --electron -C "$TERMUX_PKG_SRCDIR" -R -v $_CHROMIUM_VERSION - return - fi - fi - - # Fetch depot_tools - export DEPOT_TOOLS_UPDATE=0 - if [ ! -f "$TERMUX_PKG_CACHEDIR/.depot_tools-fetched" ];then - git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git $TERMUX_PKG_CACHEDIR/depot_tools - touch "$TERMUX_PKG_CACHEDIR/.depot_tools-fetched" - fi - export PATH="$TERMUX_PKG_CACHEDIR/depot_tools:$PATH" - - # Install nodejs - termux_setup_nodejs - - # Get source - rm -rf "$TERMUX_PKG_CACHEDIR/tmp-checkout" - mkdir -p "$TERMUX_PKG_CACHEDIR/tmp-checkout" - pushd "$TERMUX_PKG_CACHEDIR/tmp-checkout" - gclient config --name "src/electron" --unmanaged https://github.com/electron/electron - gclient sync --with_branch_heads --with_tags --no-history --revision v$TERMUX_PKG_VERSION - popd - - # Solve error like `.git/packed-refs is dirty` - cd "$TERMUX_PKG_CACHEDIR/tmp-checkout/src" - git pack-refs --all - cd electron - git pack-refs --all - - echo "$TERMUX_PKG_VERSION" > "$TERMUX_PKG_CACHEDIR/.electron-source-fetched" - ln -sfr $TERMUX_PKG_CACHEDIR/tmp-checkout/src $TERMUX_PKG_SRCDIR -} - -termux_step_post_get_source() { - echo "$TERMUX_PKG_VERSION" > $TERMUX_PKG_SRCDIR/electron/ELECTRON_VERSION - python $TERMUX_SCRIPTDIR/common-files/apply-chromium-patches.py --electron -v $_CHROMIUM_VERSION -} - -termux_step_configure() { - cd $TERMUX_PKG_SRCDIR - termux_setup_gn - termux_setup_ninja - termux_setup_nodejs - - # Remove termux's dummy pkg-config - local _target_pkg_config=$(command -v pkg-config) - local _host_pkg_config="$(cat $_target_pkg_config | grep exec | awk '{print $2}')" - rm -rf $TERMUX_PKG_TMPDIR/host-pkg-config-bin - mkdir -p $TERMUX_PKG_TMPDIR/host-pkg-config-bin - ln -s $_host_pkg_config $TERMUX_PKG_TMPDIR/host-pkg-config-bin/pkg-config - export PATH="$TERMUX_PKG_TMPDIR/host-pkg-config-bin:$PATH" - - env -i PATH="$PATH" sudo apt update - env -i PATH="$PATH" sudo apt install libdrm-dev libjpeg-turbo8-dev libpng-dev fontconfig libfontconfig-dev libfontconfig1-dev libfreetype6-dev zlib1g-dev libcups2-dev libxkbcommon-dev libglib2.0-dev -yq - env -i PATH="$PATH" sudo apt install libdrm-dev:i386 libjpeg-turbo8-dev:i386 libpng-dev:i386 libfontconfig-dev:i386 libfontconfig1-dev:i386 libfreetype6-dev:i386 zlib1g-dev:i386 libcups2-dev:i386 libglib2.0-dev:i386 libxkbcommon-dev:i386 -yq - - # Install amd64 rootfs if necessary, it should have been installed by source hooks. - build/linux/sysroot_scripts/install-sysroot.py --arch=amd64 - local _amd64_sysroot_path="$(pwd)/build/linux/$(ls build/linux | grep 'amd64-sysroot')" - - # Install i386 rootfs if necessary, it should have been installed by source hooks. - build/linux/sysroot_scripts/install-sysroot.py --arch=i386 - local _i386_sysroot_path="$(pwd)/build/linux/$(ls build/linux | grep 'i386-sysroot')" - - # Link to system tools required by the build - mkdir -p third_party/node/linux/node-linux-x64/bin - ln -sf $(command -v node) third_party/node/linux/node-linux-x64/bin/ - - # Dummy librt.so - # Why not dummy a librt.a? Some of the binaries reference symbols only exists in Android - # for some reason, such as the `chrome_crashpad_handler`, which needs to link with - # libprotobuf_lite.a, but it is hard to remove the usage of `android/log.h` in protobuf. - echo "INPUT(-llog -liconv -landroid-shmem)" > "$TERMUX_PREFIX/lib/librt.so" - - # Dummy libpthread.a and libresolv.a - echo '!' > "$TERMUX_PREFIX/lib/libpthread.a" - echo '!' > "$TERMUX_PREFIX/lib/libresolv.a" - - # Symlink libffi.a to libffi_pic.a - ln -sfr $TERMUX_PREFIX/lib/libffi.a $TERMUX_PREFIX/lib/libffi_pic.a - - # Merge sysroots - rm -rf $TERMUX_PKG_TMPDIR/sysroot - mkdir -p $TERMUX_PKG_TMPDIR/sysroot - pushd $TERMUX_PKG_TMPDIR/sysroot - mkdir -p usr/include usr/lib usr/bin - cp -R $TERMUX_STANDALONE_TOOLCHAIN/sysroot/usr/include/* usr/include - cp -R $TERMUX_STANDALONE_TOOLCHAIN/sysroot/usr/include/$TERMUX_HOST_PLATFORM/* usr/include - cp -R $TERMUX_STANDALONE_TOOLCHAIN/sysroot/usr/lib/$TERMUX_HOST_PLATFORM/$TERMUX_PKG_API_LEVEL/* usr/lib/ - cp "$TERMUX_STANDALONE_TOOLCHAIN/sysroot/usr/lib/$TERMUX_HOST_PLATFORM/libc++_shared.so" usr/lib/ - cp "$TERMUX_STANDALONE_TOOLCHAIN/sysroot/usr/lib/$TERMUX_HOST_PLATFORM/libc++_static.a" usr/lib/ - cp "$TERMUX_STANDALONE_TOOLCHAIN/sysroot/usr/lib/$TERMUX_HOST_PLATFORM/libc++abi.a" usr/lib/ - cp -Rf $TERMUX_PREFIX/include/* usr/include - cp -Rf $TERMUX_PREFIX/lib/* usr/lib - ln -sf /data ./data - # This is needed to build cups - cp -Rf $TERMUX_PREFIX/bin/cups-config usr/bin/ - chmod +x usr/bin/cups-config - popd - - # Construct args - local _target_cpu _v8_current_cpu _v8_sysroot_path - local _v8_toolchain_name _target_sysroot="$TERMUX_PKG_TMPDIR/sysroot" - if [ "$TERMUX_ARCH" = "aarch64" ]; then - _target_cpu="arm64" - _v8_current_cpu="x64" - _v8_sysroot_path="$_amd64_sysroot_path" - _v8_toolchain_name="clang_x64_v8_arm64" - elif [ "$TERMUX_ARCH" = "arm" ]; then - _target_cpu="arm" - _v8_current_cpu="x86" - _v8_sysroot_path="$_i386_sysroot_path" - _v8_toolchain_name="clang_x86_v8_arm" - elif [ "$TERMUX_ARCH" = "x86_64" ]; then - _target_cpu="x64" - _v8_current_cpu="x64" - _v8_sysroot_path="$_amd64_sysroot_path" - _v8_toolchain_name="clang_x64" - fi - - local _common_args_file=$TERMUX_PKG_TMPDIR/common-args-file - rm -f $_common_args_file - touch $_common_args_file - - echo " -import(\"//electron/build/args/release.gn\") -# Do not build with symbols -symbol_level = 0 -# Use our custom toolchain -use_sysroot = false -target_cpu = \"$_target_cpu\" -target_rpath = \"$TERMUX_PREFIX/lib\" -target_sysroot = \"$_target_sysroot\" -clang_base_path = \"$TERMUX_STANDALONE_TOOLCHAIN\" -custom_toolchain = \"//build/toolchain/linux/unbundle:default\" -host_toolchain = \"$TERMUX_PKG_CACHEDIR/custom-toolchain:host\" -v8_snapshot_toolchain = \"$TERMUX_PKG_CACHEDIR/custom-toolchain:$_v8_toolchain_name\" -clang_use_chrome_plugins = false -dcheck_always_on = false -chrome_pgo_phase = 0 -treat_warnings_as_errors = false -# Use system libraries as little as possible -use_bundled_fontconfig = false -use_system_freetype = true -use_system_libdrm = true -use_custom_libcxx = false -use_allocator_shim = false -use_partition_alloc_as_malloc = false -enable_backup_ref_ptr_support = false -enable_mte_checked_ptr_support = false -use_nss_certs = true -use_udev = false -use_gnome_keyring = false -use_alsa = false -use_libpci = false -use_pulseaudio = true -use_ozone = true -ozone_auto_platforms = false -ozone_platform = \"x11\" -ozone_platform_x11 = true -ozone_platform_wayland = true -ozone_platform_headless = true -angle_enable_vulkan = true -angle_enable_swiftshader = true -rtc_use_pipewire = false -use_vaapi_x11 = false -# See comments on Chromium package -enable_nacl = false -use_thin_lto=false -" >> $_common_args_file - - if [ "$TERMUX_ARCH" = "arm" ]; then - echo "arm_arch = \"armv7-a\"" >> $_common_args_file - echo "arm_float_abi = \"softfp\"" >> $_common_args_file - fi - - # Use custom toolchain - mkdir -p $TERMUX_PKG_CACHEDIR/custom-toolchain - cp -f $TERMUX_PKG_BUILDER_DIR/toolchain.gn.in $TERMUX_PKG_CACHEDIR/custom-toolchain/BUILD.gn - sed -i "s|@HOST_CC@|$(command -v clang-13)|g - s|@HOST_CXX@|$(command -v clang++-13)|g - s|@HOST_LD@|$(command -v clang++-13)|g - s|@HOST_AR@|$(command -v llvm-ar)|g - s|@HOST_NM@|$(command -v llvm-nm)|g - s|@HOST_IS_CLANG@|true|g - s|@HOST_USE_GOLD@|false|g - s|@HOST_SYSROOT@|$_amd64_sysroot_path|g - " $TERMUX_PKG_CACHEDIR/custom-toolchain/BUILD.gn - sed -i "s|@V8_CC@|$(command -v clang-13)|g - s|@V8_CXX@|$(command -v clang++-13)|g - s|@V8_LD@|$(command -v clang++-13)|g - s|@V8_AR@|$(command -v llvm-ar)|g - s|@V8_NM@|$(command -v llvm-nm)|g - s|@V8_TOOLCHAIN_NAME@|$_v8_toolchain_name|g - s|@V8_CURRENT_CPU@|$_v8_current_cpu|g - s|@V8_V8_CURRENT_CPU@|$_target_cpu|g - s|@V8_IS_CLANG@|true|g - s|@V8_USE_GOLD@|false|g - s|@V8_SYSROOT@|$_v8_sysroot_path|g - " $TERMUX_PKG_CACHEDIR/custom-toolchain/BUILD.gn - - mkdir -p $TERMUX_PKG_BUILDDIR/out/Release - cat $_common_args_file > $TERMUX_PKG_BUILDDIR/out/Release/args.gn - gn gen $TERMUX_PKG_BUILDDIR/out/Release --export-compile-commands -} - -termux_step_make() { - cd $TERMUX_PKG_BUILDDIR - ninja -C $TERMUX_PKG_BUILDDIR/out/Release electron electron_license chromium_licenses -} - -termux_step_make_install() { - cd $TERMUX_PKG_BUILDDIR - mkdir -p $TERMUX_PREFIX/lib/$TERMUX_PKG_NAME - - echo "$TERMUX_PKG_VERSION" > $TERMUX_PKG_BUILDDIR/out/Release/version - - local normal_files=( - # Binary files - electron - chrome_sandbox - chrome_crashpad_handler - - # Resource files - chrome_100_percent.pak - chrome_200_percent.pak - resources.pak - - # V8 Snapshot data - snapshot_blob.bin - v8_context_snapshot.bin - - # ICU Data - icudtl.dat - - # Angle - libEGL.so - libGLESv2.so - - # Vulkan - libvulkan.so.1 - libvk_swiftshader.so - vk_swiftshader_icd.json - - # FFmpeg - libffmpeg.so - - # VERSION file - version - ) - - cp "${normal_files[@]/#/out/Release/}" "$TERMUX_PREFIX/lib/$TERMUX_PKG_NAME/" - - cp -Rf out/Release/angledata $TERMUX_PREFIX/lib/$TERMUX_PKG_NAME/ - cp -Rf out/Release/locales $TERMUX_PREFIX/lib/$TERMUX_PKG_NAME/ - cp -Rf out/Release/resources $TERMUX_PREFIX/lib/$TERMUX_PKG_NAME/ - - chmod +x $TERMUX_PREFIX/lib/$TERMUX_PKG_NAME/electron - - # Install LICENSE file - cp out/Release/LICENSE{,S.chromium.html} $TERMUX_PREFIX/lib/$TERMUX_PKG_NAME/ - - # Install as the default electron - ln -sfr $TERMUX_PREFIX/lib/$TERMUX_PKG_NAME/electron $TERMUX_PREFIX/bin/electron - if [ "$TERMUX_PKG_NAME" != "electron" ]; then - ln -sfr $TERMUX_PREFIX/lib/$TERMUX_PKG_NAME $TERMUX_PREFIX/lib/electron - fi -} - -termux_step_install_license() { - mkdir -p $TERMUX_PREFIX/share/doc/$TERMUX_PKG_NAME - cp out/Release/LICENSE{,S.chromium.html} $TERMUX_PREFIX/share/doc/$TERMUX_PKG_NAME/ -} - -termux_step_post_make_install() { - # Remove the dummy files - rm $TERMUX_PREFIX/lib/lib{{pthread,resolv,ffi_pic}.a,rt.so} -} diff --git a/tur-continuous/electron/toolchain.gn.in b/tur-continuous/electron/toolchain.gn.in deleted file mode 100644 index 6c26578e8..000000000 --- a/tur-continuous/electron/toolchain.gn.in +++ /dev/null @@ -1,32 +0,0 @@ -import("//build/config/sysroot.gni") -import("//build/toolchain/gcc_toolchain.gni") - -gcc_toolchain("host") { - cc = "@HOST_CC@" - cxx = "@HOST_CXX@" - ld = "@HOST_LD@" - ar = "@HOST_AR@" - nm = "@HOST_NM@" - toolchain_args = { - current_os = "linux" - current_cpu = "x64" - is_clang = @HOST_IS_CLANG@ - use_gold = @HOST_USE_GOLD@ - sysroot = "@HOST_SYSROOT@" - } -} -gcc_toolchain("@V8_TOOLCHAIN_NAME@") { - cc = "@V8_CC@" - cxx = "@V8_CXX@" - ld = "@V8_LD@" - ar = "@V8_AR@" - nm = "@V8_NM@" - toolchain_args = { - current_os = "linux" - current_cpu = "@V8_CURRENT_CPU@" - v8_current_cpu = "@V8_V8_CURRENT_CPU@" - is_clang = @V8_IS_CLANG@ - use_gold = @V8_USE_GOLD@ - sysroot = "@V8_SYSROOT@" - } -} diff --git a/tur/electron/build.sh b/tur/electron/build.sh new file mode 100644 index 000000000..2ba792279 --- /dev/null +++ b/tur/electron/build.sh @@ -0,0 +1,15 @@ +TERMUX_PKG_HOMEPAGE=https://github.com/electron/electron +TERMUX_PKG_DESCRIPTION="A metapackage that provides electron" +TERMUX_PKG_LICENSE="Public Domain" +TERMUX_PKG_MAINTAINER="Chongyun Lee " +TERMUX_PKG_VERSION=26 +TERMUX_PKG_PLATFORM_INDEPENDENT=true +TERMUX_PKG_SKIP_SRC_EXTRACT=true +TERMUX_PKG_METAPACKAGE=true + +termux_step_make_install() { + ln -sf $TERMUX_PREFIX/lib/electron$TERMUX_PKG_VERSION $TERMUX_PREFIX/lib/electron + ln -sf $TERMUX_PREFIX/lib/electron$TERMUX_PKG_VERSION/electron $TERMUX_PREFIX/bin/electron + + TERMUX_PKG_DEPENDS="electron$TERMUX_PKG_VERSION" +}