├── .conf
├── DOSO
├── DOSON
├── DRLIM
├── EXTSTDO
├── GAUTH
├── LIBAUTH
├── PRGNAMEID
├── QUIET
├── RDR
├── README.md
└── VERSIONID
├── .github
├── FUNDING.yml
└── workflows
│ ├── greetings.yml
│ ├── label.yml
│ └── stale.yml
├── CHANGE.log
├── LICENSE
├── README.md
├── opt
├── key
│ ├── cert.x509.pem
│ ├── certificate.pem
│ ├── key.pem
│ ├── key.pk8
│ └── request.pem
├── lfhopt.txt
└── pic.png
├── scripts
├── bash
│ ├── build
│ │ ├── build.apps.bash
│ │ ├── build.bits.bash
│ │ ├── build.browsers.bash
│ │ ├── build.buildAPKs.bash
│ │ ├── build.clocks.bash
│ │ ├── build.compasses.bash
│ │ ├── build.demos.bash
│ │ ├── build.developers.tools.bash
│ │ ├── build.entertainment.bash
│ │ ├── build.flashlights.bash
│ │ ├── build.games.bash
│ │ ├── build.hellos.bash
│ │ ├── build.in.dir.bash
│ │ ├── build.keyboards.bash
│ │ ├── build.launchers.bash
│ │ ├── build.live.wallpapers.bash
│ │ ├── build.native.bash
│ │ ├── build.one.bash
│ │ ├── build.one.bash0
│ │ ├── build.samples.bash
│ │ ├── build.top10.bash
│ │ ├── build.tutorials.bash
│ │ ├── build.widgets.bash
│ │ ├── buildAll.bash
│ │ ├── buildApplications.bash
│ │ ├── buildFlashlights.bash
│ │ ├── buildGames.bash
│ │ └── buildSamples.bash
│ └── init
│ │ ├── atrap.bash
│ │ ├── init.bash
│ │ └── ushlibs.bash
├── ksh
│ ├── build
│ │ ├── build.dir.ksh
│ │ └── build.ksh
│ └── init
│ │ └── setup.buildAPKs.ksh
├── maintenance
│ └── .nomedia
├── sh
│ ├── build
│ │ ├── build.dir.sh
│ │ └── build.sh
│ └── init
│ │ └── setup.buildAPKs.sh
└── zsh
│ ├── build
│ ├── build.dir.zsh
│ └── build.zsh
│ └── init
│ └── setup.buildAPKs.zsh
├── setup.buildAPKs.bash
├── sha512.sum
└── var
└── lfhvar.txt
/.conf/DOSO:
--------------------------------------------------------------------------------
1 | 1
2 | # Change the first line of this file to 0 (true) to enable `*.so` inclusion in the APK build. Alternatively, change the first line of this file to another number like 3 to disable the message and `*.so` file inclusion in the APK build. This feature is under development.
3 | # DOSO EOF
4 |
--------------------------------------------------------------------------------
/.conf/DOSON:
--------------------------------------------------------------------------------
1 | 1
2 | # To enable ninja change the 1 to a 0.
3 | # Change the first line of this file to 0 (true) to enable ninja to build the `*.so` files instead of make for the APK build. This feature is under development.
4 | # DOSON EOF
5 |
--------------------------------------------------------------------------------
/.conf/DRLIM:
--------------------------------------------------------------------------------
1 | false
2 | true
3 | # DRLIM EOF
4 |
--------------------------------------------------------------------------------
/.conf/EXTSTDO:
--------------------------------------------------------------------------------
1 | 1
2 | # To install file directories in external storage (partial design : testing).
3 | # EXTSTDO EOF
4 |
--------------------------------------------------------------------------------
/.conf/GAUTH:
--------------------------------------------------------------------------------
1 |
2 | The first line of this file is intentionally left blank for the user to complete. Please insert an OAuth token pair (token:token) in the first line of this file to enable OAuth authentication with Github in order to complete this configuration file. The command 'curl' will use this information to query GitHub in open text format. Pages https://docs.github.com/en/rest/overview/other-authentication-methods and https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token have information about authentication methods.
3 |
4 | The 'build.github*.bash' scripts can stall for unauthenticated users of Github due to the high bandwith they consume when conducting multiple queries. Enabling OAuth authentication increases the rate limit for authenticated Github users. This link https://github.com/settings/tokens creates OAuth tokens easily.
5 |
6 | Information about Github authentication can be viewed at this address https://developer.github.com/v3/auth/#basic-authentication at Github. This command 'grep -C 4 -hr AUT ~/buildAPKs/scripts/' shows how the user token combination is used in the buildAPKs scripts to access the increased rate limit for authenticated Github users.
7 |
8 | A solution for a "stash them before you merge" message after running '~/buildAPKs/update.buildAPKs.sh' is 'mv ~/buildAPKs/[file] ~/buildAPKs/stash/' to clear this message and update. Compare the changes with 'diff ~/buildAPKs/[file] ~/buildAPKs/stash/[file]' after updating.
9 |
10 | To clear the "Please commit your changes or stash them before you merge" message after trying to update with '~/buildAPKs/update.buildAPKs.sh' a solution is to use these shell commands:
11 |
12 | mv ~/buildAPKs/.conf/GAUTH ~/buildAPKs/stash/GAUTH
13 |
14 | After moving this file, run '~/buildAPKs/update.buildAPKs.sh' again. To add the OAuth username token pair (user:token) again to the newly updated file from the stashed GAUUTH file, you can use these shell commands (hint: copy and paste):
15 |
16 | (head -1 ~/buildAPKs/stash/GAUTH && cat ~/buildAPKs/.conf/GAUTH) > ~/buildAPKs/var/tmp/GAUTH.$$.tmp && mv ~/buildAPKs/var/tmp/GAUTH.$$.tmp ~/buildAPKs/.conf/GAUTH
17 |
18 | This will add the OAuth token from the copied ~/buildAPKs/stash/GAUTH file to the first line of the newly updated GAUTH file.
19 | # GAUTH EOF
20 |
--------------------------------------------------------------------------------
/.conf/LIBAUTH:
--------------------------------------------------------------------------------
1 | false
2 | true
3 | =========
4 | English
5 | =========
6 | 20211011 UNDER CONSTRUCTION!
7 | https://github.com/BuildAPKs/buildAPKs/issues/1
8 | https://github.com/BuildAPKs/buildAPKs/issues/2
9 | https://github.com/BuildAPKs/buildAPKs/issues/13
10 | https://github.com/BuildAPKs/buildAPKs/issues/24
11 |
12 | Change the first line of this file to true to use artifacts and libraries during compilation; When the first line of this file is changed to true, BuildAPKs loads files from these folders into the build process from directories located in:
13 |
14 | LIBDIRPATH=("$JDR/lib" "$JDR/libraries" "$JDR/library" "$JDR/libs" "$RDR/var/cache/lib") # modify array LIBDIRPATH to suit the projects artifact needs. The directory '~/buildAPKs/var/cache/lib' is created for working with libraries. Libraries can be downloaded from these web links:
15 | https://mvnrepository.com/artifact/androidx.appcompat
16 | https://mvnrepository.com/artifact/com.android.support/appcompat-v7
17 |
18 | Adjust the paths to the prerequisites of the project in 'LIBDIRPATH build.one.bash'. You can populate the ~/buildAPKs/var/cache/lib directory from the https://mvnrepository.com website. For example, this link https://mvnrepository.com/artifact/androidx.appcompat/appcompat has appcompat libraries that you can download into ~/buildAPKs/var/cache/lib for compiling inclusion.
19 |
20 | The command 'cd ~/buildAPKs/var/cache/lib && curl -OL https://maven.google.com/androidx/appcompat/appcompat/1.1.0/appcompat-1.1.0.aar && ~/buildAPKs/build.github.bash buildapks' will attempt to build everything https://github.com/BuildAPKs has to offer including appcompat-1.1.0.aar and system artifacts into to build once the first line in this file is changed to true.
21 |
22 | The functionality of this option is being enhanced; and to improve this automation, see https://github.com/BuildAPKs/buildAPKs/issues and https://github.com/BuildAPKs/buildAPKs/pulls.
23 |
24 | =========
25 | Español
26 | =========
27 | 20211011 EN CONSTRUCCIÓN!
28 | https://github.com/BuildAPKs/buildAPKs/issues/1
29 | https://github.com/BuildAPKs/buildAPKs/issues/2
30 | https://github.com/BuildAPKs/buildAPKs/issues/13
31 | https://github.com/BuildAPKs/buildAPKs/issues/24
32 |
33 | Cambie la primera línea de este archivo a true para usar artefactos y bibliotecas durante la compilación; Cuando la primera línea de esto se cambia a true, BuildAPKs carga archivos de la estas carpetas dentro el proceso de compilación en directorios ubicados en:
34 |
35 | LIBDIRPATH=("$JDR/lib" "$JDR/libraries" "$JDR/library" "$JDR/libs" "$RDR/var/cache/lib") # Adapte las rutas a los requisitos previos del proyecto en LIBDIRPATH. El directorio '~/buildAPKs/var/cache/lib' se crea para trabajar con bibliotecas. Las bibliotecas se pueden descargar desde estos enlaces web:
36 | https://mvnrepository.com/artifact/androidx.appcompat
37 | https://mvnrepository.com/artifact/com.android.support/appcompat-v7
38 |
39 | Adapte las rutas a los requisitos previos del proyecto en 'LIBDIRPATH build.one.bash'. Puede llenar el directorio ~/buildAPKs/var/cache/lib desde el sitio https://mvnrepository.com web. Por ejemplo, este enlace https://mvnrepository.com/artifact/androidx.appcompat/appcompat contiene bibliotecas appcompat que puede descargar en ~/buildAPKs/var/cache/lib para compilar la inclusión.
40 |
41 | El comando 'cd ~/buildAPKs/var/cache/lib && curl -OL https://maven.google.com/androidx/appcompat/appcompat/1.1.0/appcompat-1.1.0.aar && ~/buildAPKs/build.github.bash buildapks' intentará construir todo lo que https://github.com/BuildAPKs tiene para ofrecer, incluyendo appcompat-1.1.0.aar y artefactos del sistema para construir una vez que la primera línea de este archivo tenga ha sido reemplazado por true.
42 | https://github.com/BuildAPKs tiene que ofrecer incluyendo appcompat-1.1.0.aar y artefactos del sistema en la compilación una vez que la primera línea de este archivo se cambia a true.
43 |
44 | Se está mejorando la funcionalidad de esta opción; y para mejorar esta automatización, consulte https://github.com/BuildAPKs/buildAPKs/issues y https://github.com/BuildAPKs/buildAPKs/pulls.
45 |
46 | ===========
47 | Française
48 | ===========
49 | 20211011 EN CONSTRUCTION!
50 | https://github.com/BuildAPKs/buildAPKs/issues/1
51 | https://github.com/BuildAPKs/buildAPKs/issues/2
52 | https://github.com/BuildAPKs/buildAPKs/issues/13
53 | https://github.com/BuildAPKs/buildAPKs/issues/24
54 |
55 | Modifiez la première ligne de ce fichier sur true pour utiliser des artefacts et des bibliothèques pendant la compilation; Lorsque la première ligne de cette est changé en true, BuildAPKs charge les fichiers de ceux-ci des dossiers dedans le processus de génération à partir de répertoires situés dans:
56 |
57 | LIBDIRPATH=("$JDR/lib" "$JDR/libraries" "$JDR/library" "$JDR/libs" "$RDR/var/cache/lib") # Adaptez les chemins aux prérequis du projet dans LIBDIRPATH. Le répertoire '~/buildAPKs/var/cache/lib' est créé pour fonctionner avec les bibliothèques. Les bibliothèques peuvent être téléchargées à partir de ces liens Web:
58 | https://mvnrepository.com/artifact/androidx.appcompat
59 | https://mvnrepository.com/artifact/com.android.support/appcompat-v7
60 |
61 | Adaptez les chemins aux prérequis du projet dans 'LIBDIRPATH build.one.bash'. Vous pouvez remplir le répertoire ~/buildAPKs/var/cache/lib à partir du site https://mvnrepository.com Web. Par exemple, ce lien https://mvnrepository.com/artifact/androidx.appcompat/appcompat contient des bibliothèques appcompat que vous pouvez télécharger dans ~/buildAPKs/var/cache/lib pour compiler l'inclusion.
62 |
63 | La commande 'cd ~/buildAPKs/var/cache/lib && curl -OL https://maven.google.com/androidx/appcompat/appcompat/1.1.0/appcompat-1.1.0.aar && ~/buildAPKs/build.github.bash buildapks' tentera de construire tout ce que https://github.com/BuildAPKs veulent offrir avec appcompat-1.1.0.aar et des artefacts système dans la version une fois que la première ligne de ce fichier est remplacée par true.
64 |
65 | La fonctionnalité de cette option est en cours d'amélioration; et pour améliorer cette automatisation, voir https://github.com/BuildAPKs/buildAPKs/issues et https://github.com/BuildAPKs/buildAPKs/pulls.
66 |
67 | # LIBAUTH EOF
68 |
--------------------------------------------------------------------------------
/.conf/PRGNAMEID:
--------------------------------------------------------------------------------
1 | BuildAPKs/buildAPKs
2 |
--------------------------------------------------------------------------------
/.conf/QUIET:
--------------------------------------------------------------------------------
1 | false
2 | true
3 | # To quiet build error messages change false to true in the first line of this file..
4 | # QUIET EOF
5 |
--------------------------------------------------------------------------------
/.conf/RDR:
--------------------------------------------------------------------------------
1 | "$HOME/buildAPKs"
2 |
--------------------------------------------------------------------------------
/.conf/README.md:
--------------------------------------------------------------------------------
1 | BuildAPKs/.conf README.md
2 |
3 | These configuration files are located in ~/buildAPKs/.conf and their purpose is outlined in this table:
4 |
5 | | File Name | Purpose |
6 | | --------- | ------- |
7 | | DOSO | use cmake && make to build `*.so` files and add them to the APK |
8 | | DOSON | use cmake && ninja to build `*.so` files and add them to the APK |
9 | | DRLIM | display rate limit |
10 | | EXTSTDO | install most of the installation and the sources in in external storage **(partial design ; testing )** |
11 | | GAUTH | OAUTH GitHub authentication, file GAUTH has more informtion |
12 | | LIBAUTH | add libraries and artifacts into the APK build, file LIBAUTH has more informtion **(partial design ; stable )** |
13 | | QUIET | display build warning and error messages |
14 | | RDR | project root directory |
15 | | README.md | this file |
16 | | VERSIONID | current project version |
17 |
18 |
--------------------------------------------------------------------------------
/.conf/VERSIONID:
--------------------------------------------------------------------------------
1 | 4.6.615
2 |
--------------------------------------------------------------------------------
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | custom: https://paypal.me/SDRausty
2 |
--------------------------------------------------------------------------------
/.github/workflows/greetings.yml:
--------------------------------------------------------------------------------
1 | name: Greetings
2 |
3 | on: [pull_request, issues]
4 |
5 | jobs:
6 | greeting:
7 | runs-on: ubuntu-latest
8 | steps:
9 | - uses: actions/first-interaction@v1
10 | with:
11 | repo-token: ${{ secrets.GITHUB_TOKEN }}
12 | issue-message: 'Thank you for contributing to make this project better😎 Keep up and follow to solve this issue.'
13 | pr-message: 'Thank you for contributing to make this project better🎉'
14 |
--------------------------------------------------------------------------------
/.github/workflows/label.yml:
--------------------------------------------------------------------------------
1 | # This workflow will triage pull requests and apply a label based on the
2 | # paths that are modified in the pull request.
3 | #
4 | # To use this workflow, you will need to set up a .github/labeler.yml
5 | # file with configuration. For more information, see:
6 | # https://github.com/actions/labeler/blob/master/README.md
7 |
8 | name: Labeler
9 | on: [pull_request]
10 |
11 | jobs:
12 | label:
13 |
14 | runs-on: ubuntu-latest
15 |
16 | steps:
17 | - uses: actions/labeler@v2
18 | with:
19 | repo-token: "${{ secrets.GITHUB_TOKEN }}"
20 |
--------------------------------------------------------------------------------
/.github/workflows/stale.yml:
--------------------------------------------------------------------------------
1 | name: Mark stale issues and pull requests
2 |
3 | on:
4 | schedule:
5 | - cron: "32 6 * 2 2"
6 |
7 | jobs:
8 | stale:
9 |
10 | runs-on: ubuntu-latest
11 |
12 | steps:
13 | - uses: actions/stale@v1
14 | with:
15 | repo-token: ${{ secrets.GITHUB_TOKEN }}
16 | stale-issue-message: 'old issue sanse activity message'
17 | stale-pr-message: 'old issue sanse activity pull request message'
18 | stale-issue-label: 'old issue sanse activity'
19 | stale-pr-label: 'old pr sanse activity'
20 |
--------------------------------------------------------------------------------
/CHANGE.log:
--------------------------------------------------------------------------------
1 | Computed on 20180117 branch master: buildAPKs
2 | 2.9M .git
3 | 5.9M .
4 | Computed on 20190102 branch master:
5 | 6.7M .git
6 | 10.0M .
7 | Computed on 20190104 branch master:
8 | 3.1M .git
9 | 3.8M .
10 | Computed on 20190104 branch master:
11 | 1.2M .git
12 | 1.9M .
13 | Computed on 20190104 branch master:
14 | 3.2M .git
15 | 3.8M .
16 | Branch master: 996f15 computed on 20190106.
17 | 3.0M .git
18 | 3.7M .
19 | Branch master: 9f6c5c computed on 20190106.
20 | 1.1M .git
21 | 1.7M .
22 | Branch master: 5966a4 computed on 20190106.
23 | 3.0M .git
24 | 3.6M .
25 | Computed on 20190106 branch master:
26 | 3.8M .git
27 | 4.6M .
28 | Computed on 20190106 branch master:
29 | 3.1M .git
30 | 3.8M .
31 | Computed on 20190109 branch master:
32 | Size in KB
33 | 3128 .git
34 | 3884 .
35 | Computed on 20190109 branch master:
36 | Size in KB
37 | 3628 .git
38 | 4412 .
39 | Computed on 20190112 branch master:
40 | Size in KB
41 | 3248 .git
42 | 4044 .
43 | Computed on 20190113 branch master:
44 | Size in KB
45 | 3448 .git
46 | 4740 .
47 | Computed on 20190114 branch master:
48 | Size in KB
49 | 3384 .git
50 | 4472 .
51 | Computed on 20190122 branch master: RESET module errors
52 | 604 .git
53 | 928 .
54 | AFTER `git pull`
55 | 3508 .git
56 | 3876 .
57 | Computed on 20190202 branch master:
58 | Size in KB
59 | 5084 .git
60 | 5344 .
61 | Computed on 20190530 branch master:
62 | Size in KB
63 | 8624 .git
64 | 9020 .
65 | Computed on 20190602 branch master: RESET size
66 | 704 .git
67 | 1220 .
68 | AFTER `git pull`
69 | 3528 .git
70 | 3908 .
71 | Computed on 20190614 branch master:
72 | Size in KB
73 | 6712 .git
74 | 7080 .
75 | Computed on 20190614 branch master: RESET size
76 | Size in KB
77 | 788 .git
78 | 1096 .
79 | Computed on 20190702 branch master:
80 | Size in KB
81 | 5272 .git
82 | 5560 .
83 | Computed on 20190702 branch master: RESET size
84 | Size in KB
85 | 1220 .git
86 | 1532 .
87 | Computed on 20190708 branch master:
88 | Size in KB
89 | 3932 .git
90 | 4268 .
91 | Computed on 20190810 branch master:
92 | Size in KB
93 | 1064 .git
94 | 1340 .
95 | Computed on 20191010 branch master:
96 | Size in KB
97 | 7204 .git
98 | 7784 .
99 | Computed on 20191010 branch master:
100 | Size in KB
101 | 1000 .git
102 | 1580 .
103 | Computed on 20191227 branch master:
104 | Size in KB
105 | 7944 .git
106 | 8572 .
107 | Computed on 20191227 branch master: RESET size + module structure
108 | Size in KB
109 | 2912 .git
110 | 3528 .
111 | Computed on 20200411 branch master: buildAPKs
112 | 1838 .git
113 | 2079 .
114 | Computed on 20200411 branch master: RESET size + module structure
115 | 620 .git
116 | 951 .
117 | Computed on 20200411 branch master: git pull buildAPKs
118 | 800 .git
119 | 1130 .
120 |
121 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work will be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases will be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program will
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License will be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts will apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 | BuildAPKs Copyright (C) 2017-2021 by BuildAPKs
635 | All rights reserved https://buildapks.github.io/docsBuildAPKs/
636 | These programs come with ABSOLUTELY NO WARRANTY; for details type `show w'.
637 | This is free software, and you are welcome to redistribute it
638 | under certain conditions; type `show c' for details.
639 |
640 | This program is free software: you can redistribute it and/or modify
641 | it under the terms of the GNU General Public License as published by
642 | the Free Software Foundation, either version 3 of the License, or
643 | (at your option) any later version.
644 |
645 | This program is distributed in the hope that it will be useful,
646 | but WITHOUT ANY WARRANTY; without even the implied warranty of
647 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
648 | GNU General Public License for more details.
649 |
650 | You should have received a copy of the GNU General Public License
651 | along with this program. If not, see .
652 |
653 | Also add information on how to contact you by electronic and paper mail.
654 |
655 | If the program does terminal interaction, make it output a short
656 | notice like this when it starts in an interactive mode:
657 |
658 | BuildAPKs Copyright (C) 2017-2021 by BuildAPKs
659 | All rights reserved https://buildapks.github.io/docsBuildAPKs/
660 | These programs come with ABSOLUTELY NO WARRANTY; for details type `show w'.
661 | This is free software, and you are welcome to redistribute it
662 | under certain conditions; type `show c' for details.
663 |
664 | The hypothetical commands `show w' and `show c' should show the appropriate
665 | parts of the General Public License. Of course, your program's commands
666 | might be different; for a GUI interface, you would use an "about box".
667 |
668 | You should also get your employer (if you work as a programmer) or school,
669 | if any, to sign a "copyright disclaimer" for the program, if necessary.
670 | For more information on this, and how to apply and follow the GNU GPL, see
671 | .
672 |
673 | The GNU General Public License does not permit incorporating your program
674 | into proprietary programs. If your program is a subroutine library, you
675 | may consider it more useful to permit linking proprietary applications with
676 | the library. If this is what you want to do, use the GNU Lesser General
677 | Public License instead of this License. But first, please read
678 | .
679 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 | ## [buildAPKs](https://github.com/BuildAPKs/buildAPKs/)
4 |
5 | ##### -r--r--r-- [setup.buildAPKs.bash](https://raw.githubusercontent.com/BuildAPKs/buildAPKs/master/setup.buildAPKs.bash)
6 | ##### -rwxrwxrwx [setup.buildAPKs.bash](https://buildAPKs.github.io/buildAPKs/setup.buildAPKs.bash)
7 |
8 | BuildAPKs has [source code](https://github.com/BuildAPKs/) and [scripts](https://github.com/BuildAPKs/buildAPKs/tree/master/scripts/) in order to build APKs (Android Package Kits) on Android handhelds, smartphones and similar. Quick setup instructions can be [found here](https://buildapks.github.io/docsBuildAPKs/setup) and [also right here.](https://buildapks.github.io/docsBuildAPKs/reallyEasilyBuildAndroidAPKsOnDevice) To skip to installing in Amazon, Android, [Arch Linux](https://termuxarch.github.io/TermuxArch/), [Debian](https://termuxarch.github.io/docsTermuxArch/PRoot), Chromebook, [Ubuntu](https://termuxarch.github.io/docsTermuxArch/PRoot) and Windows on device in [Termux](https://github.com/termux/) and [Termux PRoot](https://github.com/termux/proot/) you can use:
9 |
10 | ```
11 |
12 | apt install curl
13 |
14 | curl -O https://raw.githubusercontent.com/BuildAPKs/buildAPKs/master/setup.buildAPKs.bash
15 |
16 | bash setup.buildAPKs.bash
17 |
18 | ```
19 | Once buildAPKs is installed, these commands will become available after opening a new [Termux](https://github.com/termux/) session:
20 | ```
21 | build.apps.bash
22 | build.bits.bash
23 | build.browsers.bash
24 | build.buildAPKs.bash
25 | build.buildAPKs.modules.bash
26 | build.clocks.bash
27 | build.code.google.com.bash
28 | build.compasses.bash
29 | build.demos.bash
30 | build.developers.tools.bash
31 | build.entertainment.bash
32 | build.flashlights.bash
33 | build.games.bash
34 | build.github.bash
35 | build.github.sequential.bash
36 | build.github.tarballs.bash
37 | build.github.topics.bash
38 | build.github.topics.bkp.bash
39 | build.github.topics30.bash
40 | build.hellos.bash
41 | build.in.dir.bash
42 | build.keyboards.bash
43 | build.launchers.bash
44 | build.live.wallpapers.bash
45 | build.native.bash
46 | build.one.bash
47 | build.repo.bash
48 | build.samples.bash
49 | build.top10.bash
50 | build.tutorials.bash
51 | build.widgets.bash
52 | buildAll.bash
53 | buildApplications.bash
54 | buildFlashlights.bash
55 | buildGames.bash
56 | buildSamples.bash
57 | ```
58 |
59 | [](https://buildapks.github.io/docsBuildAPKs/setup)
60 |
61 | #### File [opt/db/BNAMES](https://raw.githubusercontent.com/BuildAPKs/db.BuildAPKs/master/BNAMES) contains built APKs information.
62 |
63 | After installing, you can build thousands of exciting, amazing and beautiful APKs on an Android smartphone by running [shell scripts](https://www.google.com/search?q=shell+scripts) from [this directory](https://github.com/BuildAPKs/buildAPKs/tree/master/scripts/bash/build/). It is simple! The minimal install size to start building your first apps is about 10MB. Have fun and enjoy compiling, hacking, modifying and running these select APKs!
64 |
65 | Build Android APKs on device, on your smartphone and tablet with [Termux](https://github.com/termux/); Make applications for your Android smartphone and tablet! This repository contains source code for many Android applications that have been successfully built in [Termux](https://github.com/termux/).
66 |
67 | Have you ever wanted to build your own application? Something that you can distribute over the Internet, and can be used on Android smartphones and tablets worldwide. Would you dare to try to spend some time learning something new to do so?
68 |
69 | [BuildAPKs](https://github.com/BuildAPKs/) is a project containing repositories of source code designed just for this purpose. Source code is the way programs are written in a human understandable language for applications to compile and then to be run on an Android device. These programs have been successfully built on device, a smartphone. First successful builds on Sun May 28 2017 in [Termux](https://github.com/termux/) (Android 6.0.1 aarch64).
70 |
71 | __Cloning and updating [submodules](https://gist.github.com/gitaarik/8735255) is automated into the ` build*.bash ` scripts. To manually update this project to the newest version, see [` update.buildAPKs.sh `](https://github.com/shlibs/shlibs.sh/blob/master/buildAPKs/maintenance/up.sh) for information.__ If you get a history error message and similar from git pull, the simplest solution is ` mv ~/buildAPKs ~/b0 ` and then reclone into the $HOME folder. See [CHANGE.log](https://raw.githubusercontent.com/BuildAPKs/buildAPKs/master/CHANGE.log) for this git repository's change history.
72 |
73 | The ` ~/buildAPKs/sources/github ` and ` ~/buildAPKs/var ` directories can be symbolic links to external storage space to save native space on device. For example, a ` github/var ` directory can be created and each can be symlinked with ln -s. Prefix the build*.bash scripts with bash to run buildAPKs in external storage, i.e. [`$ bash buildFlashlights.bash`](https://raw.githubusercontent.com/BuildAPKs/buildAPKs/master/scripts/bash/build/buildFlashlights.bash). Build Android APKs on device (smartphone and tablet).
74 |
75 | This command: ` for i in $(cat ~/buildAPKs/var/db/UNAMES) ; do ~/buildAPKs/build.github.bash $i ; done ` will attempt to build [UNAMES](https://raw.githubusercontent.com/BuildAPKs/db.BuildAPKs/master/UNAMES), all known GitHub usernames.
76 |
77 | While this command: ` for i in $(cat ~/buildAPKs/var/db/TNAMES) ; do ~/buildAPKs/scripts/bash/github/build.github.topics.bash $i ; done ` will attempt to build [TNAMES](https://raw.githubusercontent.com/BuildAPKs/db.BuildAPKs/master/TNAMES), all known GitHub topics at GitHub.
78 |
79 | Please submit a [pull request](https://github.com/BuildAPKs/db.BuildAPKs/pulls) at db.BuildAPKs to add names to these listings. The [db.BuildAPKs ](https://github.com/BuildAPKs/db.BuildAPKs/tree/master/)[README.md](https://buildapks.github.io/db.BuildAPKs/) has more information about the new database buildAPKs uses. File [BNAMES](https://raw.githubusercontent.com/BuildAPKs/db.BuildAPKs/master/BNAMES) contains results from accounts that built at least one APK on device with BuildAPKs. The results are printed as follows: account name, download size, build time, number of AndroidManifest.xml files found, number of APKs built and the names of the APK files that built on device.
80 |
81 | ### Really Easily Build an Android APK on an Android Device (Smartphone and Tablet).
82 | [](https://buildapks.github.io/docsBuildAPKs/setup)
83 |
84 | Prefix these bash scripts by typing dot slash ` ./ ` on your Android smartphone and tablet in Termux, i.e. type ` ./b ` at the prompt $, press TAB TAB (x2). The prompt will magically add uild. Then add a capital A. Press TAB TAB (x2) again. This will build the following command on the command line [`./buildAll.bash`](https://raw.githubusercontent.com/BuildAPKs/buildAPKs/master/scripts/bash/build/buildAll.bash) for you. Press enter (return) in ` ~/buildAPKs/ `. Additional [CLI](https://www.ecosia.org/search?q=command+line+interface) information at [The Linux Documentation Project.](https://www.ecosia.org/search?q=command+line+interface+site%3A.tldp.org)
85 |
86 | The built APKs will be deposited into Download/builtAPKs if [Termux storage permission](https://github.com/termux/termux-app/blob/master/app/src/main/java/com/termux/app/TermuxActivity.java#L190&L198) is granted for installing on smartphone and tablet through browsers, and download and file managers. Built APKs will be deposited into ~/buildAPKs/cache/builtAPKs if storage permission is not granted. The minimal install size to start building your first applications is about 10MB. Have fun and enjoy compiling, hacking, modifying and running these select APKs on device!
87 |
88 | [](https://buildapks.github.io/docsBuildAPKs/setup)
89 |
90 | The [`buildAll.bash`](https://raw.githubusercontent.com/BuildAPKs/buildAPKs/master/scripts/bash/build/buildAll.bash) command can build hundreds of APKs on your device. Maximum space allotment for complete build of everything included (1209 APKs) is about 1.7GB for buildAPKs, plus about 124MB for the finished products deposited into Download/builtAPKs; More than twelve hundred and nine (1209) Android applications can be made from source code available at [BuildAPKs](https://github.com/BuildAPKs) on device today. With [build.github.bash](https://github.com/BuildAPKs/buildAPKs.github/blob/master/build.github.bash) you can build nearly an unlimited number of APKs which are available at GitHub.
91 |
92 | Please contribute to this project through both [the issues page](https://github.com/BuildAPKs/buildAPKs/issues) and [pull requests](https://github.com/BuildAPKs/buildAPKs/pulls). Enjoy building these select APKs for Termux [projects,](https://github.com/BuildAPKs/) and find the time to post your feelings [here,](https://github.com/BuildAPKs/buildAPKs/issues) and [at this wiki](https://github.com/BuildAPKs/buildAPKs/wiki).
93 |
94 | For more information about *nix try [this link,](http://tldp.org/) and you might want to try [this one](https://www.debian.org/doc/) too.
95 |
96 | 🚢🚤🚣⛵
97 |
98 |
99 |
--------------------------------------------------------------------------------
/opt/key/cert.x509.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIFfTCCA2WgAwIBAgIUFLE7bFEX+fis8qujaVqueacttl4wDQYJKoZIhvcNAQEL
3 | BQAwTjELMAkGA1UEBhMCZW4xCzAJBgNVBAgMAmNhMQswCQYDVQQHDAJsYTELMAkG
4 | A1UECgwCc2QxCzAJBgNVBAsMAmNzMQswCQYDVQQDDAJjczAeFw0yMjAyMjIwMzQ1
5 | MDhaFw0yMjAzMjQwMzQ1MDhaME4xCzAJBgNVBAYTAmVuMQswCQYDVQQIDAJjYTEL
6 | MAkGA1UEBwwCbGExCzAJBgNVBAoMAnNkMQswCQYDVQQLDAJjczELMAkGA1UEAwwC
7 | Y3MwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDUkLL/OMpazAlCVvnS
8 | dTIrOBnA/3TzjloI2XhVNKtNhhRfoI/dgIka2LCXC9EuF9GmZfhrrtl/DZAZJvWj
9 | 9BAChvgw7LO9iNDogoYjzwDs5LG7oHa7K6nClkBv7QiPbuBzKl8DWScmULiop9kn
10 | UsLqMQ9+u+aMWaSGv7I8gJSbclXyApKhCWmK/g0ltIpYwuEFxxnN6in0IGSUrn04
11 | pY+FnMlwb8tjb1u7zs8DHU+b4w6pW+q8J63oF4lAPzlTKYVRbehyEK42C9vygr/c
12 | 83FmnalxhRmSj1SQLJLaNHxZVJqwRdlyXEW9AxfS57RLy132zaag8S2CeThmdObA
13 | oR7wnuWwcYitb13M0TQjJ32tBWwlWEttHf/sqpvqyHOwoQI/vs2zuPPfJHLzG6ot
14 | d06z0elhICcBlD06Yb3c/6bD0lKgAu0BNHD+T/vjBkeK+l6LK/Q914ryeACDLPKL
15 | SSJJc11MCQ1rMq/W0CMbswKEs0H1LyQ8lYNgRFpN1q55MNug/ZnA5oMjZcTlPUDG
16 | bu3HRZJp3PgTBiGFxxDQdv03z5rhlCkp9yPs56M1AUgMHeFnY3ccO3a8pzKd0H1B
17 | iQB7fMskCT7ACyfQUfbfpA80kVn0D+dgk3m9wpAHjG7MQqtgcLuUqU57m+ddmxUE
18 | QZCZtByJ0/TooNW0G/d1zPV1fwIDAQABo1MwUTAdBgNVHQ4EFgQUp6QNxIN48AZD
19 | idO3i1JXvZPjrKswHwYDVR0jBBgwFoAUp6QNxIN48AZDidO3i1JXvZPjrKswDwYD
20 | VR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAgEAAoTi5V9mHkkyp0Uy30G1
21 | 7tTds/GCbKqbigPeNN2vXheZR+6lql7InMTm4I/HSEF5AToG1jPznrMhVjxG9n84
22 | SLajVMv/7y1L3Fyxv+xgVvmfYtU8n3R5huvlUIeucmGLNCx62rVFqFUFqz+dg12d
23 | M5vSWC6go5bsVsOJwKXo+Kw+8OYgCyqRzo/8edwSa7Cp5WCIOqckmR/KHXCIfvWP
24 | zYsONeHiWyXFTQftLsP8rvOd+a8eEqGj5/FMvRoa5hI+YP/GA3obofA/OI9QZMa7
25 | mzCPFR9/ovxqUxS8/dKG2uE7URxjEaqqEiA/M4k84LLwuEulHHfEiR0KzCe/g4vL
26 | Jae23KtTCjNZ/+FPB0F6TWYdBFKAONv8LqWLuWg0FY/kHhbxjmb1DwCCTcXITyy0
27 | AgBUsMMQAEQVrK7N1V2N07pBSbr2FUeXc1dZyi994Fb6q6iQLNcg8NusvILd+j3G
28 | lCQSxKGQiEZlNxe3jcxPT2WKMAdmaskg6M0tLBaR/w80cRmCtEdR9ceakucbPUkl
29 | R1DNdcw6nm0Qp8/BnFWywmtxCLQ3lE91FOOyKvGwz9uswoQs9l17Lvatn597t53x
30 | axsS3f+4ZQZGu8IE8uQYM6hLdVPP6lO7mUl6QUj9BcQrLwrAMo8nD1tvklYxrh6Z
31 | YOBJB+lPxt7Hb+hubBdxTMQ=
32 | -----END CERTIFICATE-----
33 |
--------------------------------------------------------------------------------
/opt/key/certificate.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIDGzCCAgMCFDpEfYMfBIVws/af2rp8WG0dl3dyMA0GCSqGSIb3DQEBCwUAMEox
3 | CzAJBgNVBAYTAlVTMQswCQYDVQQIDAJDQTELMAkGA1UEBwwCU0YxITAfBgNVBAoM
4 | GEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDAeFw0yMDA3MTgxMTEwMTVaFw00NzEy
5 | MDMxMTEwMTVaMEoxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJDQTELMAkGA1UEBwwC
6 | U0YxITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDCCASIwDQYJKoZI
7 | hvcNAQEBBQADggEPADCCAQoCggEBAPvTHvJ074Q1NiNAcQ0DFpmfopb47vgivwxt
8 | ez5o+t0kbtp80rQ9mKmQY7xVxiZJ8M3i99LeVEQbq3xdAx25ixk7rrM5cg52nlXn
9 | 8gWl9b5coZqs7SvpF4E6IqlEC3lJ8DquS2gFECWIpD9i1xk9cVQMqlRIpAXDHRmT
10 | NK/RcSfKvxg42HSnWZde0plb9ps3RB4BqyO92xcMMNpC2WTjaT1+h3OmNMnA+504
11 | Fgl0lAceLrQhltB7/eJmob8OoSVUyAVhC3tSQF0xtrWt7v3ERH43B1DJMK9UIS5Z
12 | qLIeIAfMspcOItJfIcbingqerzmMQly3UKft1rbf14GGj6qzYusCAwEAATANBgkq
13 | hkiG9w0BAQsFAAOCAQEAQEdH1hdLrKNnE1mTkjSLlp5RYQobO/038p2ZiDNlTI2c
14 | h5Eg+J0nt0AIIrM25qgrpJ6Ne+1COEwqrJuPzf/2k3qtw408digNxdFjy5dAOWfP
15 | 9EA8jFkuqiTCcmKlp3EnAI2m59l53pg1HLtUhQ+0UFgYCY7xIrL4TBIw/5JQaujj
16 | DaL+YpXv6GR23nCj9p473n6rtxl/BuRMoHMu2bEhnBrAbJ254uNuuf/ernuH0cHK
17 | gtP9PdBXtmWpi9A29/At1+o5Fzl7+MMyKkq3Psc+SvHr8OmftN004ve4kF3NiQi1
18 | Sj/QgbDcFG3q6kACIGvZnWVD4q31I0RjitUzqSGHfA==
19 | -----END CERTIFICATE-----
20 |
--------------------------------------------------------------------------------
/opt/key/key.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN RSA PRIVATE KEY-----
2 | MIIEpQIBAAKCAQEA+9Me8nTvhDU2I0BxDQMWmZ+ilvju+CK/DG17Pmj63SRu2nzS
3 | tD2YqZBjvFXGJknwzeL30t5URBurfF0DHbmLGTuuszlyDnaeVefyBaX1vlyhmqzt
4 | K+kXgToiqUQLeUnwOq5LaAUQJYikP2LXGT1xVAyqVEikBcMdGZM0r9FxJ8q/GDjY
5 | dKdZl17SmVv2mzdEHgGrI73bFwww2kLZZONpPX6Hc6Y0ycD7nTgWCXSUBx4utCGW
6 | 0Hv94mahvw6hJVTIBWELe1JAXTG2ta3u/cREfjcHUMkwr1QhLlmosh4gB8yylw4i
7 | 0l8hxuKeCp6vOYxCXLdQp+3Wtt/XgYaPqrNi6wIDAQABAoIBAQCyrOV0WovnXmn/
8 | MSYFeX97mMygGhhUbzLm+ndLnOkCJ2uQEqjdwiajiRN6+dESMbxuGPCF6cIYYRmX
9 | r9caLCAJ01LtT4EhygAmK+CJKWvnmYoAWVoeodBPnJQjTWhmspOEz04pjA4c04rW
10 | fqbn/bR/Uk04aCIZBIuNLelgJlcHR2doY2PiMzeUPl4V3ojV1cXF+LAWWFfgGWZn
11 | IOXZdkFoFPt/y722G/LkJHmIGXdldk3TkZt9AuOO2SYNsZa0kWxJa56NxGOC4M+w
12 | Lmaplqb3Q17XqOIjF3tGX81qCOw4KmP9rNxhmv+ntTawAdQkobUgU8Cl5rgAWp5h
13 | 47P7gIWhAoGBAP6G5W/BZIGDLBZT91A7+BiorxHpeupfi5Tz4c4yDZTyjzD+3M3r
14 | +kl6o8LiyWpnbJhm+hQSmOn9hXMFPvnWvnRS+WCEGytEu2Rb52967/c+RchdN/wQ
15 | SV78FSE3sh03KFxfaLnw45BclU5OCYSaAzr+Mzrt/4VMaMjUGbbRmFYnAoGBAP1I
16 | OJXV5+hPzLgQS8At4dhDMCrnuPaduu4gFEsdMAN40IgtLU4anMiNbmUB4E2ihm3L
17 | JHoYS1MKy/iJir79gNnsoV1EJGENQGB7p6yiF7TfV9rCSNriPiTMZrrSfr0nrbeS
18 | 9vGqMKp7myqUY/3cqCKvyuDuf++OsrLSrJEmgiudAoGBAI/aTfJLqzJHoLM94ZlH
19 | S4EkVU4aV43/UjRtYkHXqDV2oddfNAxuQpck6UlMQ+oPaiD4kn6lxCb7UmEfpegu
20 | ppW4D5mtEG3z+rVN/A/Vu6pRV79WcD3WNqGod4i+obxBYF5UzivJKdR9fyUylc6L
21 | /SdqZCn6OWBtPwvCVIYvD5ohAoGBAPZNbBFxYULNj0QTPMbXF3/J3qZqjrjsK+Lz
22 | OSjOammF7Cvw2tTQFlUFDCyXhXuZp+ZPHNrKkz1fC3lWr6EJPmstrMHYyRPD4i2x
23 | Mh4zxp/ybSnjsxt/1XTNfL0Cg5MIaetRtGjP2uF+sCbZBN/S24JXtw/DfpAEEYzK
24 | SFwiuYUVAoGAEOjxhc0RxX7quX8qd5Ss4DjngoyWJKe/3YIbYXX/JDcJr8UFOj/L
25 | klNduRYZTtfZarktlnYfgefPKxL70gQ4nr1S0JR9jtL4q4Fg1CavgN8kkds24sio
26 | iwlpgw60RSF8oP2iqzJbADqHJlCiNcfhwKUmx/SnDJf7pd9ZR3Sxo9k=
27 | -----END RSA PRIVATE KEY-----
28 |
--------------------------------------------------------------------------------
/opt/key/key.pk8:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BuildAPKs/buildAPKs/12f724f2d4a14c5e43a26f5951e270afa28678e5/opt/key/key.pk8
--------------------------------------------------------------------------------
/opt/key/request.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE REQUEST-----
2 | MIICqDCCAZACAQAwSjELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAkNBMQswCQYDVQQH
3 | DAJTRjEhMB8GA1UECgwYSW50ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIIBIjANBgkq
4 | hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA+9Me8nTvhDU2I0BxDQMWmZ+ilvju+CK/
5 | DG17Pmj63SRu2nzStD2YqZBjvFXGJknwzeL30t5URBurfF0DHbmLGTuuszlyDnae
6 | VefyBaX1vlyhmqztK+kXgToiqUQLeUnwOq5LaAUQJYikP2LXGT1xVAyqVEikBcMd
7 | GZM0r9FxJ8q/GDjYdKdZl17SmVv2mzdEHgGrI73bFwww2kLZZONpPX6Hc6Y0ycD7
8 | nTgWCXSUBx4utCGW0Hv94mahvw6hJVTIBWELe1JAXTG2ta3u/cREfjcHUMkwr1Qh
9 | Llmosh4gB8yylw4i0l8hxuKeCp6vOYxCXLdQp+3Wtt/XgYaPqrNi6wIDAQABoBkw
10 | FwYJKoZIhvcNAQkHMQoMCHBhc3N3b3JkMA0GCSqGSIb3DQEBCwUAA4IBAQBwK2t8
11 | L4TmFi4JSriUS6q/9hQu4Dgb8oHwHhS0roA7BhzNmbJykXjQWOHk3xJwPdovS6l+
12 | XgZbdETedXkBaokWtD9ujVlNhSUsAbHg/tVCWvbRpJ7cL2+KPDfddHiPvymj7vqk
13 | Rr6PhE0d1aF0YVd+12RErlqhrz8SrEGZbSPV3dN8KgDF6RDFO2o8ViLPVmird7yH
14 | Y0Wv1tOFgFPEznCcVno54HDWhffFlFT+h/sU60x+1a/mbU+aKSJyLJRCjazKpl/C
15 | xrSPZqwRuzknLCkRV9xfn4e8BY8AB7TrC9Iyo9YiEUNbapUv5wtJIlGjJ/RItpeH
16 | q0GXVBcSPdV26013
17 | -----END CERTIFICATE REQUEST-----
18 |
--------------------------------------------------------------------------------
/opt/lfhopt.txt:
--------------------------------------------------------------------------------
1 | 1.13. /opt
2 |
3 | This directory is reserved for all the software and add-on packages that
4 | are not part of the default installation. For example, StarOffice, Kylix,
5 | Netscape Communicator and WordPerfect packages are normally found here. To
6 | comply with the FSSTND, all third party applications should be installed in
7 | this directory. Any package to be installed here must locate its static files
8 | (ie. extra fonts, clipart, database files) must locate its static files in a
9 | separate /opt/'package' or /opt/'provider' directory tree (similar to the way
10 | in which Windows will install new software to its own directory tree C:\
11 | Windows\Progam Files\"Program Name"), where 'package' is a name that
12 | describes the software package and 'provider' is the provider's LANANA
13 | registered name.
14 |
15 | Although most distributions neglect to create the directories /opt/bin, /
16 | opt/doc, /opt/include, /opt/info, /opt/lib, and /opt/man they are reserved
17 | for local system administrator use. Packages may provide "front-end" files
18 | intended to be placed in (by linking or copying) these reserved directories
19 | by the system administrator, but must function normally in the absence of
20 | these reserved directories. Programs to be invoked by users are located in
21 | the directory /opt/'package'/bin. If the package includes UNIX manual pages,
22 | they are located in /opt/'package'/man and the same substructure as /usr/
23 | share/man must be used. Package files that are variable must be installed in
24 | /var/opt. Host-specific configuration files are installed in /etc/opt.
25 |
26 | Under no circumstances are other package files to exist outside the /opt, /
27 | var/opt, and /etc/opt hierarchies except for those package files that must
28 | reside in specific locations within the filesystem tree in order to function
29 | properly. For example, device lock files in /var/lock and devices in /dev.
30 | Distributions may install software in /opt, but must not modify or delete
31 | software installed by the local system administrator without the assent of
32 | the local system administrator.
33 |
34 | The use of /opt for add-on software is a well-established practice in the
35 | UNIX community. The System V Application Binary Interface [AT&T 1990], based
36 | on the System V Interface Definition (Third Edition) and the Intel Binary
37 | Compatibility Standard v. 2 (iBCS2) provides for an /opt structure very
38 | similar to the one defined here.
39 |
40 | Generally, all data required to support a package on a system must be
41 | present within /opt/'package', including files intended to be copied into /
42 | etc/opt/'package' and /var/opt/'package' as well as reserved directories in /
43 | opt. The minor restrictions on distributions using /opt are necessary because
44 | conflicts are possible between distribution installed and locally installed
45 | software, especially in the case of fixed pathnames found in some binary
46 | software.
47 |
48 | The structure of the directories below /opt/'provider' is left up to the
49 | packager of the software, though it is recommended that packages are
50 | installed in /opt/'provider'/'package' and follow a similar structure to the
51 | guidelines for /opt/package. A valid reason for diverging from this structure
52 | is for support packages which may have files installed in /opt/ 'provider'/
53 | lib or /opt/'provider'/bin.
54 |
55 | # source page https://www.tldp.org/LDP/Linux-Filesystem-Hierarchy/html/opt.html
56 | # lfhopt.txt EOF
57 |
--------------------------------------------------------------------------------
/opt/pic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BuildAPKs/buildAPKs/12f724f2d4a14c5e43a26f5951e270afa28678e5/opt/pic.png
--------------------------------------------------------------------------------
/scripts/bash/build/build.apps.bash:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Copyright 2019-2021 (c) all rights reserved by BuildAPKs; see LICENSE
3 | # https://buildapks.github.io published courtesy https://pages.github.com
4 | ################################################################################
5 | set -Eeuo pipefail
6 | shopt -s nullglob globstar
7 | export RDR="$HOME/buildAPKs"
8 | . "$RDR/scripts/bash/init/atrap.bash" 67 68 69 "${0##*/} build.apps.bash"
9 | export JAD="github.com/BuildAPKs/buildAPKs.apps"
10 | export JID="apps" # job id/name
11 | . "$HOME/buildAPKs/scripts/bash/init/init.bash" "$@"
12 | # build.apps.bash EOF
13 |
--------------------------------------------------------------------------------
/scripts/bash/build/build.bits.bash:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Copyright 2020-2021 (c) all rights reserved by BuildAPKs; see LICENSE
3 | # https://buildapks.github.io published courtesy https://pages.github.com
4 | ################################################################################
5 | set -Eeuo pipefail
6 | shopt -s nullglob globstar
7 | export RDR="$HOME/buildAPKs"
8 | . "$RDR/scripts/bash/init/atrap.bash" 67 68 69 "${0##*/} build.bits.bash"
9 | export JAD="github.com/BuildAPKs/buildAPKs.bits"
10 | export JID="bits" # job id/name
11 | . "$HOME/buildAPKs/scripts/bash/init/init.bash" "$@"
12 | # build.bits.bash EOF
13 |
--------------------------------------------------------------------------------
/scripts/bash/build/build.browsers.bash:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Copyright 2017-2021 (c) all rights reserved by BuildAPKs; see LICENSE
3 | # https://buildapks.github.io published courtesy https://pages.github.com
4 | ################################################################################
5 | set -Eeuo pipefail
6 | shopt -s nullglob globstar
7 | export RDR="$HOME/buildAPKs"
8 | . "$RDR/scripts/bash/init/atrap.bash" 67 68 69 "${0##*/} buildBrowsers.bash"
9 | export JAD="github.com/sdrausty/buildAPKsBrowsers"
10 | export JID="browsers" # job id/name
11 | . "$HOME/buildAPKs/scripts/bash/init/init.bash" "$@"
12 | # buildBrowsers.bash EOF
13 |
--------------------------------------------------------------------------------
/scripts/bash/build/build.buildAPKs.bash:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Copyright 2019-2021 (c) all rights reserved by BuildAPKs; see LICENSE
3 | # https://buildapks.github.io published courtesy https://pages.github.com
4 | ################################################################################
5 | set -Eeuo pipefail
6 | shopt -s nullglob globstar
7 | declare -a LIST # declare array for build scripts
8 | export RDR="$HOME/buildAPKs"
9 | . "$RDR/scripts/bash/init/atrap.bash" 67 68 69 "${0##*/} build.buildAPKs.bash"
10 | export NUM="$(date +%s)"
11 | export RDR="$HOME/buildAPKs"
12 | export OAUT="$(cat "$RDR/.conf/GAUTH" | awk 'NR==1')" # load login:token key from file. File RDR/.conf/GAUTH has more information about enabling OAUTH authentication.
13 | . "$RDR/scripts/bash/shlibs/lock.bash" wake.start
14 | . "$RDR/scripts/bash/shlibs/buildAPKs/bnchn.bash" bch.st
15 | . "$RDR/scripts/bash/shlibs/buildAPKs/init/build.buildAPKs.modules.bash"
16 | LIST=($(find "$RDR/scripts/bash/build/" -type f -name "*.bash" -not -name "build.buildAPKs.bash" -not -name "build.in.dir.bash" -not -name "build.one.bash" -not -name "buildAll.bash"))
17 | for NAME in "${LIST[@]}"
18 | do
19 | "$NAME"
20 | done
21 | . "$RDR/scripts/bash/shlibs/lock.bash" wake.stop
22 | . "$RDR/scripts/bash/shlibs/buildAPKs/bnchn.bash" bch.gt
23 | # build.buildAPKs.bash EOF
24 |
--------------------------------------------------------------------------------
/scripts/bash/build/build.clocks.bash:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Copyright 2017-2021 (c) all rights reserved by BuildAPKs; see LICENSE
3 | # https://buildapks.github.io published courtesy https://pages.github.com
4 | ################################################################################
5 | set -Eeuo pipefail
6 | shopt -s nullglob globstar
7 | export RDR="$HOME/buildAPKs"
8 | . "$RDR/scripts/bash/init/atrap.bash" 67 68 69 "${0##*/} build.clocks.bash"
9 | export JAD="github.com/BuildAPKs/buildAPKs.clocks"
10 | export JID="clocks" # job id/name
11 | . "$HOME/buildAPKs/scripts/bash/init/init.bash" "$@"
12 | # build.clocks.bash EOF
13 |
--------------------------------------------------------------------------------
/scripts/bash/build/build.compasses.bash:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Copyright 2017-2021 (c) all rights reserved by BuildAPKs; see LICENSE
3 | # https://buildapks.github.io published courtesy https://pages.github.com
4 | ################################################################################
5 | set -Eeuo pipefail
6 | shopt -s nullglob globstar
7 | export RDR="$HOME/buildAPKs"
8 | . "$RDR/scripts/bash/init/atrap.bash" 67 68 69 "${0##*/} build.compasses.bash"
9 | export JAD="github.com/BuildAPKs/buildAPKs.compasses"
10 | export JID="compasses" # job id/name
11 | . "$HOME/buildAPKs/scripts/bash/init/init.bash" "$@"
12 | # build.compasses.bash EOF
13 |
--------------------------------------------------------------------------------
/scripts/bash/build/build.demos.bash:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Copyright 2020-2021 (c) all rights reserved by BuildAPKs; see LICENSE
3 | # https://buildapks.github.io published courtesy https://pages.github.com
4 | ################################################################################
5 | set -Eeuo pipefail
6 | shopt -s nullglob globstar
7 | export RDR="$HOME/buildAPKs"
8 | . "$RDR/scripts/bash/init/atrap.bash" 67 68 69 "${0##*/} build.demos.bash"
9 | export JAD="github.com/BuildAPKs/buildAPKs.demos"
10 | export JID="demos" # job id/name
11 | . "$HOME/buildAPKs/scripts/bash/init/init.bash" "$@"
12 | # build.demos.bash EOF
13 |
--------------------------------------------------------------------------------
/scripts/bash/build/build.developers.tools.bash:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Copyright 2017-2021 (c) all rights reserved by BuildAPKs; see LICENSE
3 | # https://buildapks.github.io published courtesy https://pages.github.com
4 | ################################################################################
5 | set -Eeuo pipefail
6 | shopt -s nullglob globstar
7 | export RDR="$HOME/buildAPKs"
8 | . "$RDR/scripts/bash/init/atrap.bash" 67 68 69 "${0##*/} build.developers.tools.bash"
9 | export JAD="github.com/BuildAPKs/buildAPKs.developers.tools"
10 | export JID="tools" # job id/name
11 | . "$HOME/buildAPKs/scripts/bash/init/init.bash" "$@"
12 | # build.developers.tools.bash EOF
13 |
--------------------------------------------------------------------------------
/scripts/bash/build/build.entertainment.bash:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Copyright 2019-2021 (c) all rights reserved by BuildAPKs; see LICENSE
3 | # https://buildapks.github.io published courtesy https://pages.github.com
4 | ################################################################################
5 | set -Eeuo pipefail
6 | shopt -s nullglob globstar
7 | export RDR="$HOME/buildAPKs"
8 | . "$RDR/scripts/bash/init/atrap.bash" 67 68 69 "${0##*/} build.entertainment.bash"
9 | export JAD="github.com/BuildAPKs/buildAPKs.entertainment"
10 | export JID="entertainment" # job id/name
11 | . "$HOME/buildAPKs/scripts/bash/init/init.bash" "$@"
12 | # build.entertainment.bash EOF
13 |
--------------------------------------------------------------------------------
/scripts/bash/build/build.flashlights.bash:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Copyright 2019-2021 (c) all rights reserved by BuildAPKs; see LICENSE
3 | # https://buildapks.github.io published courtesy https://pages.github.com
4 | ################################################################################
5 | set -Eeuo pipefail
6 | shopt -s nullglob globstar
7 | export RDR="$HOME/buildAPKs"
8 | . "$RDR/scripts/bash/init/atrap.bash" 67 68 69 "${0##*/} build.flashlights.bash"
9 | export JAD="github.com/BuildAPKs/buildAPKs.flashlights"
10 | export JID="torches" # job id/name
11 | . "$HOME/buildAPKs/scripts/bash/init/init.bash" "$@"
12 | # build.flashlights.bash EOF
13 |
--------------------------------------------------------------------------------
/scripts/bash/build/build.games.bash:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Copyright 2019-2021 (c) all rights reserved by BuildAPKs; see LICENSE
3 | # https://buildapks.github.io published courtesy https://pages.github.com
4 | ################################################################################
5 | set -Eeuo pipefail
6 | shopt -s nullglob globstar
7 | export RDR="$HOME/buildAPKs"
8 | . "$RDR/scripts/bash/init/atrap.bash" 67 68 69 "${0##*/} build.games.bash"
9 | export JAD="github.com/BuildAPKs/buildAPKs.games"
10 | export JID="gaming" # job id/name
11 | . "$HOME/buildAPKs/scripts/bash/init/init.bash" "$@"
12 | # build.games.bash EOF
13 |
--------------------------------------------------------------------------------
/scripts/bash/build/build.hellos.bash:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Copyright 2020-2021 (c) all rights reserved
3 | # by S D Rausty https://sdrausty.github.io
4 | #####################################################################
5 | set -Eeuo pipefail
6 | shopt -s nullglob globstar
7 | export RDR="$HOME/buildAPKs"
8 | . "$RDR/scripts/bash/init/atrap.bash" 67 68 69 "${0##*/} build.hellos.bash"
9 | export JAD=github.com/BuildAPKs/buildAPKs.hellos
10 | export JID=hellos # job id/name
11 | . "$HOME/buildAPKs/scripts/bash/init/init.bash" "$@"
12 | # build.hellos.bash EOF
13 |
--------------------------------------------------------------------------------
/scripts/bash/build/build.in.dir.bash:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Copyright 2019-2021 (c) all rights reserved
3 | # by SDRausty https://sdrausty.github.io
4 | #####################################################################
5 | set -Eeuo pipefail
6 | shopt -s nullglob globstar
7 | export RDR="$HOME/buildAPKs"
8 | [ "$PWD" = "$PREFIX" ] || [ "$PWD" = "$HOME" ] || [ "$PWD" = "$RDR" ] && printf "\\e[?25h\\e[1;7;38;5;0mSignal 224 generated in %s; Command '${0##*/}' cannot be run in directory %s; %s exiting...\\e[0m\\n" "$PWD" "$PWD" "${0##*/} build.in.dir.bash" && exit 224
9 | . "$RDR"/scripts/bash/init/atrap.bash 201 211 221 "${0##*/} build.in.dir.bash" wake.start
10 | export JDR="$PWD"
11 | export DAY="$(date +%Y%m%d)"
12 | export JID="in.dir.${JDR##*/}"
13 | export NUM="$(date +%s)"
14 | export OAUT="$(cat "$RDR/.conf/GAUTH" | awk 'NR==1')" # load login:token key from .conf/GAUTH file, see the GAUTH file for more information to enable OAUTH authentication
15 | . "$RDR"/scripts/bash/init/ushlibs.bash
16 | . "$RDR"/scripts/bash/shlibs/buildAPKs/bnchn.bash bch.st
17 | . "$RDR"/scripts/bash/shlibs/buildAPKs/fandm.bash
18 | _ANDB_
19 | . "$RDR"/scripts/bash/shlibs/buildAPKs/bnchn.bash bch.gt
20 | # build.in.dir.bash EOF
21 |
--------------------------------------------------------------------------------
/scripts/bash/build/build.keyboards.bash:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Copyright 2021 (c) all rights reserved by BuildAPKs; see LICENSE
3 | # https://buildapks.github.io published courtesy https://pages.github.com
4 | ################################################################################
5 | set -Eeuo pipefail
6 | shopt -s nullglob globstar
7 | export RDR="$HOME/buildAPKs"
8 | . "$RDR/scripts/bash/init/atrap.bash" 67 68 69 "${0##*/} build.keyboards.bash"
9 | export JAD="github.com/BuildAPKs/buildAPKs.keyboards"
10 | export JID="keyboards" # job id/name
11 | . "$HOME/buildAPKs/scripts/bash/init/init.bash" "$@"
12 | # build.keyboards.bash EOF
13 |
--------------------------------------------------------------------------------
/scripts/bash/build/build.launchers.bash:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Copyright 2017-2021 (c) all rights reserved
3 | # by S D Rausty https://sdrausty.github.io
4 | #####################################################################
5 | set -Eeuo pipefail
6 | shopt -s nullglob globstar
7 | export RDR="$HOME/buildAPKs"
8 | . "$RDR/scripts/bash/init/atrap.bash" 67 68 69 "${0##*/} build.launchers.bash"
9 | export JAD=github.com/BuildAPKs/buildAPKs.launchers
10 | export JID=launchers # job id/name
11 | . "$HOME/buildAPKs/scripts/bash/init/init.bash" "$@"
12 | # build.launchers.bash EOF
13 |
--------------------------------------------------------------------------------
/scripts/bash/build/build.live.wallpapers.bash:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Copyright 2019-2021 (c) all rights reserved
3 | # by BuildAPKs https://buildapks.github.io
4 | #####################################################################
5 | set -Eeuo pipefail
6 | shopt -s nullglob globstar
7 | export RDR="$HOME/buildAPKs"
8 | . "$RDR/scripts/bash/init/atrap.bash" 67 68 69 "${0##*/} build.live.wallpapers.bash"
9 | export JAD=github.com/BuildAPKs/buildAPKs.live.wallpapers
10 | export JID=live.wallpapers # job id/name
11 | . "$HOME/buildAPKs/scripts/bash/init/init.bash" "$@"
12 | # build.live.wallpapers.bash EOF
13 |
--------------------------------------------------------------------------------
/scripts/bash/build/build.native.bash:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Copyright 2017-2021 (c) all rights reserved
3 | # by S D Rausty https://sdrausty.github.io
4 | #####################################################################
5 | set -Eeuo pipefail
6 | shopt -s nullglob globstar
7 | export RDR="$HOME/buildAPKs"
8 | . "$RDR/scripts/bash/init/atrap.bash" 67 68 69 "${0##*/} build.native.bash"
9 | export JAD=github.com/BuildAPKs/buildAPKs.native
10 | export JID=native2 # job id/name
11 | [[ -f "$RDR"/.conf/DOSO ]] && [[ $(head -1 "$RDR"/.conf/DOSO) -eq 1 ]] && sed -i '1c\0' "$RDR"/.conf/DOSO
12 | . "$HOME/buildAPKs/scripts/bash/init/init.bash" "$@"
13 | # build.native.bash EOF
14 |
--------------------------------------------------------------------------------
/scripts/bash/build/build.one.bash:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Copyright 2017-2021 (c) all rights reserved by BuildAPKs
3 | # See LICENSE for details https://buildapks.github.io/docsBuildAPKs/
4 | #####################################################################
5 | set -Eeuo pipefail
6 | shopt -s nullglob globstar
7 | [ -z "${RDR:-}" ] && RDR="$HOME/buildAPKs"
8 | [ "$PWD" = "${PREFIX%/*}" ] || [ "$PWD" = "$PREFIX" ] || [ "$PWD" = "$HOME" ] || [ "$PWD" = "$RDR" ] && { printf "Signal 224 generated in %s; Command '${0##*/}' cannot be run in directory %s; %s exiting...\\n" "$PWD" "$PWD" "${0##*/} build.one.bash" ; exit 224 ; }
9 |
10 | _SBOTRPERROR_() { # run on script error
11 | local RV="$?"
12 | printf "buildAPKs %s WARNING: ERROR %s received by build.one.bash!\n" "${0##*/}" "$RV"
13 | [[ $(awk 'NR==1' "$RDR/.conf/QUIET") == false ]] && printf "\\e[?25h\\e[1;7;38;5;0mbuildAPKs %s build.one.bash ERROR: Signal %s received! More information in \`%s/var/log/stnderr.%s.log\` file.\\e[0m\\n" "${0##*/}" "$RV" "$RDR" "$JID"
14 | [[ $(awk 'NR==1' "$RDR/.conf/QUIET") == false ]] && [ "$RV" = 255 ] && printf "\\e[?25h\\e[1;7;38;5;0mOn Signal 255 try running %s again if the error includes R.java and similar; This error might have been corrected by clean up. More information in \`%s/var/log/stnderr.%s.log\` file.\\e[0m\\n" "${0##*/}" "$RDR" "$JID"
15 | _CLEANUP_
16 | exit 160
17 | }
18 |
19 | _SBOTRPEXIT_() { # run on exit
20 | local RV="$?"
21 | [[ $(awk 'NR==1' "$RDR/.conf/QUIET") == false ]] && [ "$RV" != 0 ] && [ "$RV" != 224 ] && printf "\\e[?25h\\e[1;7;38;5;0mbuildAPKs signal %s received by %s in %s by build.one.bash. More information in \`%s/var/log/stnderr.%s.log\` file.\\n\\n" "$RV" "${0##*/}" "$PWD" "$RDR" "$JID" && (printf "%s\\e[0m\\n" "Running: VAR=\"\$(grep -C 2 -ie error -ie errors \"$RDR/var/log/stnderr.$JID.log\")\" && VAR=\"\$(grep -v \\-\\- <<< \$VAR)\" && head <<< \$VAR && tail <<< \$VAR ") && VAR="$(grep -C 2 -ie error -ie errors "$RDR/var/log/stnderr.$JID.log")" && VAR="$(grep -v \\-\\- <<< "$VAR")" && head <<< "$VAR" && tail <<< "$VAR" && printf "\\n\\n"
22 | [[ $(awk 'NR==1' "$RDR/.conf/QUIET") == false ]] && [ "$RV" = 223 ] && printf "\\e[?25h\\e[1;7;38;5;0mSignal 223 generated in %s; Try running %s again; This error can be resolved by running %s in a directory that has an \`AndroidManifest.xml\` file. More information in \`stnderr*.log\` files.\\n\\nRunning \`ls\`:\\e[0m\\n" "$PWD" "${0##*/}" "${0##*/}" && ls
23 | _CLEANUP_
24 | printf "\\e[?25h\\e[0m"
25 | set +Eeuo pipefail
26 | exit 0
27 | }
28 |
29 | _SBOTRPSIGNAL_() { # run on signal
30 | local RV="$?"
31 | printf "buildAPKs %s WARNING: SIGNAL %s received by build.one.bash!\n" "${0##*/}" "$RV"
32 | _CLEANUP_
33 | exit 161
34 | }
35 |
36 | _SBOTRPQUIT_() { # run on quit
37 | local RV="$?"
38 | printf "buildAPKs %s WARNING: QUIT SIGNAL %s received by build.one.bash!\n" "${0##*/}" "$RV"
39 | _CLEANUP_
40 | exit 162
41 | }
42 |
43 | trap '_SBOTRPERROR_ $LINENO $BASH_COMMAND $?' ERR
44 | trap _SBOTRPEXIT_ EXIT
45 | trap _SBOTRPSIGNAL_ HUP INT TERM
46 | trap _SBOTRPQUIT_ QUIT
47 |
48 | _CLEANUP_ () {
49 | sleep 0."$(shuf -i 24-72 -n 1)" # add device latency support
50 | printf "\\e[1;38;5;151m%s\\n\\e[0m" "Completing tasks..."
51 | rm -f ./*-debug.key
52 | rm -rf ./output ./gen ./obj
53 | [ -d ./assets ] && rmdir --ignore-fail-on-non-empty ./assets
54 | [ -d ./res ] && rmdir --ignore-fail-on-non-empty ./res
55 | find . -type f -name "*.class" -delete
56 | find . -type f -name R.java -delete
57 | printf "\\e[1;38;5;151mCompleted tasks in ~/%s/.\\n\\n\\e[0m" "$(cut -d"/" -f7-99 <<< "$PWD")"
58 | }
59 |
60 | _PRINTSGE_ () {
61 | printf "\\e[1;48;5;167m%s\\e[0m\\n" "Signal generated $1 ${0##*/} build.one.bash: EXITING..."
62 | exit 220
63 | }
64 |
65 | # if root directory is undefined, define the root directory as ~/buildAPKs
66 | . "$RDR"/scripts/bash/shlibs/buildAPKs/copy.apk.bash
67 | # if working directory is $HOME or buildAPKs, exit
68 | printf "\\e[0m\\n\\e[1;38;5;116mBeginning build in ~/%s/:\\n\\e[0m" "$(cut -d"/" -f7-99 <<< "$PWD")"
69 | # if variables are undefined, define variables
70 | find . -maxdepth 1 -type f -name "*.apk" -delete
71 | tree 2>/dev/null || find . -type f -print | sed 's@.*/@@' | sort
72 | [ -z "${DAY:-}" ] && DAY="$(date +%Y%m%d)"
73 | [ -z "${2:-}" ] && JDR="$PWD"
74 | [ -z "${JID:-}" ] && JID="${PWD##*/}" # https://www.tldp.org/LDP/abs/html/parameter-substitution.html
75 | [ -z "${NUM:-}" ] && NUM=""
76 | # if it does not exist, create it
77 | [ -e ./assets ] || mkdir -p ./assets
78 | [ -e ./output/lib ] || mkdir -p ./output/lib
79 | [ -e ./gen ] || mkdir -p ./gen
80 | [ -e ./obj ] || mkdir -p ./obj
81 | [ -e ./res ] || mkdir -p ./res
82 | LIBAU="$(awk 'NR==1' "$RDR/.conf/LIBAUTH")" # load true/false from .conf/LIBAUTH file. File LIBAUTH has information about loading artifacts and libraries into the build process.
83 | if [[ "$LIBAU" == true ]]
84 | then # load artifacts and libraries into the build process
85 | printf "\\e[1;34m%s" "Loading artifacts and libraries into the compilation: "
86 | BOOTCLASSPATH=""
87 | SYSJCLASSPATH=""
88 | JSJCLASSPATH=""
89 | DIRLIST=""
90 | LIBDIRPATH=("$JDR/lib" "$JDR/libraries" "$JDR/library" "$JDR/libs" "$RDR/var/cache/lib") # modify array LIBDIRPATH to suit the projects artifact needs.
91 | for LIBDIR in ${LIBDIRPATH[@]} # every element in array LIBDIRPATH
92 | do # directory path check
93 | if [[ -d "$LIBDIR" ]] # library directory exists
94 | then # search directory for artifacts and libraries
95 | DIRLIS="$(find -L "$LIBDIR" -type f -name "*.jar" 2>/dev/null)" || _PRINTSGE_ DIRLIS
96 | DIRLIST="$DIRLIST $DIRLIS"
97 | NUMIA=$(wc -l <<< "$DIRLIST")
98 | if [[ $DIRLIS == "" ]] # nothing was found
99 | then # adjust ` wc -l ` count to zero
100 | NUMIA=0
101 | fi
102 | printf "\\e[1;34m%s" "Adding $NUMIA artifacts and libraries from directory $LIBDIR into build ${PWD##*/} : "
103 | fi
104 | done
105 | for LIB in $DIRLIST
106 | do
107 | BOOTCLASSPATH=${LIB}:${BOOTCLASSPATH};
108 | SYSJCLASSPATH="-I $LIB $SYSJCLASSPATH"
109 | JSJCLASSPATH="-j $LIB $SYSJCLASSPATH"
110 | done
111 | BOOTCLASSPATH=${BOOTCLASSPATH%%:}
112 | AAPTENT=" $SYSJCLASSPATH "
113 | [ -e "./libs/res-appcompat" ] && AAPTENT=" -S libs/res-appcompat $AAPTENT"
114 | [ -e "./libs/res-cardview" ] && AAPTENT=" -S libs/res-cardview $AAPTENT"
115 | [ -e "./libs/res-design" ] && AAPTENT=" -S libs/res-design $AAPTENT"
116 | [ -e "./libs/res-recyclerview" ] && AAPTENT=" -S libs/res-recyclerview $AAPTENT"
117 | AAPTENT=" --auto-add-overlay $SYSJCLASSPATH " # add 500K
118 | ECJENT=" -cp $BOOTCLASSPATH "
119 | printf "\\e[1;32m\\bDONE\\e[0m\\n"
120 | else # do not load artifacts and libraries into the build process.
121 | AAPTENT=""
122 | ECJENT=""
123 | JSJCLASSPATH=""
124 | fi
125 | NOW=$(date +%s)
126 | PKGNAM="$(grep -o "package=.*" AndroidManifest.xml | cut -d\" -f2)"
127 | [ -f ./output/"$PKGNAM.apk" ] && rm ./output/"$PKGNAM.apk"
128 | PKGNAME="$PKGNAM.$NOW"
129 | COMMANDIF="$(command -v getprop)" || _PRINTSGE_ COMMANDIF
130 | if [[ "$COMMANDIF" = "" ]]
131 | then
132 | MSDKVERSION="14"
133 | PRSYSLOCALE="en"
134 | TSDKVERSION="23"
135 | else
136 | MSDKVERSION="$(getprop ro.build.version.min_supported_target_sdk)" || printf "%s" "signal ro.build.version.min_supported_target_sdk ${0##*/} build.one.bash generated; Continuing... " && MSDKVERSION="14"
137 | PRSYSLOCALE="$(getprop persist.sys.locale|awk -F- '{print $1}')" || printf "%s" "Signal persist.sys.locale ${0##*/} build.one.bash generated; Continuing... " && PRSYSLOCALE="en"
138 | TSDKVERSION="$(getprop ro.build.version.sdk)" || printf "%s" "Signal ro.build.version.sdk ${0##*/} build.one.bash generated; Continuing... " && TSDKVERSION="23"
139 | fi
140 | sed -i "s/minSdkVersion\=\"[0-9]\"/minSdkVersion\=\"$MSDKVERSION\"/g" AndroidManifest.xml
141 | sed -i "s/minSdkVersion\=\"[0-9][0-9]\"/minSdkVersion\=\"$MSDKVERSION\"/g" AndroidManifest.xml
142 | sed -i "s/targetSdkVersion\=\"[0-9]\"/targetSdkVersion\=\"$TSDKVERSION\"/g" AndroidManifest.xml
143 | sed -i "s/targetSdkVersion\=\"[0-9][0-9]\"/targetSdkVersion\=\"$TSDKVERSION\"/g" AndroidManifest.xml
144 | printf "\\e[1;38;5;115m%s\\n\\e[0m" "aapt: started..."
145 | # build entry point
146 | aapt package $AAPTENT -c "$PRSYSLOCALE" -f --generate-dependencies -J gen --min-sdk-version "$MSDKVERSION" -M AndroidManifest.xml --target-sdk-version "$TSDKVERSION" --replace-version -S res --version-code "$NOW" --version-name "$PKGNAME" || _PRINTSGE_ aapt
147 | printf "\\e[1;38;5;148m%s; \\e[1;38;5;114m%s\\n\\e[0m" "aapt: done" "dalvikvm: begun..."
148 | unset JAVA_HOME
149 | dalvikvm -Xmx512m -Xcompiler-option --compiler-filter=speed -cp "$PREFIX"/share/dex/ecj.jar org.eclipse.jdt.internal.compiler.batch.Main -proc:none -source 1.8 -target 1.8 -cp "$PREFIX"/share/java/android.jar $ECJENT -d ./obj . || _PRINTSGE_ dalvikvm
150 | printf "\\e[1;38;5;149m%s; \\e[1;38;5;113m%s\\n\\e[0m" "dalvikvm: done" "dx: started..."
151 | dx --dex --output=output/classes.dex ./obj || _PRINTSGE_ dx
152 | printf "\\e[1;38;5;148m%s; \\e[1;38;5;112m%s\\n\\e[0m" "dx: done" "Making $PKGNAME.apk..."
153 | aapt package -f --min-sdk-version "$MSDKVERSION" --target-sdk-version "$TSDKVERSION" -M AndroidManifest.xml $JSJCLASSPATH -S ./res -A ./assets -F ./output/"$PKGNAME".apk || _PRINTSGE_ aapt
154 | cd output
155 | ISDOSO="$(head -n 1 "$RDR/.conf/DOSO")"
156 | if [[ $ISDOSO = 0 ]]
157 | then
158 | . "$RDR"/scripts/bash/shlibs/buildAPKs/doso.bash || printf "\\e[1;48;5;166m%s\\e[0m\\n" "Signal generated doso.bash ${0##*/} build.one.bash: Continuing..."
159 | cd "$JDR"
160 | . "$RDR"/scripts/bash/shlibs/buildAPKs/native.bash || printf "\\e[1;48;5;166m%s\\e[0m\\n" "Signal generated native.bash ${0##*/} build.one.bash: Continuing..."
161 | cd "$JDR"/output
162 | else
163 | printf "%s\\n" "To build and include \`*.so\` files in the APK build change the 1 in file ~/${RDR##*/}/.conf/DOSO to a 0. The command \`build.native.bash\` builds native APKs on device and will do this when run."
164 | fi
165 | SOFILES="$(find lib -type f -name "*.so")"
166 | printf "\\e[1;38;5;113m%s\\e[1;38;5;107m\\n" "Adding classes.dex $SOFILES to $PKGNAME.apk..."
167 | aapt add -v -f "$PKGNAME.apk" classes.dex $SOFILES
168 | mv "$PKGNAME.apk" "$PKGNAME.0.apk"
169 | printf "\\e[1;38;5;114m%s" "Signing $PKGNAME.apk: "
170 | "$RDR/scripts/sh/shlibs/signapk" sign --cert "$RDR/opt/key/cert.x509.pem" --key "$RDR/opt/key/key.pk8" --out "$PKGNAME.apk" "$PKGNAME.0.apk"
171 | printf "%s\\e[1;38;5;108m\\n" "DONE"
172 | _COPYAPK_ || printf "%s\\n" "Unable to copy APK file ${0##*/} build.one.bash; Continuing..."
173 | mv "$PKGNAME.apk" ../"$PKGNAM.apk"
174 | cd ..
175 | printf "\\e[1;38;5;116mThe built APK can be installed with the command: termux-open ~/%s/%s \\n" "$(cut -d"/" -f7-99 <<< "$PWD")" "$PKGNAM.apk"
176 | printf "\\e[1;7;38;5;34mPlease share %s everwhere%s!\\e[0m\\n" "https://wiki.termux.com/wiki/Development" "🌎🌍🌏🌐"
177 | # build.one.bash EOF
178 |
--------------------------------------------------------------------------------
/scripts/bash/build/build.one.bash0:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Copyright 2017-2021 (c) all rights reserved by BuildAPKs
3 | # See LICENSE for details https://buildapks.github.io/docsBuildAPKs/
4 | #####################################################################
5 | set -Eeuo pipefail
6 | shopt -s nullglob globstar
7 | [ -z "${RDR:-}" ] && RDR="$HOME/buildAPKs"
8 | [ "$PWD" = "${PREFIX%/*}" ] || [ "$PWD" = "$PREFIX" ] || [ "$PWD" = "$HOME" ] || [ "$PWD" = "$RDR" ] && { printf "Signal 224 generated in %s; Command '${0##*/}' cannot be run in directory %s; %s exiting...\\n" "$PWD" "$PWD" "${0##*/} build.one.bash" ; exit 224 ; }
9 |
10 | _SBOTRPERROR_() { # run on script error
11 | local RV="$?"
12 | printf "buildAPKs %s WARNING: ERROR %s received by build.one.bash!\n" "${0##*/}" "$RV"
13 | [[ $(awk 'NR==1' "$RDR/.conf/QUIET") == false ]] && printf "\\e[?25h\\e[1;7;38;5;0mbuildAPKs %s build.one.bash ERROR: Signal %s received! More information in \`%s/var/log/stnderr.%s.log\` file.\\e[0m\\n" "${0##*/}" "$RV" "$RDR" "$JID"
14 | [[ $(awk 'NR==1' "$RDR/.conf/QUIET") == false ]] && [ "$RV" = 255 ] && printf "\\e[?25h\\e[1;7;38;5;0mOn Signal 255 try running %s again if the error includes R.java and similar; This error might have been corrected by clean up. More information in \`%s/var/log/stnderr.%s.log\` file.\\e[0m\\n" "${0##*/}" "$RDR" "$JID"
15 | _CLEANUP_
16 | exit 160
17 | }
18 |
19 | _SBOTRPEXIT_() { # run on exit
20 | local RV="$?"
21 | [[ $(awk 'NR==1' "$RDR/.conf/QUIET") == false ]] && [ "$RV" != 0 ] && [ "$RV" != 224 ] && printf "\\e[?25h\\e[1;7;38;5;0mbuildAPKs signal %s received by %s in %s by build.one.bash. More information in \`%s/var/log/stnderr.%s.log\` file.\\n\\n" "$RV" "${0##*/}" "$PWD" "$RDR" "$JID" && (printf "%s\\e[0m\\n" "Running: VAR=\"\$(grep -C 2 -ie error -ie errors \"$RDR/var/log/stnderr.$JID.log\")\" && VAR=\"\$(grep -v \\-\\- <<< \$VAR)\" && head <<< \$VAR && tail <<< \$VAR ") && VAR="$(grep -C 2 -ie error -ie errors "$RDR/var/log/stnderr.$JID.log")" && VAR="$(grep -v \\-\\- <<< "$VAR")" && head <<< "$VAR" && tail <<< "$VAR" && printf "\\n\\n"
22 | [[ $(awk 'NR==1' "$RDR/.conf/QUIET") == false ]] && [ "$RV" = 223 ] && printf "\\e[?25h\\e[1;7;38;5;0mSignal 223 generated in %s; Try running %s again; This error can be resolved by running %s in a directory that has an \`AndroidManifest.xml\` file. More information in \`stnderr*.log\` files.\\n\\nRunning \`ls\`:\\e[0m\\n" "$PWD" "${0##*/}" "${0##*/}" && ls
23 | _CLEANUP_
24 | printf "\\e[?25h\\e[0m"
25 | set +Eeuo pipefail
26 | exit 0
27 | }
28 |
29 | _SBOTRPSIGNAL_() { # run on signal
30 | local RV="$?"
31 | printf "buildAPKs %s WARNING: SIGNAL %s received by build.one.bash!\n" "${0##*/}" "$RV"
32 | _CLEANUP_
33 | exit 161
34 | }
35 |
36 | _SBOTRPQUIT_() { # run on quit
37 | local RV="$?"
38 | printf "buildAPKs %s WARNING: QUIT SIGNAL %s received by build.one.bash!\n" "${0##*/}" "$RV"
39 | _CLEANUP_
40 | exit 162
41 | }
42 |
43 | trap '_SBOTRPERROR_ $LINENO $BASH_COMMAND $?' ERR
44 | trap _SBOTRPEXIT_ EXIT
45 | trap _SBOTRPSIGNAL_ HUP INT TERM
46 | trap _SBOTRPQUIT_ QUIT
47 |
48 | _CLEANUP_ () {
49 | sleep 0."$(shuf -i 24-72 -n 1)" # add device latency support
50 | printf "\\e[1;38;5;151m%s\\n\\e[0m" "Completing tasks..."
51 | rm -f ./*-debug.key
52 | rm -rf ./output ./gen ./obj
53 | [ -d ./assets ] && rmdir --ignore-fail-on-non-empty ./assets
54 | [ -d ./res ] && rmdir --ignore-fail-on-non-empty ./res
55 | find . -type f -name "*.class" -delete
56 | find . -type f -name R.java -delete
57 | printf "\\e[1;38;5;151mCompleted tasks in ~/%s/.\\n\\n\\e[0m" "$(cut -d"/" -f7-99 <<< "$PWD")"
58 | }
59 |
60 | _PRINTSGE_ () {
61 | printf "\\e[1;48;5;167m%s\\e[0m\\n" "Signal generated $1 ${0##*/} build.one.bash: EXITING..."
62 | exit 220
63 | }
64 |
65 | # if root directory is undefined, define the root directory as ~/buildAPKs
66 | . "$RDR"/scripts/bash/shlibs/buildAPKs/copy.apk.bash
67 | # if working directory is $HOME or buildAPKs, exit
68 | printf "\\e[0m\\n\\e[1;38;5;116mBeginning build in ~/%s/:\\n\\e[0m" "$(cut -d"/" -f7-99 <<< "$PWD")"
69 | # if variables are undefined, define variables
70 | find . -maxdepth 1 -type f -name "*.apk" -delete
71 | tree 2>/dev/null || find . -type f -print | sed 's@.*/@@' | sort
72 | [ -z "${DAY:-}" ] && DAY="$(date +%Y%m%d)"
73 | [ -z "${2:-}" ] && JDR="$PWD"
74 | [ -z "${JID:-}" ] && JID="${PWD##*/}" # https://www.tldp.org/LDP/abs/html/parameter-substitution.html
75 | [ -z "${NUM:-}" ] && NUM=""
76 | # if it does not exist, create it
77 | [ -e ./assets ] || mkdir -p ./assets
78 | [ -e ./output/lib ] || mkdir -p ./output/lib
79 | [ -e ./gen ] || mkdir -p ./gen
80 | [ -e ./obj ] || mkdir -p ./obj
81 | [ -e ./res ] || mkdir -p ./res
82 | LIBAU="$(awk 'NR==1' "$RDR/.conf/LIBAUTH")" # load true/false from .conf/LIBAUTH file. File LIBAUTH has information about loading artifacts and libraries into the build process.
83 | if [[ "$LIBAU" == true ]]
84 | then # load artifacts and libraries into the build process
85 | printf "\\e[1;34m%s" "Loading artifacts and libraries into the compilation: "
86 | BOOTCLASSPATH=""
87 | SYSJCLASSPATH=""
88 | JSJCLASSPATH=""
89 | DIRLIST=""
90 | LIBDIRPATH=("$JDR/lib" "$JDR/libraries" "$JDR/library" "$JDR/libs" "$RDR/var/cache/lib") # modify array LIBDIRPATH to suit the projects artifact needs.
91 | for LIBDIR in ${LIBDIRPATH[@]} # every element in array LIBDIRPATH
92 | do # directory path check
93 | if [[ -d "$LIBDIR" ]] # library directory exists
94 | then # search directory for artifacts and libraries
95 | DIRLIS="$(find -L "$LIBDIR" -type f -name "*.jar" 2>/dev/null)" || _PRINTSGE_ DIRLIS
96 | DIRLIST="$DIRLIST $DIRLIS"
97 | NUMIA=$(wc -l <<< "$DIRLIST")
98 | if [[ $DIRLIS == "" ]] # nothing was found
99 | then # adjust ` wc -l ` count to zero
100 | NUMIA=0
101 | fi
102 | printf "\\e[1;34m%s" "Adding $NUMIA artifacts and libraries from directory $LIBDIR into build ${PWD##*/} : "
103 | fi
104 | done
105 | for LIB in $DIRLIST
106 | do
107 | BOOTCLASSPATH=${LIB}:${BOOTCLASSPATH};
108 | SYSJCLASSPATH="-I $LIB $SYSJCLASSPATH"
109 | JSJCLASSPATH="-j $LIB $SYSJCLASSPATH"
110 | done
111 | BOOTCLASSPATH=${BOOTCLASSPATH%%:}
112 | AAPTENT=" $SYSJCLASSPATH "
113 | [ -e "./libs/res-appcompat" ] && AAPTENT=" -S libs/res-appcompat $AAPTENT"
114 | [ -e "./libs/res-cardview" ] && AAPTENT=" -S libs/res-cardview $AAPTENT"
115 | [ -e "./libs/res-design" ] && AAPTENT=" -S libs/res-design $AAPTENT"
116 | [ -e "./libs/res-recyclerview" ] && AAPTENT=" -S libs/res-recyclerview $AAPTENT"
117 | AAPTENT=" --auto-add-overlay $SYSJCLASSPATH " # add 500K
118 | ECJENT=" -cp $BOOTCLASSPATH "
119 | printf "\\e[1;32m\\bDONE\\e[0m\\n"
120 | else # do not load artifacts and libraries into the build process.
121 | AAPTENT=""
122 | ECJENT=""
123 | JSJCLASSPATH=""
124 | fi
125 | NOW=$(date +%s)
126 | PKGNAM="$(grep -o "package=.*" AndroidManifest.xml | cut -d\" -f2)"
127 | [ -f ./output/"$PKGNAM.apk" ] && rm ./output/"$PKGNAM.apk"
128 | PKGNAME="$PKGNAM.$NOW"
129 | COMMANDIF="$(command -v getprop)" || _PRINTSGE_ COMMANDIF
130 | if [[ "$COMMANDIF" = "" ]]
131 | then
132 | MSDKVERSION="14"
133 | PRSYSLOCALE="en"
134 | TSDKVERSION="23"
135 | else
136 | MSDKVERSION="$(getprop ro.build.version.min_supported_target_sdk)" || printf "%s" "signal ro.build.version.min_supported_target_sdk ${0##*/} build.one.bash generated; Continuing... " && MSDKVERSION="14"
137 | PRSYSLOCALE="$(getprop persist.sys.locale|awk -F- '{print $1}')" || printf "%s" "Signal persist.sys.locale ${0##*/} build.one.bash generated; Continuing... " && PRSYSLOCALE="en"
138 | TSDKVERSION="$(getprop ro.build.version.sdk)" || printf "%s" "Signal ro.build.version.sdk ${0##*/} build.one.bash generated; Continuing... " && TSDKVERSION="23"
139 | fi
140 | sed -i "s/minSdkVersion\=\"[0-9]\"/minSdkVersion\=\"$MSDKVERSION\"/g" AndroidManifest.xml
141 | sed -i "s/minSdkVersion\=\"[0-9][0-9]\"/minSdkVersion\=\"$MSDKVERSION\"/g" AndroidManifest.xml
142 | sed -i "s/targetSdkVersion\=\"[0-9]\"/targetSdkVersion\=\"$TSDKVERSION\"/g" AndroidManifest.xml
143 | sed -i "s/targetSdkVersion\=\"[0-9][0-9]\"/targetSdkVersion\=\"$TSDKVERSION\"/g" AndroidManifest.xml
144 | printf "\\e[1;38;5;115m%s\\n\\e[0m" "aapt: started..."
145 | # build entry point
146 | aapt package $AAPTENT -c "$PRSYSLOCALE" -f --generate-dependencies -J gen --min-sdk-version "$MSDKVERSION" -M AndroidManifest.xml --target-sdk-version "$TSDKVERSION" --replace-version -S res --version-code "$NOW" --version-name "$PKGNAME" || _PRINTSGE_ aapt
147 | printf "\\e[1;38;5;148m%s; \\e[1;38;5;114m%s\\n\\e[0m" "aapt: done" "dalvikvm: begun..."
148 | unset JAVA_HOME
149 | dalvikvm -Xmx512m -Xcompiler-option --compiler-filter=speed -cp "$PREFIX"/share/dex/ecj.jar org.eclipse.jdt.internal.compiler.batch.Main -proc:none -source 1.8 -target 1.8 -cp "$PREFIX"/share/java/android.jar $ECJENT -d ./obj . || _PRINTSGE_ dalvikvm
150 | printf "\\e[1;38;5;149m%s; \\e[1;38;5;113m%s\\n\\e[0m" "dalvikvm: done" "dx: started..."
151 | dx --dex --output=output/classes.dex ./obj || _PRINTSGE_ dx
152 | printf "\\e[1;38;5;148m%s; \\e[1;38;5;112m%s\\n\\e[0m" "dx: done" "Making $PKGNAME.apk..."
153 | aapt package -f --min-sdk-version "$MSDKVERSION" --target-sdk-version "$TSDKVERSION" -M AndroidManifest.xml $JSJCLASSPATH -S ./res -A ./assets -F ./output/"$PKGNAME".apk || _PRINTSGE_ aapt
154 | cd output
155 | ISDOSO="$(head -n 1 "$RDR/.conf/DOSO")"
156 | if [[ $ISDOSO = 0 ]]
157 | then
158 | . "$RDR"/scripts/bash/shlibs/buildAPKs/doso.bash || printf "\\e[1;48;5;166m%s\\e[0m\\n" "Signal generated doso.bash ${0##*/} build.one.bash: Continuing..."
159 | cd "$JDR"
160 | . "$RDR"/scripts/bash/shlibs/buildAPKs/native.bash || printf "\\e[1;48;5;166m%s\\e[0m\\n" "Signal generated native.bash ${0##*/} build.one.bash: Continuing..."
161 | cd "$JDR"/output
162 | else
163 | printf "%s\\n" "To build and include \`*.so\` files in the APK build change the 1 in file ~/${RDR##*/}/.conf/DOSO to a 0. The command \`build.native.bash\` builds native APKs on device and will do this when run."
164 | fi
165 | SOFILES="$(find lib -type f -name "*.so")"
166 | printf "\\e[1;38;5;113m%s\\e[1;38;5;107m\\n" "Adding classes.dex $SOFILES to $PKGNAME.apk..."
167 | aapt add -v -f "$PKGNAME.apk" classes.dex $SOFILES
168 | printf "\\e[1;38;5;114m%s" "Signing $PKGNAME.apk: "
169 | mv "$PKGNAME.apk" "$PKGNAME.0.apk"
170 | "$RDR/scripts/sh/shlibs/signapk" sign --cert "$RDR/opt/key/cert.x509.pem" --key "$RDR/opt/key/key.pk8" --out "$PKGNAME.apk" "$PKGNAME.0.apk"
171 | # apksigner sign --cert "$RDR/opt/key/certificate.pem" --key "$RDR/opt/key/key.pk8" "$PKGNAME.apk"
172 | printf "%s\\e[1;38;5;108m\\n" "DONE"
173 | # printf "\\e[1;38;5;114m%s\\e[1;38;5;108m\\n" "Verifying $PKGNAME.apk..."
174 | # apksigner verify --verbose "$PKGNAME.apk"
175 | _COPYAPK_ || printf "%s\\n" "Unable to copy APK file ${0##*/} build.one.bash; Continuing..."
176 | mv "$PKGNAME.apk" ../"$PKGNAM.apk"
177 | cd ..
178 | printf "\\e[1;38;5;116mThe built APK can be installed with the command: termux-open ~/%s/%s \\n" "$(cut -d"/" -f7-99 <<< "$PWD")" "$PKGNAM.apk"
179 | printf "\\e[1;7;38;5;34mPlease share %s everwhere%s!\\e[0m\\n" "https://wiki.termux.com/wiki/Development" "🌎🌍🌏🌐"
180 | # build.one.bash EOF
181 |
--------------------------------------------------------------------------------
/scripts/bash/build/build.samples.bash:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Copyright 2019-2021 (c) all rights reserved by BuildAPKs; see LICENSE
3 | # https://buildapks.github.io published courtesy https://pages.github.com
4 | ################################################################################
5 | set -Eeuo pipefail
6 | shopt -s nullglob globstar
7 | export RDR="$HOME/buildAPKs"
8 | . "$RDR/scripts/bash/init/atrap.bash" 67 68 69 "${0##*/} build.samples.bash"
9 | export JAD="github.com/BuildAPKs/buildAPKs.samples"
10 | export JID="samps" # job id/name
11 | . "$HOME/buildAPKs/scripts/bash/init/init.bash" "$@"
12 | # build.samples.bash EOF
13 |
--------------------------------------------------------------------------------
/scripts/bash/build/build.top10.bash:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Copyright 2017-2021 (c) all rights reserved
3 | # by S D Rausty https://sdrausty.github.io
4 | #####################################################################
5 | set -Eeuo pipefail
6 | shopt -s nullglob globstar
7 | export RDR="$HOME/buildAPKs"
8 | . "$RDR/scripts/bash/init/atrap.bash" 67 68 69 "${0##*/} build.top10.bash"
9 | export JAD=github.com/sdrausty/buildAPKsTop10
10 | export JID=top10 # job id/name
11 | . "$HOME/buildAPKs/scripts/bash/init/init.bash" "$@"
12 | # build.top10.bash EOF
13 |
--------------------------------------------------------------------------------
/scripts/bash/build/build.tutorials.bash:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Copyright 2017-2021 (c) all rights reserved
3 | # by S D Rausty https://sdrausty.github.io
4 | #####################################################################
5 | set -Eeuo pipefail
6 | shopt -s nullglob globstar
7 | export RDR="$HOME/buildAPKs"
8 | . "$RDR/scripts/bash/init/atrap.bash" 67 68 69 "${0##*/} build.tutorials.bash"
9 | export JAD=github.com/sdrausty/buildAPKsTutorials
10 | export JID=tutorials # job id/name
11 | . "$HOME/buildAPKs/scripts/bash/init/init.bash" "$@"
12 | # build.tutorials.bash EOF
13 |
--------------------------------------------------------------------------------
/scripts/bash/build/build.widgets.bash:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Copyright 2017-2021 (c) all rights reserved
3 | # by S D Rausty https://sdrausty.github.io
4 | #####################################################################
5 | set -Eeuo pipefail
6 | shopt -s nullglob globstar
7 | export RDR="$HOME/buildAPKs"
8 | . "$RDR/scripts/bash/init/atrap.bash" 67 68 69 "${0##*/} buildWidgets.bash"
9 | export JAD=github.com/sdrausty/buildAPKsWidgets
10 | export JID=widgets # job id/name
11 | . "$HOME/buildAPKs/scripts/bash/init/init.bash" "$@"
12 | # buildWidgets.bash EOF
13 |
--------------------------------------------------------------------------------
/scripts/bash/build/buildAll.bash:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Copyright 2017-2021 (c) all rights reserved
3 | # by SDRausty https://sdrausty.github.io
4 | #####################################################################
5 | set -Eeuo pipefail
6 | shopt -s nullglob globstar
7 | export RDR="$HOME/buildAPKs"
8 | . "$RDR/scripts/bash/init/atrap.bash" 67 68 69 "${0##*/} buildAll.bash"
9 | export NUM="$(date +%s)"
10 | export RDR="$HOME/buildAPKs"
11 | . "$RDR"/scripts/bash/shlibs/lock.bash wake.start
12 | . "$RDR"/scripts/bash/init/ushlibs.bash
13 | . "$RDR"/scripts/bash/shlibs/buildAPKs/init/build.buildAPKs.modules.bash
14 | cd "$RDR"/sources/
15 | . "$RDR"/scripts/bash/build/build.in.dir.bash
16 | . "$RDR"/scripts/bash/shlibs/lock.bash wake.stop
17 | # buildAll.bash EOF
18 |
--------------------------------------------------------------------------------
/scripts/bash/build/buildApplications.bash:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Copyright 2017-2021 (c) all rights reserved
3 | # by S D Rausty https://sdrausty.github.io
4 | #####################################################################
5 | set -Eeuo pipefail
6 | shopt -s nullglob globstar
7 | export RDR="$HOME/buildAPKs"
8 | . "$RDR/scripts/bash/init/atrap.bash" 67 68 69 "${0##*/} buildApplications.bash"
9 | export JAD=github.com/SDRausty/buildAPKsApps
10 | export JID=applications # job id/name
11 | . "$HOME/buildAPKs/scripts/bash/init/init.bash" "$@"
12 | # buildApplications.bash EOF
13 |
--------------------------------------------------------------------------------
/scripts/bash/build/buildFlashlights.bash:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Copyright 2017-2021 (c) all rights reserved
3 | # by S D Rausty https://sdrausty.github.io
4 | #####################################################################
5 | set -Eeuo pipefail
6 | shopt -s nullglob globstar
7 | export RDR="$HOME/buildAPKs"
8 | . "$RDR/scripts/bash/init/atrap.bash" 67 68 69 "${0##*/} buildFlashlights.bash"
9 | export JAD=github.com/sdrausty/buildAPKsFlashlights
10 | export JID=flashlights4 # job id/name
11 | . "$HOME/buildAPKs/scripts/bash/init/init.bash" "$@"
12 | # buildFlashlights.bash EOF
13 |
--------------------------------------------------------------------------------
/scripts/bash/build/buildGames.bash:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Copyright 2019-2021 (c) all rights reserved
3 | # by BuildAPKs https://buildapks.github.io
4 | #####################################################################
5 | set -Eeuo pipefail
6 | shopt -s nullglob globstar
7 | export RDR="$HOME/buildAPKs"
8 | . "$RDR/scripts/bash/init/atrap.bash" 67 68 69 "${0##*/} buildGames.bash"
9 | export JAD=github.com/SDRausty/buildAPKsGames
10 | export JID="gamez" # job id/name
11 | . "$HOME/buildAPKs/scripts/bash/init/init.bash" "$@"
12 | # buildGames.bash EOF
13 |
--------------------------------------------------------------------------------
/scripts/bash/build/buildSamples.bash:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Copyright 2017-2021 (c) all rights reserved
3 | # by S D Rausty https://sdrausty.github.io
4 | #####################################################################
5 | set -Eeuo pipefail
6 | shopt -s nullglob globstar
7 | export RDR="$HOME/buildAPKs"
8 | . "$RDR/scripts/bash/init/atrap.bash" 67 68 69 "${0##*/} buildSamples.bash"
9 | export JAD=github.com/sdrausty/buildAPKsSamples
10 | export JID="samples4" # job id/name
11 | . "$HOME/buildAPKs/scripts/bash/init/init.bash" "$@"
12 | # buildSamples.bash EOF
13 |
--------------------------------------------------------------------------------
/scripts/bash/init/atrap.bash:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Copyright 2019-2021 (c) all rights reserved by S D Rausty; see LICENSE
3 | # https://sdrausty.github.io published courtesy https://pages.github.com
4 | ################################################################################
5 | set -Eeuo pipefail
6 | shopt -s nullglob globstar
7 | export RDR="$HOME/buildAPKs"
8 | _SBTRPERROR_() { # run on script error
9 | local RV="$?"
10 | if [[ "$RV" == 1 ]]
11 | then
12 | printf "\\n\\e[1;48;5;130mERROR return value %s received by %s %s: Exiting due to error signal %s near or at line number %s by \`%s\` with return value %s.,.\\e[0m\\n" "$RV" "$TPARENT" "${0##*/} trap.bash" "${3:-SIGNAL}" "${1:-LINENO}" "${2:-BASH_COMMAND}" "$RV"
13 | exit $TERROR
14 | else
15 | printf "\\n\\e[1;48;5;138mBuildAPKs %s %s ERROR: Generated script error signal %s near or at line number %s by \`%s\` with return value %s\\e.,.[0m\\n" "$TPARENT" "${0##*/} trap.bash" "${3:-SIGNAL}" "${1:-LINENO}" "${2:-BASH_COMMAND}" "$RV"
16 | exit $TERROR
17 | fi
18 | _WAKEUNLOCK_
19 | printf "\\e[?25h"
20 | set +Eeuo pipefail
21 | exit $TERROR
22 | }
23 |
24 | _SBTRPEXIT_() { # run on exit
25 | local RV="$?"
26 | if [[ "$RV" != 0 ]]
27 | then
28 | printf "%s\\n" "Signal $RV exit received by $TPARENT trap.bash: Exiting..."
29 | else
30 | _WAKEUNLOCK_
31 | fi
32 | printf "\\e[?25h\\e[0m"
33 | set +Eeuo pipefail
34 | exit 0
35 | }
36 |
37 | _SBTRPSIGNAL_() { # run on signal
38 | local RV="$?"
39 | printf "\\n\\e[1;48;5;138mBuildAPKs %s trap.bash WARNING: Signal signal %s received near or at line number %s by \`%s\` with return value %s: Exiting...\\e[0m\\n" "$TPARENT" "${0##*/} trap.bash" "${3:-SIGNAL}" "${1:-LINENO}" "${2:-BASH_COMMAND}" "$RV"
40 | _WAKEUNLOCK_
41 | printf "\\e[?25h"
42 | set +Eeuo pipefail
43 | exit $TSIGNAL
44 | }
45 |
46 | _SBTRPQUIT_() { # run on quit
47 | local RV="$?"
48 | printf "\\n\\e[1;48;5;138mBuildAPKs %s %s WARNING: Quit signal %s received near or at line number %s by \`%s\` with return value %s: Exiting...\\e[0m\\n" "$TPARENT" "${0##*/} trap.bash" "${3:-SIGNAL}" "${1:-LINENO}" "${2:-BASH_COMMAND}" "$RV"
49 | _WAKEUNLOCK_
50 | printf "\\e[?25h\\e[0m"
51 | set +Eeuo pipefail
52 | exit $TQUIT
53 | }
54 |
55 | trap '_SBTRPERROR_ $LINENO $BASH_COMMAND $?' ERR
56 | trap _SBTRPEXIT_ EXIT
57 | trap '_SBTRPSIGNAL_ $LINENO $BASH_COMMAND $?' HUP INT TERM
58 | trap '_SBTRPQUIT_ $LINENO $BASH_COMMAND $?' QUIT
59 |
60 | _MAINLOCK_ () {
61 | if [[ -z "${5:-}" ]]
62 | then
63 | _WAKELOCK_
64 | elif [[ "$5" = "wake.idle" ]]
65 | then
66 | export WAKEST="idle"
67 | elif [[ "$5" = "wake.start" ]]
68 | then
69 | _WAKELOCK_
70 | export WAKEST="block"
71 | elif [[ "$5" = "wake.stop" ]]
72 | then
73 | export WAKEST="unblock"
74 | fi
75 | }
76 |
77 |
78 | _WAKELOCK_() {
79 | if [[ -z "${WAKEST:-}" ]]
80 | then
81 | _PRINTWLA_
82 | am startservice --user 0 -a com.termux.service_wake_lock com.termux/com.termux.app.TermuxService 1>/dev/null || printf "%s\\n" "Unable to process am startservice: Continuing..."
83 | [ ! -e "$RDR/var/lock" ] && mkdir -p "$RDR/var/lock"
84 | touch "$RDR/var/lock/wake.$PPID.lock"
85 | _PRINTDONE_
86 | fi
87 | }
88 |
89 | _WAKEUNLOCK_() { # check for state, locks and unlock if lock files are not found
90 | if [[ -z "${WAKEST:-}" ]] || [[ "$WAKEST" == "unblock" ]] # check for state
91 | then # https://unix.stackexchange.com/questions/46541/how-can-i-use-bashs-if-test-and-find-commands-together
92 | _PRINTWLD_
93 | rm -f "$RDR/var/lock/wake.$PPID.lock"
94 | if [[ -n $(find "$RDR/var/lock" -name "*.lock") ]] # lock files are found
95 | then # do not release wake lock
96 | printf '\033]2;Releasing wake lock: Pending...\007'
97 | if [[ $(find "$RDR/var/lock" -type f | wc -l) -gt 1 ]]
98 | then
99 | printf "\\e[1;33mNOT RELEASED. \\e[1;32mOther lock files are present in ~/%s/var/lock:\\e[0m" "${RDR##*/}"
100 | else
101 | if [[ -f "$RDR/var/lock/set.lock" ]]
102 | then
103 | printf "\\e[1;33mNOT RELEASED. \\e[1;32m%s\\e[0m" "Found set.lock file!"
104 | else
105 | printf "\\e[1;33mNOT RELEASED. \\e[1;32mAnother lock file is present in ~/%s/var/lock:\\e[0m" "${RDR##*/}"
106 | fi
107 | fi
108 | printf "\\n\\n\\e[1;33m"
109 | ls "$RDR/var/lock"
110 | printf "\\n\\e[1;38;5;187mYou can safely delete ~/%s/var/lock if no other jobs are running.\\e[0m\\n\\n" "${RDR##*/}"
111 | _PRINTHELP_
112 | else # release wake lock when there are no lock files found
113 | cd "$RDR"
114 | am startservice --user 0 -a com.termux.service_wake_unlock com.termux/com.termux.app.TermuxService > /dev/null || printf "%s\\n" "Unable to process am startservice: Continuing..."
115 | _PRINTDONE_
116 | _PRINTHELP_
117 | fi
118 | fi
119 | }
120 |
121 | _PRINTHELP_() {
122 | if [[ ! -f "$RDR/var/lock/set.lock" ]]
123 | then
124 | printf "\\e[1;38;5;107m%s\\e[1;38;5;109m%s\\e[0m\\n" "To always have wake lock set to on: " "touch ~/${RDR##*/}/var/lock/set.lock"
125 | fi
126 | }
127 |
128 | _PRINTDONE_() {
129 | printf "\\e[1;32mDONE\\e[0m\\n"
130 | }
131 |
132 | _PRINTWLA_() {
133 | printf "\\e[1;34mActivating wake lock: "'\033]2;Activating wake lock: OK\007'
134 | }
135 |
136 | _PRINTWLD_() {
137 | printf "\\e[1;34mReleasing wake lock: "'\033]2;Releasing wake lock: OK\007'
138 | }
139 |
140 | _INITLOCK_ () {
141 | COMMANDIF="$(command -v am)" || printf "%s\\n" "Unable to process am startservice: Continuing..."
142 | if [[ "$COMMANDIF" = "" ]]
143 | then
144 | printf "\\n\\e[1;48;5;138m %s\\e[0m\\n\\n" "BuildAPKs WARNING: File ${0##*/} trap.bash cannot use wake lock!"
145 | else
146 | _MAINLOCK_ "$@"
147 | fi
148 | }
149 |
150 | NARGS="${#@}"
151 | TQUIT="$1"
152 | TSIGNAL="$2"
153 | TERROR="$3"
154 | TPARENT="${4:-UNDEFINED}"
155 | if [[ ! -z "${5:-}" ]]
156 | then
157 | _INITLOCK_ "$5"
158 | fi
159 | # trap.bash EOF
160 |
--------------------------------------------------------------------------------
/scripts/bash/init/init.bash:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Copyright 2017-2021 (c) all rights reserved
3 | # by S D Rausty https://sdrausty.github.io
4 | #####################################################################
5 | set -Eeuo pipefail
6 | shopt -s nullglob globstar
7 | . "$RDR"/scripts/bash/init/atrap.bash 147 148 149 "${0##*/} init.bash"
8 | export RDR="$HOME/buildAPKs"
9 | cd "$RDR"
10 | [ -z "${JID:-}" ] && "$RDR"/scripts/bash/build/build.entertainment.bash && exit 0
11 | [ ! -f "$RDR"/.gitmodules ] && touch "$RDR"/.gitmodules
12 | . "$RDR"/scripts/bash/init/ushlibs.bash
13 | [ ! -f "$RDR"/var/db/ONAMES ] && cp -r "$RDR"/opt/db "$RDR"/var/db
14 | . "$RDR"/scripts/bash/shlibs/buildAPKs/prep.bash
15 | . "$RDR"/scripts/bash/shlibs/buildAPKs/init/mod.bash "$@"
16 | # init.bash EOF
17 |
--------------------------------------------------------------------------------
/scripts/bash/init/ushlibs.bash:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Copyright 2017-2021 (c) all rights reserved
3 | # by S D Rausty https://sdrausty.github.io
4 | # installs and updates submodules from https://github.com/shlibs
5 | #####################################################################
6 | set -Eeuo pipefail
7 | shopt -s nullglob globstar
8 | . "$RDR"/scripts/bash/init/atrap.bash 137 138 139 "${0##*/} ushlibs.bash"
9 | _IRGR_() { # initialize a remote git repository
10 | local USER="BuildAPKs"
11 | local HOSTIP="github.com"
12 | local PROJECT="buildAPKs"
13 | git init
14 | git remote add origin ssh://${USER}@${HOSTIP}${PROJECT}.git
15 | }
16 |
17 | _UFSHLIBS_() { # add and update submodules
18 | declare -A ARSHLIBS # declare associative array for available submodules
19 | ARSHLIBS=([scripts/bash/shlibs]="shlibs/shlibs.bash" [scripts/sh/shlibs]="shlibs/shlibs.sh" [opt/api/github]="BuildAPKs/buildAPKs.github" [opt/db]="BuildAPKs/db.BuildAPKs")
20 | _ADDMODULE_() {
21 | printf "\\e[1;7;38;5;96mAdding submodule ~/%s from Internet site %s address:\\e[0m\\n" "${RDR##*/}/$MLOC" "$SIAD/${ARSHLIBS[$MLOC]}" ; git submodule add "$SIAD/${ARSHLIBS[$MLOC]}" "$MLOC" || printf "Cannot add module ~/%s/scripts/%s: Continuing...\\n" "${RDR##*/}" "$MLOC"
22 | _SLEEPSHUF_
23 | }
24 | _UPDATEMODULE_() {
25 | printf "\\e[1;7;38;5;96mUpdating submodule ~/%s from Internet site %s address:\\e[0m\\n" "${RDR##*/}/$MLOC" "$SIAD/${ARSHLIBS[$MLOC]}" ; git submodule update --init --depth 1 --recursive --remote "$MLOC" || printf "Cannot update module ~/%s/scripts/%s: Continuing...\\n" "${RDR##*/}" "$MLOC"
26 | _SLEEPSHUF_
27 | }
28 | _SLEEPSHUF_() {
29 | sleep 0.$(shuf -i 24-72 -n 1) # add network latency support on fast networks
30 | }
31 | printf "\\e[1;7;38;5;98mInstalling %s prerequisite components of ~/%s/:\\e[0m\\n" "${#ARSHLIBS[@]}" "${RDR##*/}"
32 | for MLOC in "${!ARSHLIBS[@]}"
33 | do
34 | rm -f scripts/$MLOC/.git
35 | if [ -f "$RDR"/.gitmodules ]
36 | then
37 | { grep "$MLOC" "$RDR"/.gitmodules && _UPDATEMODULE_ ; } || _ADDMODULE_
38 | else
39 | _ADDMODULE_
40 | fi
41 | done
42 | }
43 |
44 | SIAD="https://github.com" # define site address
45 | [ ! -d "$RDR"/.git ] && _IRGR_ && sleep 0.$(shuf -i 24-72 -n 1)
46 | if [[ ! -f "$RDR"/scripts/bash/shlibs/.git ]] || [[ ! -f "$RDR"/scripts/sh/shlibs/.git ]]
47 | then
48 | cd "$RDR"
49 | git pull --ff-only || printf "\\nCannot update ~/%s: Continuing...\\n\\n" "${RDR##*/}"
50 | sleep 0.$(shuf -i 24-72 -n 1) # add network latency support on fast networks
51 | _UFSHLIBS_
52 | fi
53 | # ushlibs.bash EOF
54 |
--------------------------------------------------------------------------------
/scripts/ksh/build/build.dir.ksh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ksh
2 | # Copyright 2021 (c) all rights reserved
3 | # by BuildAPKs https://buildapks.github.io/buildAPKs/
4 | # See LICENSE for details https://buildapks.github.io/docsBuildAPKs/
5 | #####################################################################
6 | set -e
7 | for APP in $(find $1 -name "AndroidManifest.xml")
8 | do
9 | $HOME/buildAPKs/scripts/ksh/build/build.ksh ${APP%/*}
10 | done
11 | # build.dir.ksh EOF
12 |
--------------------------------------------------------------------------------
/scripts/ksh/build/build.ksh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ksh
2 | # Copyright 2020-2021 (c) all rights reserved
3 | # by BuildAPKs https://buildapks.github.io/buildAPKs/
4 | # See LICENSE for details https://buildapks.github.io/docsBuildAPKs/
5 | #####################################################################
6 | set -e
7 | [ -z "${RDR:-}" ] && RDR="$HOME/buildAPKs"
8 | [ "$PWD" = "${PREFIX%/*}" ] || [ "$PWD" = "$PREFIX" ] || [ "$PWD" = "$HOME" ] || [ "$PWD" = "$RDR" ] && { printf "Signal 224 generated in %s; Command '${0##*/}' cannot be run in directory %s; %s exiting...\\n" "$PWD" "$PWD" "${0##*/} build.one.bash" ; exit 224 ; }
9 | for CMD in aapt apksigner dx ecj
10 | do
11 | [ -z "$(command -v "$CMD")" ] && printf "%s\\n" " \"$CMD\" not found" && NOTFOUND=1
12 | done
13 | [ "$NOTFOUND" = "1" ] && exit
14 | [ "$1" ] && [ -f "$1/AndroidManifest.xml" ] && cd "$1"
15 | [ -f AndroidManifest.xml ] || exit
16 |
17 | _CLEANUP_() {
18 | printf "\\n\\n%s\\n" "Completing tasks..."
19 | [ "$CLEAN" = "1" ] && mv "output/$PKGNAME.apk" .
20 | rmdir --ignore-fail-on-non-empty assets
21 | rmdir --ignore-fail-on-non-empty res
22 | rm -rf output
23 | rm -rf gen
24 | rm -rf obj
25 | printf "\\n\\n%s\\n\\n" "Share https://wiki.termux.com/wiki/Development everwhere🌎🌍🌏🌐!"
26 | }
27 |
28 | _UNTP_() {
29 | printf "\\n\\n%s\\n\\n\\n""Unable to process"
30 | _CLEANUP_
31 | exit
32 | }
33 |
34 | PKGNAME="$(grep -o "package=.*" AndroidManifest.xml | cut -d\" -f2)"
35 |
36 |
37 | printf "%s\\n" "Beginning build"
38 | [ -d assets ] || mkdir assets
39 | [ -d res ] || mkdir res
40 | mkdir -p output
41 | mkdir -p gen
42 | mkdir -p obj
43 |
44 |
45 | printf "%s\\n" "aapt: started..."
46 | aapt package -f -m \
47 | -M "AndroidManifest.xml" \
48 | -J "gen" \
49 | -S "res" || _UNTP_
50 | printf "%s\\n\\n" "aapt: done"
51 |
52 |
53 | printf "%s\\n" "ecj: begun..."
54 | for JAVAFILE in $(find . -type f -name "*.java")
55 | do
56 | JAVAFILES="$JAVAFILES $JAVAFILE"
57 | done
58 | ecj -d obj -sourcepath . $JAVAFILES || _UNTP_
59 | printf "%s\\n\\n" "ecj: done"
60 |
61 |
62 | printf "%s\\n" "dx: started..."
63 | dx --dex --output=output/classes.dex obj || _UNTP_
64 | printf "%s\\n\\n" "dx: done"
65 |
66 |
67 | printf "%s\\n" "Making $PKGNAME.apk..."
68 | aapt package -f \
69 | --min-sdk-version 1 \
70 | --target-sdk-version 23 \
71 | -M AndroidManifest.xml \
72 | -S res \
73 | -A assets \
74 | -F output/"$PKGNAME.apk" || _UNTP_
75 |
76 |
77 | printf "\n%s\\n" "Adding classes.dex to $PKGNAME.apk..."
78 | cd output || _UNTP_
79 | aapt add -f "$PKGNAME.apk" classes.dex || { cd ..; _UNTP_; }
80 |
81 | printf "\n%s" "Signing $PKGNAME.apk: "
82 | apksigner sign --cert "$RDR/opt/key/certificate.pem" --key "$RDR/opt/key/key.pk8" "$PKGNAME.apk" || { cd ..; _UNTP_; }
83 | printf "%s\\n" "DONE"
84 | printf "%s" "Verifying $PKGNAME.apk: "
85 | apksigner verify --verbose "$PKGNAME.apk" || { cd ..; _UNTP_; }
86 | printf "%s\\n" "DONE"
87 |
88 | cd ..
89 |
90 | CLEAN=1
91 | _CLEANUP_
92 | # build.ksh EOF
93 |
--------------------------------------------------------------------------------
/scripts/ksh/init/setup.buildAPKs.ksh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ksh
2 | # Copyright 2021 (c) all rights reserved
3 | # by BuildAPKs https://buildapks.github.io/buildAPKs/
4 | #####################################################################
5 | set -e
6 | STRING1="Command \`au\` enables rollback; Available at https://wae.github.io/au/: Continuing..."
7 | STRING2="Cannot update ~/buildAPKs prerequisites: Continuing..."
8 | STRING3="Cannot clone ~/buildAPKs: Continuing..."
9 | printf "%s\\n" "Beginning buildAPKs setup:"
10 | ( ( [ -n "$(command -v "au")" ] && (au aapt apksigner curl dx ecj git) ) || (printf "%s\\n" "$STRING1") ) || ( ( [ -n "$(command -v apt)" ] && (apt install aapt apksigner curl dx ecj git) ) || (printf "%s\\n" "$STRING2") )
11 | cd "$HOME"
12 | git clone https://github.com/BuildAPKs/buildAPKs || printf "%s\\n\\n" "$STRING3"
13 | bash "$HOME"/buildAPKs/scripts/bash/build/build.entertainment.bash "$@"
14 | # setup.BuildAPKs.ksh EOF
15 |
--------------------------------------------------------------------------------
/scripts/maintenance/.nomedia:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BuildAPKs/buildAPKs/12f724f2d4a14c5e43a26f5951e270afa28678e5/scripts/maintenance/.nomedia
--------------------------------------------------------------------------------
/scripts/sh/build/build.dir.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 | # Copyright 2019 (c) all rights reserved
3 | # by BuildAPKs https://buildapks.github.io/buildAPKs/
4 | # Contributeur : https://github.com/HemanthJabalpuri
5 | # Invocation : $HOME/buildAPKs/scripts/sh/build/build.dir.sh sources/
6 | #####################################################################
7 | set -e
8 | for APP in $(find $1 -name "AndroidManifest.xml")
9 | do
10 | $HOME/buildAPKs/scripts/sh/build/build.sh ${APP%/*}
11 | done
12 | # build.dir.sh EOF
13 |
--------------------------------------------------------------------------------
/scripts/sh/build/build.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 | # Copyright 2019-2021 (c) all rights reserved
3 | # by BuildAPKs https://buildapks.github.io/buildAPKs/
4 | # Contributeur : https://github.com/HemanthJabalpuri
5 | # See LICENSE for details https://buildapks.github.io/docsBuildAPKs/
6 | #####################################################################
7 | set -e
8 | [ -z "${RDR:-}" ] && RDR="$HOME/buildAPKs"
9 | [ "$PWD" = "${PREFIX%/*}" ] || [ "$PWD" = "$PREFIX" ] || [ "$PWD" = "$HOME" ] || [ "$PWD" = "$RDR" ] && { printf "Signal 224 generated in %s; Command '${0##*/}' cannot be run in directory %s; %s exiting...\\n" "$PWD" "$PWD" "${0##*/} build.one.bash" ; exit 224 ; }
10 | for CMD in aapt apksigner dx ecj
11 | do
12 | [ -z "$(command -v "$CMD")" ] && printf "%s\\n" " \"$CMD\" not found" && NOTFOUND=1
13 | done
14 | [ "$NOTFOUND" = "1" ] && exit
15 | [ "$1" ] && [ -f "$1/AndroidManifest.xml" ] && cd "$1"
16 | [ -f AndroidManifest.xml ] || exit
17 |
18 | _CLEANUP_() {
19 | printf "\\n\\n%s\\n" "Completing tasks..."
20 | [ "$CLEAN" = "1" ] && mv "output/$PKGNAME.apk" .
21 | rmdir --ignore-fail-on-non-empty assets
22 | rmdir --ignore-fail-on-non-empty res
23 | rm -rf output
24 | rm -rf gen
25 | rm -rf obj
26 | printf "\\n\\n%s\\n\\n" "Share https://wiki.termux.com/wiki/Development everwhere🌎🌍🌏🌐!"
27 | }
28 |
29 | _UNTP_() {
30 | printf "\\n\\n%s\\n\\n\\n""Unable to process"
31 | _CLEANUP_
32 | exit
33 | }
34 |
35 | PKGNAME="$(grep -o "package=.*" AndroidManifest.xml | cut -d\" -f2)"
36 |
37 |
38 | printf "%s\\n" "Beginning build"
39 | [ -d assets ] || mkdir assets
40 | [ -d res ] || mkdir res
41 | mkdir -p output
42 | mkdir -p gen
43 | mkdir -p obj
44 |
45 |
46 | printf "%s\\n" "aapt: started..."
47 | aapt package -f -m \
48 | -M "AndroidManifest.xml" \
49 | -J "gen" \
50 | -S "res" || _UNTP_
51 | printf "%s\\n\\n" "aapt: done"
52 |
53 |
54 | printf "%s\\n" "ecj: begun..."
55 | for JAVAFILE in $(find . -type f -name "*.java")
56 | do
57 | JAVAFILES="$JAVAFILES $JAVAFILE"
58 | done
59 | ecj -d obj -sourcepath . $JAVAFILES || _UNTP_
60 | printf "%s\\n\\n" "ecj: done"
61 |
62 |
63 | printf "%s\\n" "dx: started..."
64 | dx --dex --output=output/classes.dex obj || _UNTP_
65 | printf "%s\\n\\n" "dx: done"
66 |
67 |
68 | printf "%s\\n" "Making $PKGNAME.apk..."
69 | aapt package -f \
70 | --min-sdk-version 1 \
71 | --target-sdk-version 23 \
72 | -M AndroidManifest.xml \
73 | -S res \
74 | -A assets \
75 | -F output/"$PKGNAME.apk" || _UNTP_
76 |
77 |
78 | printf "\n%s\\n" "Adding classes.dex to $PKGNAME.apk..."
79 | cd output || _UNTP_
80 | aapt add -f "$PKGNAME.apk" classes.dex || { cd ..; _UNTP_; }
81 |
82 | printf "\n%s" "Signing $PKGNAME.apk: "
83 | apksigner sign --cert "$RDR/opt/key/certificate.pem" --key "$RDR/opt/key/key.pk8" "$PKGNAME.apk" || { cd ..; _UNTP_; }
84 | printf "%s\\n" "DONE"
85 | printf "%s" "Verifying $PKGNAME.apk: "
86 | apksigner verify --verbose "$PKGNAME.apk" || { cd ..; _UNTP_; }
87 | printf "%s\\n" "DONE"
88 |
89 | cd ..
90 |
91 | CLEAN=1
92 | _CLEANUP_
93 | # build.sh EOF
94 |
--------------------------------------------------------------------------------
/scripts/sh/init/setup.buildAPKs.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 | # Copyright 2019-2021 (c) all rights reserved
3 | # by BuildAPKs https://buildapks.github.io/buildAPKs/
4 | # Invocation: ~/buildAPKs/scripts/sh/init/setup.BuildAPKs.sh
5 | #####################################################################
6 | set -eu
7 | STRING1="Command \`au\` enables rollback; Available at https://wae.github.io/au/: Continuing..."
8 | STRING2="Cannot update ~/buildAPKs prerequisites: Continuing..."
9 | STRING3="Cannot clone ~/buildAPKs: Continuing..."
10 | printf "%s\\n" "Beginning buildAPKs setup:"
11 | ( ( [ -n "$(command -v "au")" ] && (au aapt apksigner curl dx ecj git) ) || (printf "%s\\n" "$STRING1") ) || ( ( [ -n "$(command -v apt)" ] && (apt install aapt apksigner curl dx ecj git) ) || (printf "%s\\n" "$STRING2") )
12 | cd "$HOME"
13 | git clone https://github.com/BuildAPKs/buildAPKs || printf "%s\\n\\n" "$STRING3"
14 | bash "$HOME"/buildAPKs/scripts/bash/build/build.entertainment.bash "$@"
15 | # setup.BuildAPKs.sh EOF
16 |
--------------------------------------------------------------------------------
/scripts/zsh/build/build.dir.zsh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env zsh
2 | # Copyright 2019 (c) all rights reserved
3 | # by BuildAPKs https://buildapks.github.io/buildAPKs/
4 | # Contributeur : https://github.com/HemanthJabalpuri
5 | # Invocation : $HOME/buildAPKs/scripts/zsh/build/build.dir.zsh dir
6 | #####################################################################
7 | set -e
8 | for APP in $(find $1 -name "AndroidManifest.xml")
9 | do
10 | $HOME/buildAPKs/scripts/zsh/build/build.zsh ${APP%/*}
11 | done
12 | # build.dir.zsh EOF
13 |
--------------------------------------------------------------------------------
/scripts/zsh/build/build.zsh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env zsh
2 | # Copyright 2019-2021 (c) all rights reserved
3 | # by BuildAPKs https://buildapks.github.io/buildAPKs/
4 | # See LICENSE for details https://buildapks.github.io/docsBuildAPKs/
5 | #####################################################################
6 | set -e
7 | [ "$PWD" = "${PREFIX%/*}" ] || [ "$PWD" = "$PREFIX" ] || [ "$PWD" = "$HOME" ] || [ "$PWD" = "$RDR" ] && { printf "Signal 224 generated in %s; Command '${0##*/}' cannot be run in directory %s; %s exiting...\\n" "$PWD" "$PWD" "${0##*/} build.one.bash" ; exit 224 ; }
8 | for CMD in aapt apksigner dx ecj
9 | do
10 | [ -z "$(command -v "$CMD")" ] && printf "%s\\n" " \"$CMD\" not found" && NOTFOUND=1
11 | done
12 | [ "$NOTFOUND" = "1" ] && exit
13 | [ "$1" ] && [ -f "$1/AndroidManifest.xml" ] && cd "$1"
14 | [ -f AndroidManifest.xml ] || exit
15 |
16 | _CLEANUP_() {
17 | printf "\\n\\n%s\\n" "Completing tasks..."
18 | [ "$CLEAN" = "1" ] && mv "output/$PKGNAME-signed.apk" .
19 | rmdir --ignore-fail-on-non-empty assets
20 | rmdir --ignore-fail-on-non-empty res
21 | rm -rf output
22 | rm -rf gen
23 | rm -rf obj
24 | printf "\\n\\n%s\\n\\n" "Share https://wiki.termux.com/wiki/Development everwhere🌎🌍🌏🌐!"
25 | }
26 |
27 | _UNTP_() {
28 | printf "\\n\\n%s\\n\\n\\n""Unable to parse..."
29 | _CLEANUP_
30 | exit
31 | }
32 |
33 | PKGNAME="$(grep -o "package=.*" AndroidManifest.xml | cut -d\" -f2)"
34 |
35 |
36 | printf "%s\\n" "Beginning build"
37 | [ -d assets ] || mkdir assets
38 | [ -d res ] || mkdir res
39 | mkdir -p output
40 | mkdir -p gen
41 | mkdir -p obj
42 |
43 |
44 | printf "%s\\n" "aapt: started..."
45 | aapt package -f -m \
46 | -M "AndroidManifest.xml" \
47 | -J "gen" \
48 | -S "res" || _UNTP_
49 | printf "%s\\n\\n" "aapt: done"
50 |
51 |
52 | printf "%s\\n" "ecj: begun..."
53 | for JAVAFILE in $(find . -type f -name "*.java")
54 | do
55 | JAVAFILES="$JAVAFILES $JAVAFILE"
56 | done
57 | ecj -d obj -sourcepath . $JAVAFILES || _UNTP_
58 | printf "%s\\n\\n" "ecj: done"
59 |
60 |
61 | printf "%s\\n" "dx: started..."
62 | dx --dex --output=output/classes.dex obj || _UNTP_
63 | printf "%s\\n\\n" "dx: done"
64 |
65 |
66 | printf "%s\\n" "Making $PKGNAME.apk..."
67 | aapt package -f \
68 | --min-sdk-version 1 \
69 | --target-sdk-version 23 \
70 | -M AndroidManifest.xml \
71 | -S res \
72 | -A assets \
73 | -F output/"$PKGNAME.apk" || _UNTP_
74 |
75 |
76 | printf "\\n%s\\n" "Adding classes.dex to $PKGNAME.apk..."
77 | cd output || _UNTP_
78 | aapt add -f "$PKGNAME.apk" classes.dex || { cd ..; _UNTP_; }
79 |
80 | printf "\\n%s\\n" "Signing $PKGNAME.apk..."
81 | apksigner "$PKGNAME-debug.key" "$PKGNAME.apk" "$PKGNAME-signed.apk" || { cd ..; _UNTP_; }
82 |
83 | cd ..
84 |
85 | CLEAN=1
86 | _CLEANUP_
87 | # build.zsh EOF
88 |
--------------------------------------------------------------------------------
/scripts/zsh/init/setup.buildAPKs.zsh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env zsh
2 | # Copyright 201-2021 (c) all rights reserved
3 | # by BuildAPKs https://buildapks.github.io/buildAPKs/
4 | # Invocation : ~/buildAPKs/scripts/zsh/init/setup.BuildAPKs.zsh
5 | #####################################################################
6 | set -e
7 | STRING1="Command \`au\` enables rollback; Available at https://wae.github.io/au/: Continuing..."
8 | STRING2="Cannot update ~/buildAPKs prerequisites: Continuing..."
9 | STRING3="Cannot clone ~/buildAPKs: Continuing..."
10 | printf "\\e[1;38;5;117m%s\\e[0m\\n" "Beginning buildAPKs setup:"
11 | ( ( [ -n "$(command -v "au")" ] && (au aapt apksigner curl dx ecj git) ) || (printf "%s\\n" "$STRING1") ) || ( ( [ -n "$(command -v apt)" ] && (apt install aapt apksigner curl dx ecj git) ) || (printf "%s\\n" "$STRING2") )
12 | cd "$HOME"
13 | git clone https://github.com/BuildAPKs/buildAPKs || printf "\\e[1;38;5;117m%s\\e[0m\\n" "$STRING3"
14 | bash "$HOME"/buildAPKs/scripts/bash/build/build.entertainment.bash "$@"
15 | # setup.BuildAPKs.zsh EOF
16 |
--------------------------------------------------------------------------------
/setup.buildAPKs.bash:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # See https://buildapks.github.io/ LICENSE for details.
3 | # Copyright 2017-2022 (c) all rights reserved by BuildAPKs
4 | #####################################################################
5 | set -Eeuo pipefail
6 | shopt -s nullglob globstar
7 | _SUPTRPERROR_() { # Run on script error.
8 | local RV="$?"
9 | printf "\\e[?25h\\e[1;7;38;5;0mbuildAPKs setupBuildAPKs.bash ERROR: Signal %s received!\\e[0m\\n" "$RV"
10 | printf "\\e[?25h\\e[0m\\n"
11 | exit 201
12 | }
13 |
14 | _SUPTRPEXIT_() { # Run on exit.
15 | local RV="$?"
16 | sleep 0.0$(shuf -i 24-72 -n 1) # add device latency support
17 | if [[ "$RV" = 0 ]]
18 | then
19 | printf "\\e[1;7;38;5;155m%s %s \\e[0m\\e[1;34m: \\e[1;32m%s\\e[0m\\n\\n\\e[0m" "${0##*/}" "$ARGS" "DONE 🏁 "
20 | printf "\\e]2; %s: %s \\007" "${0##*/} $ARGS" "DONE 🏁 "
21 | else
22 | printf "\\a\\e[1;7;38;5;88m%s %s \\a\\e[0m\\e[1;34m: \\a\\e[1;32m%s %s\\e[0m\\n\\n\\a\\e[0m" "${0##*/}" "$ARGS" "[Exit Signal $RV]" "DONE 🏁 "
23 | printf "\\033]2; %s: %s %s \\007" "${0##*/} $ARGS" "[Exit Signal $RV]" "DONE 🏁 "
24 | fi
25 | printf "\\e[?25h\\e[0m"
26 | set +Eeuo pipefail
27 | exit
28 | }
29 |
30 | _SUPTRPSIGNAL_() { # Run on signal.
31 | local RV="$?"
32 | printf "\\e[?25h\\e[1;7;38;5;0mbuildAPKs setupBuildAPKs.bash WARNING: Signal %s received!\\e[0m\\n" "$RV"
33 | exit 211
34 | }
35 |
36 | _SUPTRPQUIT_() { # Run on quit.
37 | local RV="$?"
38 | printf "\\e[?25h\\e[1;7;38;5;0mbuildAPKs setupBuildAPKs.bash WARNING: Quit signal %s received!\\e[0m\\n" "$RV"
39 | exit 221
40 | }
41 |
42 | trap '_SUPTRPERROR_ $LINENO $BASH_COMMAND $?' ERR
43 | trap _SUPTRPEXIT_ EXIT
44 | trap _SUPTRPSIGNAL_ HUP INT TERM
45 | trap _SUPTRPQUIT_ QUIT
46 |
47 | _INPKGS_() {
48 | if [[ "$COMMANDIF" = au ]]
49 | then
50 | au "${PKGS[@]}" || printf "\\e[1;38;5;117m%s\\e[0m\\n" "$STRING2"
51 | else
52 | if [[ -z "${COMMANDAPTUP:-}" ]]
53 | then
54 | COMMANDAPTUP=0
55 | ( apt update && apt upgrade -y && apt install -y "${PKGS[@]}" ) || printf "\\e[1;37;5;116m%s\\e[0m\\n" "$STRING2"
56 | else
57 | apt install -y "${PKGS[@]}" || printf "\\e[1;37;5;116m%s\\e[0m\\n" "$STRING2"
58 | fi
59 | fi
60 | }
61 |
62 | declare -a ARGS="$@"
63 | declare COMMANDR
64 | declare COMMANDIF
65 | declare STRING1
66 | declare STRING2
67 | declare RDR
68 | export RDR="$HOME/buildAPKs"
69 | STRING1="COMMAND \`au\` enables rollback, available at https://wae.github.io/au/ IS NOT FOUND: Continuing... "
70 | STRING2="Cannot update ~/${RDR##*/} prerequisite: Continuing..."
71 | PKGS=(aapt openssl-tool curl dx ecj git)
72 | if [[ -z "${1:-}" ]]
73 | then
74 | ARGS=""
75 | fi
76 | printf "\\e[1;38;5;115m%s\\e[0m\\n" "Beginning buildAPKs setup:"
77 | COMMANDR="$(command -v au)" || (printf "%s\\n\\n" "$STRING1")
78 | COMMANDIF="${COMMANDR##*/}"
79 | for PKG in "${PKGS[@]}"
80 | do
81 | [ "$PKG" = "openssl-tool" ] && PKG=openssl
82 | COMMANDP="$(command -v "$PKG")" || printf "Command %s not found: Continuing...\\n" "$PKG" # test if command exists
83 | COMMANDPF="${COMMANDP##*/}"
84 | [ "$COMMANDPF" = openssl ] && PKG=openssl
85 | if [[ "$COMMANDPF" != "$PKG" ]]
86 | then
87 | _INPKGS_
88 | fi
89 | done
90 | if [[ ! -d "$RDR" ]]
91 | then
92 | cd && git clone --depth 1 https://github.com/BuildAPKs/buildAPKs --branch master --single-branch || printf "\\e[1;38;5;117m%s\\e[0m\\n" "$STRING2"
93 | fi
94 | if [[ -z "${PREFIX:-}" ]]
95 | then
96 | if [ ! -e "/etc/profile.d/buildAPKs.sh" ]
97 | then
98 | cat > "/etc/profile.d/buildAPKs.sh" <<- EOM
99 | if [ -d "$HOME/buildAPKs/bin/" ]
100 | then
101 | PATH="\$PATH:\$HOME/buildAPKs/bin/"
102 | fi
103 | EOM
104 | fi
105 | else
106 | if [ ! -e "$PREFIX/etc/profile.d/buildAPKs.sh" ]
107 | then
108 | cat > "$PREFIX/etc/profile.d/buildAPKs.sh" <<- EOM
109 | if [ -d "$HOME/buildAPKs/bin/" ]
110 | then
111 | PATH="\$PATH:\$HOME/buildAPKs/bin/"
112 | fi
113 | EOM
114 | fi
115 | fi
116 | export JAD=github.com/BuildAPKs/buildAPKs.entertainment # job address
117 | export JID=entertainment # job id/name
118 | bash "$RDR"/scripts/bash/init/init.bash "$@"
119 | ! grep "setup.buildAPKs.bash" "$RDR"/sha512.sum 1>/dev/null || sed -i "/setup.buildAPKs.bash/d" "$RDR"/sha512.sum
120 | # setup.buildAPKs.bash EOF
121 |
--------------------------------------------------------------------------------
/sha512.sum:
--------------------------------------------------------------------------------
1 | 060f9ed56e6c0beb0bcd8856b94924f22e007a44c0cb5acc3de23e9b82b419c8db98e1f173dd3bb8909cea45e1ae9697920c984bee68f19995990d732c8c679d ./.conf/DOSO
2 | 1eb48adc023b1078a2f59b1d3e15e6fea57b1d6428c357e6b6fcefb6aa7e4e6dedb50e648cae66cca4b50aa225b83cda5cdbc5171f3fbb6c912c9bbb452deb69 ./.conf/DOSON
3 | 44c9a051624b83dd296ab22c7a1c3c05dd715dfb51a3dc4eb8771d123ddea8d03673cad0447d10f1a088bf7a0dae1aedbdf8b4da3097974b044e5619fa83831a ./.conf/DRLIM
4 | 6e962b114f018e9577005e030a99dee5707b1f2acd3795e649f7fb2ede39deb2d118f4d61e116a0244ea485fa9aa2cb2eb63e9156bc75736d489b1554291405f ./.conf/EXTSTDO
5 | 2d4c760947ee729fbce28e6828aa88799c8821d01c53c043f38a2d48a351db0e2ae445855ac965dd4aa353f2637f3cd5bfb137e7783326a6eeddc5d260b89a40 ./.conf/GAUTH
6 | b72bc44aa7e18df3e2908efe7a1350e66fe914cbf195aa2870f9054ffb77bcebb4fa8ebf19d7bf8be0160b9d7f7a885386fc1f917951e6e0e3ec3f3b5c1d84df ./.conf/LIBAUTH
7 | 376beb9e8cced342f5eb8810d9980998a9e1188158e6c707695b546f3b7e639a414545051ad30490548a49abc9f924c55ede141f3a5aa942b43500abd167ac1d ./.conf/PRGNAMEID
8 | 2872ee052b434ec6f30bc21167143656598f7e3b3bb5e9947f78b92069dbdbc8956744159ec325c2964c4e856f770239cbd43424c0b18ec3e75eaf3831eec5dc ./.conf/QUIET
9 | c15c4b01d9105986d6951ee8e0368820288a3dac8f0339c31adf1c37eb4a08a893ffa6b8b327cdc1ea28463864e572ff00fdb5c2c4691c9482723cb772be721e ./.conf/RDR
10 | 7276087015142444b983e2bf70e71e5ad9fc8eee001253acfb5f6adefcca7ea44a6d1c04043b17f61d505ebe475f50cb7f500d94a5a372c0a4d3eed48943bf63 ./.conf/README.md
11 | 5ad9e0945ed93aca4e17cd24b65ab3f20a5cc1dd7e14b84ab5929577569800b4b5ef72879c965aeb38c8f4db95925abbb3453c4f4b3521bc53e6be1905cbef18 ./.conf/VERSIONID
12 | 05a502a845e35bc0495a3a3006ae914785c48679dddd362bd98bd33c306ed2aa8fac57344b1b65955d41755c3967f3e991770764f6c2f14c6a52f3e52e00ef1c ./.github/FUNDING.yml
13 | ec770c00aa2c6225a2e27e8f08bd3d1eb8882f2cde94c820ab48db0b0fb0175913cd43a851904ff015c95f1fa31bb787383608cf19eb9d34f572b5fa8f9250ab ./.github/workflows/greetings.yml
14 | 5e20f4451f28b2ad8cd03e174bafa7c5d2d08cb3d9c6364a1f36b47fa1a2ae7e222970337f1481f149b6f87894f59e113bc49924776d558f0eb0773f6eebcd56 ./.github/workflows/label.yml
15 | 1224649374820d37d4c05367fc2afacb93b6cc2752c826078bc9461cd33cea9cd27bc0b14e5da3d4a82416e7977dcdc5ba1b6e60443c0427f60acec5ec097c5d ./.github/workflows/stale.yml
16 | c10255375ea80690bb73b847a9d9cc0a25b1384aef94c6a90367b9400db3a7858920c0e502f5c63c11a41e88662b75ac2b2893c6d164836c17f747018ab02bda ./CHANGE.log
17 | 50f4af563d3f7c850c473e8c1b6c139647fda223655ec925c58cce700b475ee693e80776f40579fbd09999b99507a5df3dea90bcc1096d776f632817a15135b0 ./LICENSE
18 | 67bfafeda094adb04832de8d3be34f1007f861c8e2fb4e8a88515b9222d223520a0eb29bf8ad45f1dd68728f8d04e6747f58aab035f9bc7cafc2a3e1f6175a03 ./README.md
19 | 3d796315527fdf3f50c8183b8e2b8136c68c6d588e6219cd4b1b5315702692f972d1da9988883d22b3fb59238ade92f89c5319248922bd8ca176de551d33a375 ./opt/key/cert.x509.pem
20 | 75b9281f71b0ecf19c42beabe6faf3dc2c480dd07f3298412e5ae18ab4bcbd6a06d8b2cb66cd5bf459259aa54f6345a7fd3b164f2867dac6d71cb80394f59a8b ./opt/key/certificate.pem
21 | 41ef0a4ca930e2725b485226178d17843f6b35de169c60744e34c2d73688b8a4dfc76ea748bc19ab05d06e816a290c571acb964d78cf0dde520b911533e81455 ./opt/key/key.pem
22 | fcd1b1d5ff9ba195707eb192b6c0a134a887c17f851b295dcdea9c142eeebc8079cf912d2e8ec061a3831aa0dfaed031be0ac66f7862ec8385cbd42c3b2d2ad2 ./opt/key/key.pk8
23 | 9098c8c92213072bfe8c729ed5467b4d243e86d7a92fc6a9345727f5777254308d933f735d312acdad68e5eab9a2380936760c1b889e517d9c39160d8649850d ./opt/key/request.pem
24 | 06f408c9cb5646a3a1387278ff43771c45eca72626ada977f53038c16998fb3939ee39a1d437ec6bb58800498fe0ef1ba570470ffd7c0d2e7d5a351c45d359ef ./opt/lfhopt.txt
25 | b6d54849f95f168dad3b89093bfbe84c154ab3d8dc86b685571334e258bad4f9758cadf39c8ba64b0556bd226bec3e51fba7d943b076a09bf0af4a1304b02a35 ./opt/pic.png
26 | 3594e18f4c1b98753a8d740281ec4e7c56203734f99e3d0047936d80e6ccb6c1cd13b32f3977fbd667aa05d82350010eaf1dc9a556fab6a7ca44c401effe2eb4 ./scripts/bash/build/build.apps.bash
27 | 9e06bb1a7fb99ecd25b2e4c1670d4919b61ddc10a99a85a2ddb5204a95b985c07f64d3af0e057b4f0ad4bb47b218adf9ec300b4ea8cda8aa7ff376933f917f76 ./scripts/bash/build/build.bits.bash
28 | 8750f1bd683267a8e34572b5535048dba1a1e9ffce9ce3fd558cd427399ef3248345fbfd2d08f48bb65dd6bb87d11143f38c6236d7b5cafe7690dcdc275290a7 ./scripts/bash/build/build.browsers.bash
29 | 13b727a645ab77f6c3ef34f90bf8796425fc90df96758f927dbce40bb9f876370b6d3765c4bd6ca0e35c1ed6c963a9608219577db4b2b50a41f7234f3dcb3e90 ./scripts/bash/build/build.buildAPKs.bash
30 | 823b8a6f48b3d1fe04cdc60b61b1e03f98c01020e3f4f17b0e91a0285a1b46066449309f06a4b7cb8122e1e8d5cc4673da7994a14bb098f446a3461b920f72aa ./scripts/bash/build/build.clocks.bash
31 | e467ad50ff1949d11deae46172e0c025e5c3b0e4ae0d0862a42fc671d3669d25deb533f6f8417fa0fda0d36dc89dc6a48b793350e23e5a912e1646a6eb111016 ./scripts/bash/build/build.compasses.bash
32 | 41dd3ba9a5038baae793915e96bf03277c1e71fe24005de396de66e8bcd5b3f589b602801aeae290d046e1d1132cb90446dbfa4a319d729f971ed9a8ff09199f ./scripts/bash/build/build.demos.bash
33 | dcd03e8a75e31475a70daf4fa2fd96b61c6283a8ced57a95c9044cddf84fbe3b2f907bfce9f77af7a0f9c30110b077883b9640517bb981c39a40be192c30588d ./scripts/bash/build/build.developers.tools.bash
34 | d5ef7833bbbc65d6cbf68d8cb07818a79f4bd313b2fc720fd578e73cbc7a05fa4e276c95aa613fdbb60c22bc8f4edce7dacea6b01afffb7e3fd9850904cb3233 ./scripts/bash/build/build.entertainment.bash
35 | 8e6ca74e54979c84418a506d28de12529279a6afaeb2817debed03dc498b349bc94a735e94500c9a4327e3670779f93aabf1f664e9a346fa8622025ea5cb5a3b ./scripts/bash/build/build.flashlights.bash
36 | 45054cb56f5f37d767076ef1d65c859a99f6ec2f01f97543c487bc2caed6e8ee7737b1dae76811f78879d861b877da5562ed87e62bb9ccf34d1fe452375ad818 ./scripts/bash/build/build.games.bash
37 | d26d2bc7c20d5f208dfb615c2df7d062e75571d5fc5fe31173927cd42b6683fbe38a7009031284c7c1e57134c1fa2bb5e959c3e9eeb64a1993db0dfc72664afb ./scripts/bash/build/build.hellos.bash
38 | 113e236c13406edbf5fec264623d67258131404c8300037717a5cc0c2cec6a37f3da259aa07f172c45ef3bceccfb7786f0ea83b53e27b7afdd86b5e005240186 ./scripts/bash/build/build.in.dir.bash
39 | f4a931fe8ca1a2684ba4590be2d0c74b7566d851501b32e7c751c7b2f68eb405cc400c80aa22a09276e416e6f7da2f93b914a8e761f5b8629b8604a48dc2400c ./scripts/bash/build/build.keyboards.bash
40 | 9256c0e09b345a3ebfabc832676f277701fde8391ea5177598e472c3307d187eb7e135c7632b215749f6789c547331bcd596b8e89351ef2980662ac803441d20 ./scripts/bash/build/build.launchers.bash
41 | 6432b61ce6b26c23e6c0619efccf592e25503fb7f97c58a6cd49aeac38010b8886dce7821d80499b2aabfd6112b0d1cb1dec09c51f3883960f98b284efb904f1 ./scripts/bash/build/build.live.wallpapers.bash
42 | 3bf7a0f6c521b1d983dd9b892fa3c02d182614e5a053de520dd461fed5df548dfef5f2d2a1aa0561af985e2854b0e1f9701383db8ffbcc2ac5540ba3f6364b9e ./scripts/bash/build/build.native.bash
43 | 6cd6a0a605a915b87055a05ab08995d3325277c6fa85dcf491e14e9d56a127305257e1e6a1bbf78fdadd329ba8b0f7b34581026a0e54f9571031761093b47298 ./scripts/bash/build/build.one.bash
44 | 68976af0ad13dba5d19a1c08baa5a14d2b98876e0637eb782152720b6fc311aad35ada74b003b9485a53488ca21ff11098ce4c9ab1a81c3b7f0aed8bc3bce73b ./scripts/bash/build/build.one.bash0
45 | 898f2b1f48191c4107a683f9cbd78496aaef29ee35abdbfdfc52ed29c575e324ae6db1914941be923eadd2116c6b6d80c8407018b1e499c98cc7bc9df4f86d62 ./scripts/bash/build/build.samples.bash
46 | 55b90184ef42e2475a0fd469e42fbe0a4d730cbca11e3ec5d16d362a0ad6eb7726cd15fd9a5766c1afec6cba73a8c528db69d3ceb21ec71e5b02de9d1ac9d7cb ./scripts/bash/build/build.top10.bash
47 | 135355462dd9d66f74dc40e70eda5004a4f4885cc02f688574b5d4470fc644e482f4e993348c1b15ddf00674e5494a18dc6d90915c1bf527e8c7a6ab17618232 ./scripts/bash/build/build.tutorials.bash
48 | 49c3f3e6a4d17ac364b612f0d859a988956a4fc387b1655bd20e6aeb0c78153b60ffe10297198cdb60bae9a42135ce1c7d65972fb5c8650633fb3babb926b7bd ./scripts/bash/build/build.widgets.bash
49 | d12aa4eb2515b070b6d8926b6773380d6aba25ffe2e0abb2ff64581fa89f57e494dfd1f9e030ab431260013bcd183620abd56aea1bc0cc96f3924fe52c367129 ./scripts/bash/build/buildAll.bash
50 | 48f4ea2b12910a6cd7851831a2e351ee83deaf90933dab0c9a5a66733c3c151314ca3d1af20a6e3e8fa37fce1406a58473f2e4661ac298085ec629b58bfd0390 ./scripts/bash/build/buildApplications.bash
51 | 52848964902a54dbb073969d7bf19e2cfcd942d9e7d6792c34f67e4c5a38fca47d5d22ce3f693a0533ad22ec5636d7e1c4bbe7b106b9b7ce80d986e66c57cd84 ./scripts/bash/build/buildFlashlights.bash
52 | d89f5c74349158a280a721531232c32fc5325bd7ceff4b5878ce54620b76fe66e5cb4ee0748bfe18e13dacf79d7d96798ad38f3b5f9fafc69108883b08ccc5ac ./scripts/bash/build/buildGames.bash
53 | 92c3ea8859e6dbead818caff6855fe7f3af40e67ac2d93e8dbe712e22d0faf5d69d97ca566b4c90a82a1d5b21865bd078528bcd5863549ce54be810b20d941c5 ./scripts/bash/build/buildSamples.bash
54 | a11b7649a66b58818016585d93243f3d64a170c2c6b458329d8e41d9e290b05fe2a37abe78e59a42f7ece8edb6bc6fa2079c2864356975c571b5f0b8a3c35b07 ./scripts/bash/init/atrap.bash
55 | ce1e64234a1e7bcce6bb473343faa609f3edd62bd9a60e325971c7a76a5ce3f2adf9d4e657d7dad21c7e52af78b0ec9f3ead05521a81a634eb8fd177b7a6944a ./scripts/bash/init/init.bash
56 | 2e5a6143e3b788771c5482c770d3f33343ccccd630f55b0f82ef0277409b35f2dd9eaff00672843cce42fb74196417f6df230599bc3e673159aa284125608813 ./scripts/bash/init/ushlibs.bash
57 | 83ccb58e169f8c2a8a194382fce53f01398003d6a76b4d29937f74d3210abaf3a0c701aaa69589d13f056b874304fcf0e54da487da8ad891bf7d15b2de00929b ./scripts/ksh/build/build.dir.ksh
58 | 39b32178665d0ffbc7563a1149a85e27223583f1456548445893175d787420e6e2e550c2cf3060b9d9152b5cfa9dd0ddf667261acd94f924344b51995c3fbbd1 ./scripts/ksh/build/build.ksh
59 | b087e09cc5ac72fa00900bd3539bed6439afb152073d3aab64a014807c518a20800bf6b4e5194ff02478807885c8a7b25ec62fc7754f9835711658d96357acda ./scripts/ksh/init/setup.buildAPKs.ksh
60 | cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e ./scripts/maintenance/.nomedia
61 | f116851a18e91a3d3ba2db5ed9758e59e400a14df3d0eee1c6f66e9b5e2918575af05e42fafad5c42a534a7f1487412fd3fe61b1e2dcf2b9c759b23bace25679 ./scripts/sh/build/build.dir.sh
62 | 4f60b74a1f7ba9f5e8cf4e6f4fb14e11a005a93698af7477d4fd2a7a34a25ffbb09d6690b5adc0b86273b24c69bff8775320c5c605f7c6eee40767838cb39152 ./scripts/sh/build/build.sh
63 | 9bb02eaedfb2e3899b2a34c9b259b17c92547e8982094c2ed412d42440558c8ed4f12aceb1dcdc4db41c637e5637e0ef4c124c0eb829e5a99e50356411ae3647 ./scripts/sh/init/setup.buildAPKs.sh
64 | 718d0c3cabbd78abd068f8895b26b41df2f241a68b73c0b4252545490f14fa4c98b1611030c45075377f9deaf2688e6d17e5fa87bf1a7d1868a2dc9573cee12e ./scripts/zsh/build/build.dir.zsh
65 | 853e6c6050a6319d3651abd9db3e21e8e17dd20506a48a343f53cfb3a757b3845c34a350b485744d08330430e50327e28476c59b462d32cc6658de276e94ac65 ./scripts/zsh/build/build.zsh
66 | c76a98e97f617858790f1ffbe51ddfa8da03e4d435f9d44a420c869cb579766fbafcafa54d8a4ba5f9f3afd768eb33c131e8ed9df2271cad193819eb247cfe4e ./scripts/zsh/init/setup.buildAPKs.zsh
67 | e039764ee759fea9be592efb8b4a8cb423d280c02ae5a4b5a1864ea3a351ad811d9dee528a2c8e55fe48feb889124ad61a8b55640e79083ddf6096d6746e0fd6 ./setup.buildAPKs.bash
68 | 522a33957ed304d578c04db220c8fe7751d1487dc59ce603ad8f48acad638d0e3b73fffc32473fd029b5598ed388c86ec1402ac542309dd8ee393267ea86d963 ./var/lfhvar.txt
69 |
--------------------------------------------------------------------------------
/var/lfhvar.txt:
--------------------------------------------------------------------------------
1 | Linux Filesystem Hierarchy:
2 | Prev Chapter 1. Linux Filesystem Hierarchy Next
3 | 1.18. /var
4 |
5 | Contains variable data like system logging files, mail and printer spool directories, and transient and temporary files. Some portions of /var are not shareable between different systems. For instance, /var/log, /var/lock, and /var/run. Other portions may be shared, notably /var/mail, /var/cache/man, /var/cache/fonts, and /var/spool/news. Why not put it into /usr? Because there might be circumstances when you may want to mount /usr as read-only, e.g. if it is on a CD or on another computer. '/var' contains variable data, i.e. files and directories the system must be able to write to during operation, whereas /usr should only contain static data. Some directories can be put onto separate partitions or systems, e.g. for easier backups, due to network topology or security concerns. Other directories have to be on the root partition, because they are vital for the boot process. 'Mountable' directories are: '/home', '/mnt', '/tmp', '/usr' and '/var'. Essential for booting are: '/bin', '/boot', '/dev', '/etc', '/lib', '/proc' and '/sbin'.
6 |
7 |
8 | If /var cannot be made a separate partition, it is often preferable to move /
9 | var out of the root partition and into the /usr partition. (This is sometimes
10 | done to reduce the size of the root partition or when space runs low in the
11 | root partition.) However, /var must not be linked to /usr because this makes
12 | separation of /usr and /var more difficult and is likely to create a naming
13 | conflict. Instead, link /var to /usr/var.
14 |
15 | Applications must generally not add directories to the top level of /var. Such
16 | directories should only be added if they have some system-wide implication, and
17 | in consultation with the FHS mailing list.
18 |
19 | /var/backups
20 | Directory containing backups of various key system files such as /etc/shadow, /etc/group, /etc/inetd.conf and dpkg.status. They are normally renamed to something like dpkg.status.0, group.bak, gshadow.bak, inetd.conf.bak, passwd.bak, shadow.bak
21 |
22 | /var/cache
23 | Is intended for cached data from applications. Such data is locally generated as a result of time-consuming I/O or calculation. This data can generally be regenerated or be restored. Unlike /var/spool, files here can be deleted without data loss. This data remains valid between invocations of the application and rebooting of the system. The existence of a separate directory for cached data allows system administrators to set different disk and backup policies from other directories in /var.
24 |
25 | /var/cache/fonts
26 | Locally-generated fonts. In particular, all of the fonts which are automatically generated by mktexpk must be located in appropriately-named subdirectories of /var/cache/ fonts.
27 |
28 | /var/cache/man
29 | A cache for man pages that are formatted on demand. The source for manual pages is usually stored in /usr/share/man/; some manual pages might come with a pre-formatted version, which is stored in /usr/share/man/cat* (this is fairly rare now). Other manual pages need to be formatted when they are first viewed; the formatted version is then stored in /var/man so that the next person to view the same page won't have to wait for it to be formatted (/var/catman is often cleaned in the same way temporary directories are cleaned).
30 |
31 | /var/cache/'package-name'
32 | Package specific cache data.
33 |
34 | /var/cache/www
35 | WWW proxy or cache data.
36 |
37 | /var/crash
38 | This directory will eventually hold system crash dumps. Currently, system crash dumps are not supported under Linux. However, development is already complete and is awaiting unification into the Linux kernel.
39 |
40 | /var/db
41 | Data bank store.
42 |
43 | /var/games
44 | Any variable data relating to games in /usr is placed here. It holds variable data that was previously found in /usr. Static data, such as help text, level descriptions, and so on, remains elsewhere though, such as in /usr/share/games. The separation of /var/games and /var/lib as in release FSSTND 1.2 allows local control of backup strategies, permissions, and disk usage, as well as allowing inter-host sharing and reducing clutter in /var/lib. Additionally, /var/games is the path traditionally used by BSD.
45 |
46 | /var/lib
47 | Holds dynamic data libraries/files like the rpm/dpkg database and game scores. Furthermore, this hierarchy holds state information pertaining to an application or the system. State information is data that programs modify while they run, and that pertains to one specific host. Users shouldn't ever need to modify files in /var/lib to configure a package's operation. State information is generally used to preserve the condition of an application (or a group of inter-related applications) between invocations and between different instances of the same application. An application (or a group of inter-related applications) use a subdirectory of /var/lib for their data. There is one subdirectory, /var/lib/misc, which is intended for state files that don't need a subdirectory; the other subdirectories should only be present if the application in question is included in the distribution. /var/lib/'name' is the location that must be used for all distribution packaging support. Different distributions may use different names, of course.
48 |
49 | /var/local
50 | Variable data for local programs (i.e., programs that have been installed by the system administrator) that are installed in /usr/local (as opposed to a remotely mounted '/var' partition). Note that even locally installed programs should use the other /var directories if they are appropriate, e.g., /var/lock.
51 |
52 | /var/lock
53 | Many programs follow a convention to create a lock file in /var/lock to indicate that they are using a particular device or file. This directory holds those lock files (for some devices) and hopefully other programs will notice the lock file and won't attempt to use the device or file.
54 |
55 | Lock files should be stored within the /var/lock directory structure. Lock files for devices and other resources shared by multiple applications, such as the serial device lock files that were originally found in either /usr/spool/locks or /usr/spool/uucp, must now be stored in /var/lock. The naming convention which must be used is LCK.. followed by the base name of the device file. For example, to lock /dev/ttyS0 the file LCK..ttyS0 would be created. The format used for the contents of such lock files must be the HDB UUCP lock file format. The HDB format is to store the process identifier (PID) as a ten byte ASCII decimal number, with a trailing newline. For example, if process 1230 holds a lock file, it would contain the eleven characters: space, space, space, space, space, space, one, two, three, zero, and newline.
56 |
57 | /var/log
58 | Log files from the system and various programs/services, especially login (/var/log/wtmp, which logs all logins and logouts into the system) and syslog (/var/log/messages, where all kernel and system program message are usually stored). Files in /var/log can often grow indefinitely, and may require cleaning at regular intervals. Something that is now normally managed via log rotation utilities such as 'logrotate'. This utility also allows for the automatic rotation compression, removal and mailing of log files. Logrotate can be set to handle a log file daily, weekly, monthly or when the log file gets to a certain size. Normally, logrotate runs as a daily cron job. This is a good place to start troubleshooting general technical problems.
59 |
60 | /var/log/auth.log
61 | Record of all logins and logouts by normal users and system processes.
62 |
63 | /var/log/btmp
64 | Log of all attempted bad logins to the system. Accessed via the lastb command.
65 |
66 | /var/log/debug
67 | Debugging output from various packages.
68 |
69 | /var/log/dmesg
70 | Kernel ring buffer. The content of this file is referred to by the dmesg command.
71 |
72 | /var/log/gdm/
73 | GDM log files. Normally a subset of the last X log file. See /var/log/xdm.log for mode details.
74 |
75 | /var/log/kdm.log
76 | KDM log file. Normally a subset of the last X log file. See /var/log/xdm.log for more details.
77 |
78 | /var/log/messages
79 | System logs.
80 |
81 | /var/log/pacct
82 | Process accounting is the bookkeeping of process activity. The raw data of process activity is maintained here. Three commands can be used to access the contents of this file dump-acct, sa (summary of process accounting) and lastcomm (list the commands executed on the system).
83 |
84 | /var/log/utmp
85 | Active user sessions. This is a data file and as such it can not be viewed normally. A human-readable form can be created via the dump-utmp command or through the w, who or users commands.
86 |
87 | /var/log/wtmp
88 | Log of all users who have logged into and out of the system. The last command can be used to access a human readable form of this file. It also lists every connection and run-level change.
89 |
90 | /var/log/xdm.log
91 | XDM log file. Normally subset of the last X startup log and pretty much useless in light of the details the X logs is able to provide us with. Only consult this file if you have XDM specific issues otherwise just use the X logfile.
92 |
93 | /var/log/XFree86.0.log, /var/log/XFree86.?.log
94 | X startup logfile. An excellent resource for uncovering problems with X configuration. Log files are numbered according to when they were last used. For example, the last log file would be stored in /var/log/XFree86.0.log, the next /var/log/XFree86.9.log, so on and so forth.
95 |
96 | /var/log/syslog
97 | The 'system' log file. The contents of this file is managed via the syslogd daemon which more often than not takes care of all log manipulation on most systems.
98 |
99 | /var/mail
100 | Contains user mailbox files. The mail files take the form /var/mail/'username' (Note that /var/mail may be a symbolic link to another directory). User mailbox files in this location are stored in the standard UNIX mailbox format. The reason for the location of this directory was to bring the FHS inline with nearly every UNIX implementation (it was previously located in /var/spool/mail). This change is important for inter-operability since a single /var/mail is often shared between multiple hosts and multiple UNIX implementations (despite NFS locking issues).
101 |
102 | /var/opt
103 | Variable data of the program packages in /opt must be installed in /var/opt/'package-name', where 'package-name' is the name of the subtree in /opt where the static data from an add-on software package is stored, except where superceded by another file in /etc. No structure is imposed on the internal arrangement of /var/opt/'package-name'.
104 |
105 | /var/run
106 | Contains the process identification files (PIDs) of system services and other information about the system that is valid until the system is next booted. For example, /var/run/utmp contains information about users currently logged in.
107 |
108 | /var/spool
109 | Holds spool files, for instance for mail, news, and printing (lpd) and other queued work. Spool files store data to be processed after the job currently occupying a device is finished or the appropriate cron job is started. Each different spool has its own subdirectory below /var/spool, e.g., the cron tables are stored in /var/spool/cron/crontabs.
110 |
111 | /var/tmp
112 | Temporary files that are large or that need to exist for a longer time than what is allowed for /tmp. (Although the system administrator might not allow very old files in /var/tmp either.)
113 |
114 | /var/named
115 | Database for BIND. The Berkeley Internet Name Domain (BIND) implements an Internet domain name server. BIND is the most widely used name server software on the Internet, and is supported by the Internet Software Consortium, www.isc.org.
116 |
117 | /var/yp
118 | Database for NIS (Network Information Services). NIS is mostly used to let several machines in a network share the same account information (eg. /etc/passwd). NIS was formerly called Yellow Pages (YP).
119 |
120 | The following directories, or symbolic links to directories, are required in /var for FSSTND compliance:
121 |
122 |
123 | /var/cache Application cache data
124 | /var/lib Variable state information
125 | /var/local Variable data for /usr/local
126 | /var/lock Lock files
127 | /var/log Log files and directories
128 | /var/opt Variable data for /opt
129 | /var/run Data relevant to running processes
130 | /var/spool Application spool data
131 | /var/tmp Temporary files preserved between system reboots
132 |
133 |
134 | Several directories are 'reserved' in the sense that they must not be used arbitrarily by some new application, since they would conflict with historical and/or local practice. They are:
135 |
136 |
137 | /var/backups
138 | /var/cron
139 | /var/msgs
140 | /var/preserve
141 |
142 |
143 | The following directories, or symbolic links to directories, must be in /var, if the corresponding subsystem is installed:
144 |
145 |
146 | account Process accounting logs (optional)
147 | crash System crash dumps (optional)
148 | games Variable game data (optional)
149 | mail User mailbox files (optional)
150 | yp Network Information Service (NIS) database files (optional)
151 |
152 | # source page https://www.tldp.org/LDP/Linux-Filesystem-Hierarchy/html/var.html
153 | # lfhvar.txt EOF
154 |
--------------------------------------------------------------------------------