Spaces:
Configuration error
Configuration error
| # 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 | |