File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ TERMUX_PKG_HOMEPAGE=https://turbo.build/
2+ TERMUX_PKG_DESCRIPTION=" Rust-based incremental compilation engine and bundler for Next.js"
3+ TERMUX_PKG_MAINTAINER=" @xingguangcuican6666"
4+ TERMUX_PKG_LICENSE=" MIT"
5+ TERMUX_PKG_VERSION=16.1.6
6+ TERMUX_PKG_SRCURL=https://github.com/vercel/next.js/archive/refs/tags/v${TERMUX_PKG_VERSION} .tar.gz
7+ TERMUX_PKG_SHA256=63e8f9f386022fa0b9bea1113e7649fe250ae4bb85782b1c4286a3fbf0efedea
8+ TERMUX_PKG_BUILD_IN_SRC=true
9+ TERMUX_RUST_VERSION=" nightly"
10+
11+ termux_step_make () {
12+ termux_setup_rust
13+ termux_setup_capnp
14+ termux_setup_protobuf
15+ termux_setup_nodejs
16+ npm i -g pnpm --verbose
17+ cd packages/next-swc
18+ npx pnpm install
19+ npx pnpm run build-native --release
20+ }
21+
22+ termux_step_make_install () {
23+ local PACKAGE_NAME=" @next/swc-android-arm64"
24+ local INSTALL_DIR=" $TERMUX_PREFIX /lib/node_modules/${PACKAGE_NAME} "
25+ mkdir -p " $INSTALL_DIR "
26+ local BINARY_NAME=" next-swc.android-arm64.node"
27+ ls -l packages/next-swc/native/
28+ install -Dm755 " packages/next-swc/native/${BINARY_NAME} " " $INSTALL_DIR /${BINARY_NAME} "
29+ cat > " $INSTALL_DIR /package.json" << EOF
30+ {
31+ "name": "${PACKAGE_NAME} ",
32+ "version": "$TERMUX_PKG_VERSION ",
33+ "os": ["android"],
34+ "cpu": ["arm64"],
35+ "main": "${BINARY_NAME} ",
36+ "files": [
37+ "${BINARY_NAME} "
38+ ]
39+ }
40+ EOF
41+ }
You can’t perform that action at this time.
0 commit comments