File size: 7,290 Bytes
8f64ee3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
# The Artistic License 2.0

Copyright (c) 2000-2006, The Perl Foundation.

Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.

---

**Project Codename:** `JBX-MAKE`  
**Licensed Project:** Termux FastAPI Search Engine

---

## Preamble

This license establishes the terms under which a given free software
Package may be copied, modified, distributed, and/or redistributed.
The intent is that the Copyright Holder maintains some artistic
control over the development of that Package while retaining the
rights of others to use, modify and redistribute the Package under
reasonable conditions.

## Definitions

- **"Copyright Holder"** means the individual(s) or organization(s)
  named in the copyright notice for the entire Package.

- **"Contributor"** means any party that has contributed code or other
  material to the Package, in accordance with the Copyright Holder's
  procedures.

- **"You" and "your"** means any person who would like to copy,
  distribute, or modify the Package.

- **"Package"** means the collection of files distributed by the
  Copyright Holder, and derivatives of that collection and/or of
  any of its components. Note that this license applies to the
  Package as a whole, as well as any part of it.

- **"Standard Version"** refers to the Package if it has not been
  modified, or has been modified only in ways explicitly requested
  by the Copyright Holder.

- **"Modified Version"** refers to the Package if it has been modified
  by anyone other than the Copyright Holder.

- **"Original License"** means this Artistic License as Distributed
  with the Standard Version of the Package, in its current version
  or as it may be modified by The Perl Foundation in the future.

- **"Source" form** means the source code, documentation source, and
  configuration files for the Package.

- **"Compiled" form** means the compiled bytecode, object code, binary,
  or any other form resulting from mechanical transformation or
  translation of the Source form.

## Grant of Permission

Permission is hereby granted, free of charge, to any person obtaining
a copy of this Source and/or Compiled form of the Package, to deal
with the Package without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the Package, and to permit persons
to whom the Package is furnished to do so, provided that the
conditions set forth below are met:

### 1. Verbatim Copies

You may make and give away verbatim copies of the Source form of
the Standard Version of this Package without restriction, provided
that you duplicate all of the original copyright notices and
associated disclaimers.

### 2. Minor Modifications

You may apply bug fixes, portability fixes and other modifications
derived from the Public Domain or from the Copyright Holder. A
Package modified in such a way shall still be considered the
Standard Version.

### 3. Other Modifications

You may otherwise modify your copy of this Package in any way,
provided that you insert a prominent notice in each changed file
stating how and when you changed that file, and provided that you
do at least ONE of the following:

- **a)** place your modifications in the Public Domain or otherwise
  make them Freely Available, such as by posting said modifications
  to Usenet or an equivalent medium, or placing the modifications on
  a major archive site, and by providing instructions on how to get
  them, and by providing instructions on where to get the Standard
  Version of the Package in the same manner;

- **b)** use the Modified Package only within your corporation or
  organization;

- **c)** rename any non-standard executables so the names do not
  conflict with standard executables, which must also be provided,
  and provide a separate manual page for each non-standard executable
  that clearly documents how it differs from the Standard Version, or

- **d)** make other distribution arrangements with the Copyright
  Holder.

### 4. Object Code / Compiled Distribution

You may distribute the programs of this Package in object code or
compiled form, provided that you do at least ONE of the following:

- **a)** distribute a Standard Version of the executables and library
  files, together with instructions (in the manual page or equivalent)
  on where to get the Standard Version;

- **b)** accompany the distribution with the machine-readable source
  of the Package with your modifications;

- **c)** give non-standard executables non-standard names, and clearly
  document the differences in manual pages (or equivalent), together
  with instructions on where to get the Standard Version;

- **d)** make other distribution arrangements with the Copyright
  Holder.

### 5. Fees

You may charge a reasonable copying fee for any distribution of
this Package. You may charge any fee you choose for support of
this Package. You may not charge a fee for this Package itself.
However, you may distribute this Package in aggregate with other
(possibly commercial) programs as part of a larger (possibly
commercial) software distribution provided that you do not
advertise this Package as a product of your own.

### 6. Scripts & Library Files

The scripts and library files supplied as input to or produced as
output from the programs of this Package do not automatically fall
under the copyright of this Package, but belong to whoever
generated them, and may be sold commercially, and may be
aggregated with this Package.

### 7. Subroutines

C or perl subroutines supplied by you and linked into this Package
shall not be considered part of this Package.

### 8. Endorsement Restriction

The name of the Copyright Holder may not be used to endorse or
promote products derived from this software without specific prior
written permission.

### 9. Disclaimer of Warranty

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

---

## The End

*This license text is the verbatim Artistic License 2.0 as published by
The Perl Foundation and is applied to the Termux FastAPI Search Engine
under the project codename `JBX-MAKE`.*

#!/bin/bash
# install the requirements
sudo apk add --no-cache \
    ca-certificates \
    less \
    ncurses-terminfo-base \
    krb5-libs \
    libgcc \
    libintl \
    libssl3 \
    libstdc++ \
    tzdata \
    userspace-rcu \
    zlib \
    icu-libs \
    curl

apk -X https://dl-cdn.alpinelinux.org/alpine/edge/main add --no-cache \
    lttng-ust \
    openssh-client \

# Download the powershell '.tar.gz' archive
curl -L https://github.com/PowerShell/PowerShell/releases/download/v7.6.4/powershell-7.6.4-linux-musl-x64.tar.gz -o /tmp/powershell.tar.gz

# Create the target folder where powershell will be placed
sudo mkdir -p /opt/microsoft/powershell/7

# Expand powershell to the target folder
sudo tar zxf /tmp/powershell.tar.gz -C /opt/microsoft/powershell/7

# Set execute permissions
sudo chmod +x /opt/microsoft/powershell/7/pwsh

# Create the symbolic link that points to pwsh
sudo ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh

# Start PowerShell
pwsh