├── .github ├── ISSUE_TEMPLATE │ ├── 01-bug-report.yml │ ├── 02-package-request.yml │ └── config.yml ├── static │ └── powered-by-fosshost.png └── workflows │ └── packages.yml ├── .gitignore ├── .gitmodules ├── CONTRIBUTING.md ├── LICENSE.md ├── README.md ├── disabled-packages └── netcdf-cxx │ └── build.sh ├── packages ├── cgal │ └── build.sh ├── eigen │ └── build.sh ├── gap │ ├── Makefile.patch │ ├── build.sh │ ├── compiled.h-path.patch │ └── gac.in.patch ├── gdal │ ├── build.sh │ └── cpl_port.h.patch ├── glpk │ └── build.sh ├── gnucap │ ├── CXX.patch │ ├── apps-Make1.patch │ ├── apps-configure.patch │ ├── build.sh │ ├── lib-configure.patch │ └── no_termcap.patch.beforehostbuild ├── libfreexl │ └── build.sh ├── libgeos │ └── build.sh ├── libhdf5 │ ├── CMakeLists.patch │ ├── aarch64 │ │ ├── H5Tinit.c │ │ ├── H5lib_settings.c │ │ └── TryRunResults_out.cmake │ ├── arm │ │ ├── CMakeCache.txt │ │ ├── H5Tinit.c │ │ ├── H5lib_settings.c │ │ └── TryRunResults_out.cmake │ ├── build.sh │ ├── i686 │ │ ├── CMakeCache.txt.hdf5.i686 │ │ ├── H5Tinit.c │ │ ├── H5lib_settings.c │ │ └── TryRunResults_out.cmake │ └── x86_64 │ │ ├── CMakeCache.txt.hdf5.x86_64 │ │ ├── H5Tinit.c │ │ ├── H5lib_settings.c │ │ └── TryRunResults_out.cmake ├── libosmium │ └── build.sh ├── libosmpbf │ └── build.sh ├── libprotozero │ ├── build.sh │ ├── disable_tests.patch │ └── tests_log.patch ├── librttopo │ └── build.sh ├── libspatialite │ ├── build.sh │ └── src-Makefile.in.patch ├── mapserver │ ├── LICENSE.patch │ └── build.sh ├── netcdf-c │ ├── build.sh │ └── libhdf5-hdf5debug.c.patch ├── openbabel │ └── build.sh ├── openfoam │ ├── build.sh │ ├── etc-bashrc.patch │ ├── etc-config.sh-CGAL.patch │ ├── etc-config.sh-mpi.patch │ ├── etc-config.sh-settings.patch │ ├── etc-config.sh-unset.patch │ ├── src-OSspecific-POSIX-Allwmake.patch │ ├── src-OSspecific-POSIX-POSIX.C.patch │ ├── src-OSspecific-POSIX-printStack.C.patch │ ├── src-OSspecific-POSIX-signals-sigFpe.C.patch │ ├── src-OpenFOAM-db-IOstreams-IOstreams-Istream.C.patch │ ├── src-OpenFOAM-primitives-ints-int64-int64.H.patch32 │ ├── wmake-makefiles-general.patch │ ├── wmake-rules.patch │ └── wmake-scripts-sysFunctions.patch ├── openmpi │ ├── build.sh │ ├── opal-mca-memory-patcher-memory_patcher_component.c.patch │ ├── opal-util-info.c.patch │ ├── opal-util-info_subscriber.c.patch │ ├── opal-util-show_help_lex.c.patch │ ├── orte-mca-state-base-state_base_fns.c.patch │ └── oshmem-mca-memheat-ptmalloc-malloc.c.patch ├── openscad │ ├── CMakeLists.txt.patch │ ├── build.sh │ └── src-import.cc.patch ├── osm2pgsql │ ├── FindLua.cmake.patch │ └── build.sh ├── osmctools │ └── build.sh ├── osmium-tool │ └── build.sh ├── proj │ └── build.sh ├── spatialite-tools │ └── build.sh └── texlive │ ├── build.sh │ ├── cjk-gs-integrate.pl.patch │ ├── crossrefware.patch │ ├── fmtutil.cnf.patch │ ├── parse_tlpdb.py │ ├── pdfjam.patch │ ├── pedigree.pl.patch │ ├── texconfig.sh.patch │ ├── texdef.pl.patch │ ├── texlive-alegreya.subpackage.sh │ ├── texlive-antt.subpackage.sh │ ├── texlive-bibtexextra.subpackage.sh │ ├── texlive-binextra.subpackage.sh │ ├── texlive-cm-unicode.subpackage.sh │ ├── texlive-context.subpackage.sh │ ├── texlive-cormorantgaramond.subpackage.sh │ ├── texlive-dejavu.subpackage.sh │ ├── texlive-drm.subpackage.sh │ ├── texlive-ebgaramond.subpackage.sh │ ├── texlive-fira.subpackage.sh │ ├── texlive-fontsextra.subpackage.sh │ ├── texlive-fontsrecommended.subpackage.sh │ ├── texlive-fontutils.subpackage.sh │ ├── texlive-formatsextra.subpackage.sh │ ├── texlive-full.subpackage.sh │ ├── texlive-games.subpackage.sh │ ├── texlive-humanities.subpackage.sh │ ├── texlive-ipaex-type1.subpackage.sh │ ├── texlive-langarabic.subpackage.sh │ ├── texlive-langchinese.subpackage.sh │ ├── texlive-langcjk.subpackage.sh │ ├── texlive-langcyrillic.subpackage.sh │ ├── texlive-langczechslovak.subpackage.sh │ ├── texlive-langenglish.subpackage.sh │ ├── texlive-langeuropean.subpackage.sh │ ├── texlive-langfrench.subpackage.sh │ ├── texlive-langgerman.subpackage.sh │ ├── texlive-langgreek.subpackage.sh │ ├── texlive-langitalian.subpackage.sh │ ├── texlive-langjapanese.subpackage.sh │ ├── texlive-langkorean.subpackage.sh │ ├── texlive-langother.subpackage.sh │ ├── texlive-langpolish.subpackage.sh │ ├── texlive-langportuguese.subpackage.sh │ ├── texlive-langspanish.subpackage.sh │ ├── texlive-latexextra.subpackage.sh │ ├── texlive-latexrecommended.subpackage.sh │ ├── texlive-lato.subpackage.sh │ ├── texlive-libertine.subpackage.sh │ ├── texlive-libertinus-type1.subpackage.sh │ ├── texlive-luatex.subpackage.sh │ ├── texlive-mathscience.subpackage.sh │ ├── texlive-metapost.subpackage.sh │ ├── texlive-montserrat.subpackage.sh │ ├── texlive-mpfonts.subpackage.sh │ ├── texlive-music.subpackage.sh │ ├── texlive-noto.subpackage.sh │ ├── texlive-paratype.subpackage.sh │ ├── texlive-pictures.subpackage.sh │ ├── texlive-plaingeneric.subpackage.sh │ ├── texlive-plex.subpackage.sh │ ├── texlive-poltawski.subpackage.sh │ ├── texlive-pstricks.subpackage.sh │ ├── texlive-publishers.subpackage.sh │ ├── texlive-roboto.subpackage.sh │ ├── texlive-stickstoo.subpackage.sh │ ├── texlive-xetex.subpackage.sh │ ├── texmf.cnf.patch │ └── tlshell.tcl.patch ├── scripts └── lint-packages.sh └── start-builder.sh /.github/ISSUE_TEMPLATE/01-bug-report.yml: -------------------------------------------------------------------------------- 1 | name: "Bug report" 2 | description: "Create a report to help us improve" 3 | title: "[Bug]: " 4 | labels: ["bug report"] 5 | body: 6 | - type: markdown 7 | attributes: 8 | value: | 9 | Please use search before opening an issue to check whether your issue has already been reported and perhaps solved. 10 | 11 | Android versions 5.x and 6.x are not supported anymore. Issues happening on these operating system versions will not be resolved. 12 | 13 | To submit a bug report, fill the form below. Provide as much as possible information about the encountered issue. We may request extended information such as `strace` logs if consider necessary. This will help package maintainers to understand the problem correctly and provide a solution. Make sure that your logs do not leak sensitive information (passwords, API keys, etc). Be patient, do not expect that issue could get resolved immediately. 14 | - type: textarea 15 | attributes: 16 | label: Problem description 17 | description: | 18 | A clear and concise description of what the problem is. You may attach the logs, screenshots, screen video recording and whatever else that will help to understand the issue. 19 | 20 | Issues without proper description will be closed without solution. 21 | validations: 22 | required: true 23 | - type: textarea 24 | attributes: 25 | label: What steps will reproduce the bug? 26 | validations: 27 | required: true 28 | - type: textarea 29 | attributes: 30 | label: What is the expected behavior? 31 | - type: textarea 32 | attributes: 33 | label: System information 34 | description: Provide output of `termux-info` in a Markdown **code block** (\`\`\` ... \`\`\`). 35 | validations: 36 | required: true 37 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/02-package-request.yml: -------------------------------------------------------------------------------- 1 | name: "Package request" 2 | description: "Request a new package" 3 | title: "[Package]: " 4 | labels: ["package request"] 5 | body: 6 | - type: markdown 7 | attributes: 8 | value: | 9 | If our repositories do not provide a package that fullfill your needs, consider requesting it. Use search to check whether package has been requested previously. 10 | 11 | To submit a request of a new package, fill the form below. Be patient, do not expect that package will get added immediately. 12 | - type: textarea 13 | attributes: 14 | label: Package description 15 | description: A clear and concise description of what this package do and why it should be added to Termux repositories. 16 | validations: 17 | required: true 18 | - type: input 19 | attributes: 20 | label: Home page URL 21 | - type: input 22 | attributes: 23 | label: Source code URL 24 | placeholder: Link to Git or source archive 25 | validations: 26 | required: true 27 | - type: checkboxes 28 | attributes: 29 | label: Packaging policy acknowledgement 30 | description: Not every package could be added and do not forget that Termux is operated by limited team and hosting resources. 31 | options: 32 | - label: I have read and understand the [Packaging Policy](https://github.com/termux/termux-packages/blob/master/CONTRIBUTING.md#packaging-policy). 33 | required: true 34 | - type: textarea 35 | attributes: 36 | label: Additional information 37 | description: | 38 | Have you tried to compile it on device? 39 | 40 | If it did not work then provide the error you ran into. Otherwise please share build steps and any patches that you had to apply. 41 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: false 2 | contact_links: 3 | - name: Want ask questions about the project? 4 | url: https://github.com/termux/termux-packages/discussions 5 | about: Join GitHub Discussions 6 | -------------------------------------------------------------------------------- /.github/static/powered-by-fosshost.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/termux/science-packages/488fe3cfd1c00ece1d90ff2ccadcb7ceed14f1bd/.github/static/powered-by-fosshost.png -------------------------------------------------------------------------------- /.github/workflows/packages.yml: -------------------------------------------------------------------------------- 1 | name: Packages 2 | 3 | on: 4 | push: 5 | branches: 6 | - master 7 | paths: 8 | - 'packages/**' 9 | pull_request: 10 | paths: 11 | - 'packages/**' 12 | 13 | jobs: 14 | build: 15 | runs-on: ubuntu-latest 16 | env: 17 | ANDROID_HOME: "/opt/termux/android-sdk" 18 | NDK: "/opt/termux/android-ndk" 19 | strategy: 20 | matrix: 21 | target_arch: [aarch64, arm, i686, x86_64] 22 | fail-fast: false 23 | steps: 24 | - name: Clone repository 25 | uses: actions/checkout@v2 26 | with: 27 | fetch-depth: 1000 28 | - name: Build 29 | run: | 30 | BASE_COMMIT=$(jq --raw-output .pull_request.base.sha "$GITHUB_EVENT_PATH") 31 | OLD_COMMIT=$(jq --raw-output .commits[0].id "$GITHUB_EVENT_PATH") 32 | HEAD_COMMIT=$(jq --raw-output .commits[-1].id "$GITHUB_EVENT_PATH") 33 | if [ "$BASE_COMMIT" = "null" ]; then 34 | if [ "$OLD_COMMIT" = "$HEAD_COMMIT" ]; then 35 | # Single-commit push. 36 | echo "Processing commit: ${HEAD_COMMIT}" 37 | CHANGED_FILES=$(git diff-tree --no-commit-id --name-only -r "${HEAD_COMMIT}") 38 | else 39 | # Multi-commit push. 40 | OLD_COMMIT="${OLD_COMMIT}~1" 41 | echo "Processing commit range: ${OLD_COMMIT}..${HEAD_COMMIT}" 42 | CHANGED_FILES=$(git diff-tree --no-commit-id --name-only -r "${OLD_COMMIT}" "${HEAD_COMMIT}") 43 | fi 44 | else 45 | # Pull requests. 46 | echo "Processing pull request #$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH"): ${BASE_COMMIT}..HEAD" 47 | CHANGED_FILES=$(git diff-tree --no-commit-id --name-only -r "${BASE_COMMIT}" "HEAD") 48 | fi 49 | mkdir -p ./artifacts ./debs 50 | touch ./debs/.placeholder 51 | # Process tag '%ci:no-build' that may be added as line to commit message. 52 | # Forces CI to cancel current build with status 'passed'. 53 | if grep -qiP '^\s*%ci:no-build\s*$' <(git log --format="%B" -n 1 "HEAD"); then 54 | tar cf artifacts/debs-${{ matrix.target_arch }}.tar debs 55 | echo "[!] Force exiting as tag '%ci:no-build' was applied to HEAD commit message." 56 | exit 0 57 | fi 58 | # Parse changed files and identify new packages and deleted packages. 59 | # Create lists of those packages that will be passed to upload job for 60 | # further processing. 61 | while read -r file; do 62 | if ! [[ $file == packages/* ]]; then 63 | # This file does not belong to a package, so ignore it 64 | continue 65 | fi 66 | if [[ $file =~ ^packages/([a-z0-9-]*)/([a-z0-9-]*).subpackage.sh$ ]]; then 67 | # A subpackage was modified, check if it was deleted or just updated 68 | pkg=${BASH_REMATCH[1]} 69 | subpkg=${BASH_REMATCH[2]} 70 | if [ ! -f "packages/${pkg}/${subpkg}.subpackage.sh" ]; then 71 | echo "$subpkg" >> ./deleted_packages.txt 72 | fi 73 | elif [[ $file =~ ^packages/([a-z0-9-]*)/.*$ ]]; then 74 | # package, check if it was deleted or updated 75 | pkg=${BASH_REMATCH[1]} 76 | if [ ! -d "packages/${pkg}" ]; then 77 | echo "$pkg" >> ./deleted_packages.txt 78 | else 79 | echo "$pkg" >> ./built_packages.txt 80 | # If there are subpackages we want to create a list of those 81 | # as well 82 | for file in $(find "packages/${pkg}/" -maxdepth 1 -type f -name \*.subpackage.sh | sort); do 83 | echo "$(basename "${file%%.subpackage.sh}")" >> ./built_subpackages.txt 84 | done 85 | fi 86 | fi 87 | done<<<${CHANGED_FILES} 88 | 89 | # Fix so that lists do not contain duplicates 90 | if [ -f ./built_packages.txt ]; then 91 | uniq ./built_packages.txt > ./built_packages.txt.tmp 92 | mv ./built_packages.txt.tmp ./built_packages.txt 93 | fi 94 | if [ -f ./built_subpackages.txt ]; then 95 | uniq ./built_subpackages.txt > ./built_subpackages.txt.tmp 96 | mv ./built_subpackages.txt.tmp ./built_subpackages.txt 97 | fi 98 | if [ -f ./deleted_packages.txt ]; then 99 | uniq ./deleted_packages.txt > ./deleted_packages.txt.tmp 100 | mv ./deleted_packages.txt.tmp ./deleted_packages.txt 101 | fi 102 | 103 | if grep -qP '^texlive-full$' ./built_packages.txt || grep -qP '^openfoam$' ./built_packages.txt; then 104 | echo "Free additional disk space on host" 105 | sudo apt purge -yq $(dpkg -l | grep '^ii' | awk '{ print $2 }' | grep -P '(cabal-|dotnet-|ghc-|libmono|php)') \ 106 | liblldb-6.0 libllvm6.0:amd64 mono-runtime-common monodoc-manual powershell ruby 107 | sudo apt autoremove -yq 108 | sudo rm -rf /opt/hostedtoolcache /usr/local /usr/share/dotnet /usr/share/swift 109 | fi 110 | 111 | if [ -f ./built_packages.txt ]; then 112 | ./scripts/lint-packages.sh $(cat ./built_packages.txt | awk '{print "packages/"$1"/build.sh"}') 113 | ./start-builder.sh ./build-package.sh -o ./debs -I -a ${{ matrix.target_arch }} $(cat ./built_packages.txt) 114 | fi 115 | 116 | test -d ./termux-packages/debs && mv ./termux-packages/debs/* ./debs/ 117 | # Put package lists into directory with *.deb files so they will be transferred to 118 | # upload job. 119 | test -f ./built_packages.txt && mv ./built_packages.txt ./debs/ 120 | test -f ./built_subpackages.txt && cat ./built_subpackages.txt >> ./debs/built_packages.txt \ 121 | && rm ./built_subpackages.txt 122 | test -f ./deleted_packages.txt && mv ./deleted_packages.txt ./debs/ 123 | # Files containing certain symbols (e.g. ":") will cause failure in actions/upload-artifact. 124 | # Archiving *.deb files in a tarball to avoid issues with uploading. 125 | tar cf artifacts/debs-${{ matrix.target_arch }}-${{ github.sha }}.tar debs 126 | - name: Checksums for built *.deb files 127 | run: | 128 | find debs -type f -name "*.deb" -exec sha256sum "{}" \; | sort -k2 129 | - name: Store *.deb files 130 | uses: actions/upload-artifact@v2 131 | with: 132 | name: science-packages-${{ github.sha }} 133 | path: ./artifacts 134 | upload: 135 | if: github.event_name != 'pull_request' 136 | needs: build 137 | runs-on: ubuntu-latest 138 | steps: 139 | - name: Clone repository 140 | uses: actions/checkout@v2 141 | - name: Get *.deb files 142 | uses: actions/download-artifact@v2 143 | with: 144 | name: science-packages-${{ github.sha }} 145 | path: ./ 146 | - name: Upload to packages.termux.org 147 | env: 148 | REPOSITORY_NAME: termux-science 149 | REPOSITORY_DISTRIBUTION: science 150 | run: | 151 | for archive in *.tar; do 152 | tar xf "$archive" 153 | done 154 | 155 | # Function for deleting temporary directory with uploaded files from 156 | # the server. 157 | aptly_delete_dir() { 158 | echo "[*] Deleting uploads temporary directory." 159 | 160 | curl_response=$( 161 | curl \ 162 | --silent \ 163 | --user "${{ secrets.APTLY_API_AUTH }}" \ 164 | --request DELETE \ 165 | --write-out "|%{http_code}" \ 166 | https://packages.termux.org/aptly-api/files/${REPOSITORY_NAME}-${{ github.sha }} 167 | ) 168 | 169 | http_status_code=$(echo "$curl_response" | cut -d'|' -f2) 170 | 171 | if [ "$http_status_code" != "200" ]; then 172 | echo "[!] Server returned $http_status_code code while deleting temporary directory." 173 | fi 174 | } 175 | 176 | # Upload file to temporary directory. 177 | uploaded_files=false 178 | shopt -s nullglob 179 | for filename in $(cat debs/built_packages.txt | sed -E 's/(..*)/debs\/\1_\*.deb debs\/\1-static_\*.deb/g'); do 180 | curl_response=$( 181 | curl \ 182 | --silent \ 183 | --user "${{ secrets.APTLY_API_AUTH }}" \ 184 | --request POST \ 185 | --form file=@${filename} \ 186 | --write-out "|%{http_code}" \ 187 | https://packages.termux.org/aptly-api/files/${REPOSITORY_NAME}-${{ github.sha }} 188 | ) 189 | 190 | http_status_code=$(echo "$curl_response" | cut -d'|' -f2) 191 | 192 | if [ "$http_status_code" = "200" ]; then 193 | echo "[*] Uploaded: $(echo "$curl_response" | cut -d'|' -f1 | jq -r '.[]' | cut -d'/' -f2)" 194 | else 195 | # Manually cleaning up the temporary directory to reclaim disk space. 196 | # Don't rely on scheduled server-side scripts. 197 | echo "[!] Failed to upload '$filename'. Server returned $http_status_code code." 198 | echo "[!] Aborting any further uploads." 199 | aptly_delete_dir 200 | exit 1 201 | fi 202 | 203 | uploaded_files=true 204 | done 205 | shopt -u nullglob 206 | 207 | # Publishing repository changes. 208 | if [ "$uploaded_files" = "true" ]; then 209 | echo "[*] Adding packages to repository '$REPOSITORY_NAME'..." 210 | 211 | curl_response=$( 212 | curl \ 213 | --silent \ 214 | --user "${{ secrets.APTLY_API_AUTH }}" \ 215 | --request POST \ 216 | --write-out "|%{http_code}" \ 217 | https://packages.termux.org/aptly-api/repos/${REPOSITORY_NAME}/file/${REPOSITORY_NAME}-${{ github.sha }} || true 218 | ) 219 | 220 | http_status_code=$(echo "$curl_response" | cut -d'|' -f2) 221 | 222 | if [ "$http_status_code" = "200" ]; then 223 | warnings=$(echo "$curl_response" | cut -d'|' -f1 | jq '.Report.Warnings' | jq -r '.[]') 224 | if [ -n "$warnings" ]; then 225 | echo "[!] WARNINGS (NON-CRITICAL):" 226 | echo 227 | echo "$warnings" 228 | echo 229 | fi 230 | fi 231 | # Usually temporary directory is deleted automatically, but in certain cases it is left. 232 | aptly_delete_dir 233 | 234 | # Final part to make changes appear in web root. 235 | echo "[*] Publishing repository changes..." 236 | set +e 237 | curl \ 238 | --silent \ 239 | --user "${{ secrets.APTLY_API_AUTH }}" \ 240 | --header 'Content-Type: application/json' \ 241 | --request PUT \ 242 | --data '{"Signing": {"Passphrase": "${{ secrets.GPG_PASSPHRASE }}"}}' \ 243 | https://packages.termux.org/aptly-api/publish/${REPOSITORY_NAME}/${REPOSITORY_DISTRIBUTION} 244 | exit_code=$? 245 | echo 246 | 247 | if [ "$exit_code" = 0 ]; then 248 | echo "[*] Repository updated successfully." 249 | elif [ "$exit_code" = 52 ]; then 250 | echo "[!] Repository update takes more time than expected, server returned empty response." 251 | echo "[!] This is expected if large amount of data has been submitted." 252 | else 253 | echo "[!] curl exited with error code $exit_status." 254 | exit "$exit_code" 255 | fi 256 | fi 257 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ### Vim ### 2 | [._]*.s[a-w][a-z] 3 | [._]s[a-w][a-z] 4 | *.un~ 5 | Session.vim 6 | *~ 7 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "termux-packages"] 2 | path = termux-packages 3 | url = https://github.com/termux/termux-packages 4 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing guide 2 | 3 | A simple way to help out is to check if new versions of packages have been released, and then open a pull request to update it. 4 | The following instructions can be run both from a GNU/Linux computer and from termux. 5 | 6 | [Repology](https://repology.org/projects/?inrepo=termux&outdated=1) can be used to check for outdated packages in all termux repositories. 7 | 8 | Starting from scratch you need to: 9 | 10 | * [Fork this repo](#forking-this-repo) 11 | * [Clone your fork](#clone-your-fork) 12 | * [Create a new branch](#creating-a-new-branch) 13 | * [Update a package](#updating-a-package) 14 | * [Commit changes and push to your fork](#commiting-changes-and-pushing-to-your-fork) 15 | * [Open a pull request](#opening-a-pull-request) 16 | 17 | ## Forking this repo 18 | 19 | To be able to open a pull request you need to first fork this repo to your own github account. 20 | The changes you do will first be pushed to your own fork and thereafter a pull request can be opened against the main repo. 21 | Forking is done by pressing the "Fork" button in the upper right corner of the repository page. 22 | See the github help pages for more details: [fork-a-repo#fork-an-example-repository](https://help.github.com/en/github/getting-started-with-github/fork-a-repo#fork-an-example-repository). 23 | 24 | ## Clone your fork 25 | 26 | Now that you have your own fork you can clone it to your termux device or computer. 27 | From a suitable location simply run 28 | 29 | ```sh 30 | git clone https://github.com//science-packages 31 | ``` 32 | 33 | Note that it is also possible to [edit files directly in github](https://help.github.com/en/github/managing-files-in-a-repository/editing-files-in-your-repository), so this step could be skipped. 34 | 35 | ## Creating a new branch 36 | 37 | It is recommended to create a new branch before making changes. 38 | This is done by first checking out the master branch and making sure it is up to date, and then checking out a new branch: 39 | ```sh 40 | git checkout master 41 | git pull origin master 42 | git checkout -b -update 43 | ``` 44 | 45 | ## Updating a package 46 | 47 | Minor updates (going from for example v1.0.5 to v1.0.6) most often only means that the fields `TERMUX_PKG_VERSION`, `TERMUX_PKG_REVISION` and `TERMUX_PKG_SHA256` needs to be updated. 48 | The changes in the build.sh would then change something like: 49 | ```sh 50 | [ ... ] 51 | TERMUX_PKG_VERSION=1.0.5 52 | TERMUX_PKG_REVISION=2 53 | TERMUX_PKG_SRCURL=https://url.com/download/${TERMUX_PKG_VERSION}.tar.gz 54 | TERMUX_PKG_SHA256=abde02986bc1fb112655bb5a3161dddfdc9436057fd8b305a01fe42b7dd247ae 55 | [ ... ] 56 | ``` 57 | to 58 | ```sh 59 | [ ... ] 60 | TERMUX_PKG_VERSION=1.0.6 61 | TERMUX_PKG_SRCURL=https://url.com/download/${TERMUX_PKG_VERSION}.tar.gz 62 | TERMUX_PKG_SHA256=6116e607250198f224d9ce9304eba6bf0792d592c0b55209e496843192cc6860 63 | [ ... ] 64 | ``` 65 | 66 | Note that the `TERMUX_PKG_REVISION` line has been deleted, when a package is updated the REVISION should be reset to 0 and this line hence deleted. 67 | The value for `TERMUX_PKG_SHA256` can be calculated by downloading the source archive and running sha256sum on it: 68 | 69 | ```sh 70 | wget https://url.com/download/1.0.6.tar.gz 71 | sha256sum 1.0.6.tar.gz 72 | ``` 73 | 74 | Major updates (going from for example v1.0.5 to v2.0.0) can mean that patches needs to be updated, or added. 75 | The CI build of the pull request will fail if patches need to be updated and in some cases if a new patch is needed, but then only way to be sure that a package still works after an update is by testing the built package in termux. 76 | For example, many of the patches we have fixes paths to use $PREFIX, by changing for example `/tmp` to `/data/data/com.termux/files/usr/tmp`. The build will succeed even without this type of patch, but running the program later will give a `Permission denied` error or similar. 77 | 78 | ## Commiting changes and pushing to your fork 79 | 80 | Now that the build.sh is updated we can commit it and push it to github so that a pull request against the main repo can be opened. 81 | To commit with a short message you can run: 82 | ```sh 83 | git add packages/ 84 | git commit -m ": update to 1.0.6" 85 | ``` 86 | 87 | To push this to github you then run 88 | 89 | ```sh 90 | git push origin 91 | ``` 92 | 93 | `origin` here is the repository that you originally cloned, which in this example is your fork. 94 | The full url to this repository can be shown by running `git remote -v` 95 | 96 | ## Opening a pull request 97 | 98 | You can now visit your repo in a browser and open a pull request against this repo by pressing "New pull request". 99 | See [creating-a-pull-request](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request) for more information on how to do this. 100 | 101 | Once a pull request has been created cirrus-ci will attempt to build the changes. 102 | The status of the build can be seen by visiting https://cirrus-ci.com/github/termux/science-packages. 103 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | ## Licenses for package build scripts and patches 2 | 3 | The scripts and patches to build each package is licensed under the same 4 | license as the actual package. 5 | 6 | Licenses for packages specified in the field "TERMUX_PKG_LICENSE" of build 7 | script file (build.sh). For example, `TERMUX_PKG_LICENSE="GPL-2.0"` means 8 | that package is licensed under GNU GPL v2.0. 9 | 10 | ## License for the build infrastructure 11 | 12 | For build infrastructure outside the `packages/` folder the license is GNU GPL v3.0. 13 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Termux science packages 2 | 3 | THIS REPO HAS BEEN MERGED WITH [TERMUX-PACKAGES](https://github.com/termux/termux-packages) - open issues and PRs against that repo instead 4 | 5 | [![Last build status](https://github.com/termux/science-packages/workflows/Packages/badge.svg)](https://github.com/termux/science-packages/actions) 6 | 7 | [![Powered by FossHost](.github/static/powered-by-fosshost.png)](https://fosshost.org) 8 | 9 | This repository contains packages that are more or less related to science, i.e. they might not be of interest for the average termux user. 10 | 11 | # Contributing 12 | 13 | Information on how to open pull requests to help keep the packages here up to date can be read in [CONTRIBUTING.md](CONTRIBUTING.md) 14 | 15 | # Building a package 16 | To build a package, first clone science-packages, 17 | ```sh 18 | git clone https://github.com/termux/science-packages 19 | ``` 20 | and then update the termux-packages submodule. 21 | ```sh 22 | cd science-packages 23 | git submodule init 24 | git submodule update 25 | ``` 26 | You can then build a package with the following: 27 | ```sh 28 | ./build-package.sh name-of-package 29 | ``` 30 | Note that this currently only works outside of the docker container. 31 | To build from the docker container, science-packages has to be a subfolder of termux-packages, and a science package can then be built with 32 | ```sh 33 | ./build-package.sh science-packages/packages/package-to-build 34 | ``` 35 | The termux-package submodule is not needed for this. 36 | 37 | # Subscribing to the repository 38 | To install packages from this repository, you need to subscribe to it with: 39 | ```sh 40 | pkg install science-repo 41 | ``` 42 | -------------------------------------------------------------------------------- /disabled-packages/netcdf-cxx/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=https://www.unidata.ucar.edu/software/netcdf/ 2 | TERMUX_PKG_DESCRIPTION="NetCDF is a set of software libraries and self-describing, machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data" 3 | TERMUX_PKG_LICENSE="custom" 4 | TERMUX_PKG_MAINTAINER="Henrik Grimler @Grimler91" 5 | TERMUX_PKG_VERSION=4.3.0 6 | TERMUX_PKG_SHA256=25da1c97d7a01bc4cee34121c32909872edd38404589c0427fefa1301743f18f 7 | TERMUX_PKG_SRCURL=https://github.com/Unidata/netcdf-cxx4/archive/v${TERMUX_PKG_VERSION}.tar.gz 8 | TERMUX_PKG_DEPENDS="libhdf5, libcurl, openssl, libnghttp2, netcdf-c" 9 | -------------------------------------------------------------------------------- /packages/cgal/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=https://www.cgal.org/ 2 | TERMUX_PKG_DESCRIPTION="Computational Geometry Algorithms Library" 3 | TERMUX_PKG_LICENSE="GPL-2.0, LGPL-2.1" 4 | TERMUX_PKG_MAINTAINER="@termux" 5 | TERMUX_PKG_VERSION=5.3 6 | TERMUX_PKG_REVISION=1 7 | TERMUX_PKG_SRCURL=https://github.com/CGAL/cgal/releases/download/v${TERMUX_PKG_VERSION}/CGAL-${TERMUX_PKG_VERSION}.tar.xz 8 | TERMUX_PKG_SHA256=2c242e3f27655bc80b34e2fa5e32187a46003d2d9cd7dbec8fbcbc342cea2fb6 9 | TERMUX_PKG_DEPENDS="boost, libc++, libgmp, libmpfr, zlib" 10 | 11 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" 12 | -DWITH_CGAL_Qt5=OFF 13 | -DWITH_demos=OFF 14 | -DWITH_examples=OFF 15 | -DWITH_tests=OFF 16 | " 17 | -------------------------------------------------------------------------------- /packages/eigen/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=http://eigen.tuxfamily.org 2 | TERMUX_PKG_DESCRIPTION="Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms" 3 | TERMUX_PKG_LICENSE="MPL-2.0" 4 | TERMUX_PKG_MAINTAINER="@termux" 5 | TERMUX_PKG_VERSION=3.3.9 6 | TERMUX_PKG_REVISION=1 7 | TERMUX_PKG_SHA256=7985975b787340124786f092b3a07d594b2e9cd53bbfe5f3d9b1daee7d55f56f 8 | TERMUX_PKG_SRCURL=https://gitlab.com/libeigen/eigen/-/archive/${TERMUX_PKG_VERSION}/eigen-${TERMUX_PKG_VERSION}.tar.gz 9 | TERMUX_PKG_BREAKS="eigen-dev" 10 | TERMUX_PKG_REPLACES="eigen-dev" 11 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DCMAKE_BUILD_TYPE=Release" 12 | -------------------------------------------------------------------------------- /packages/gap/Makefile.patch: -------------------------------------------------------------------------------- 1 | --- ./Makefile.rules.orig 2021-03-02 15:12:10.000000000 +0000 2 | +++ ./Makefile.rules 2021-06-10 19:13:39.230787541 +0000 3 | @@ -484,9 +484,7 @@ 4 | 5 | LTINSTALL=$(LIBTOOL) --mode=install $(INSTALL) 6 | 7 | -install: 8 | - @echo "Error, 'make install' has not yet been implemented" 9 | - exit 1 10 | +install: install-libgap install-headers install-bin install-gaproot install-pkg 11 | 12 | # the following is wrapper script which is installed by the install-bin target 13 | define gap_wrapper 14 | @@ -498,13 +496,13 @@ 15 | install-bin: 16 | @echo "Warning, 'make install-bin' is incomplete" 17 | $(INSTALL) -d -m 0755 $(DESTDIR)$(bindir) 18 | - $(INSTALL) -m 0755 gap $(DESTDIR)$(bindir)/gap.real 19 | - echo "$$gap_wrapper" > gap-wrapper.sh 20 | + $(INSTALL) -m 0755 gap $(PREFIX)/libexec/gap.real 21 | + echo -e "#!@TERMUX_PREFIX@/bin/sh\nexec \"$(PREFIX)/libexec/gap.real\" -l \"$(datarootdir)/gap\" "'"$$@"' > gap-wrapper.sh 22 | $(INSTALL) -m 0755 gap-wrapper.sh $(DESTDIR)$(bindir)/gap 23 | # TODO: make gac installable; this requires adjusting path in it, and 24 | # installing the libtool script generated by configure somewhere; and then 25 | # putting that path to it into gac) 26 | - #$(INSTALL) gac $(DESTDIR)$(bindir) 27 | + $(INSTALL) gac $(DESTDIR)$(bindir) 28 | 29 | install-gaproot: 30 | @echo "Warning, 'make install-gaproot' is incomplete" 31 | @@ -544,6 +542,7 @@ 32 | $(INSTALL) -d -m 0755 $(DESTDIR)$(includedir)/gap/hpc 33 | $(INSTALL) -m 0644 $(srcdir)/src/hpc/*.h $(DESTDIR)$(includedir)/gap/hpc 34 | # TODO: take care of config.h, this is difficult 35 | + $(INSTALL) -m 0644 gen/config.h $(DESTDIR)$(includedir)/gap 36 | 37 | install-libgap: libgap.la 38 | @echo "Warning, 'make install-libgap' is incomplete" 39 | -------------------------------------------------------------------------------- /packages/gap/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=https://www.gap-system.org/ 2 | TERMUX_PKG_DESCRIPTION="GAP is a system for computational discrete algebra, with particular emphasis on Computational Group Theory" 3 | TERMUX_PKG_LICENSE="GPL-2.0" 4 | TERMUX_PKG_MAINTAINER="@termux" 5 | TERMUX_PKG_VERSION=4.11.1 6 | TERMUX_PKG_SRCURL=https://github.com/gap-system/gap/releases/download/v${TERMUX_PKG_VERSION}/gap-${TERMUX_PKG_VERSION}.tar.gz 7 | TERMUX_PKG_SHA256=6635c5da7d82755f8339486b9cac33766f58712f297e8234fba40818902ea304 8 | TERMUX_PKG_DEPENDS="readline, libgmp, zlib" 9 | TERMUX_PKG_BREAKS="gap-dev" 10 | TERMUX_PKG_REPLACES="gap-dev" 11 | 12 | termux_step_post_make_install() { 13 | ln -sf $TERMUX_PREFIX/bin $TERMUX_PREFIX/share/gap/ 14 | } 15 | -------------------------------------------------------------------------------- /packages/gap/gac.in.patch: -------------------------------------------------------------------------------- 1 | --- ../gac.in.orig 2020-03-23 13:34:46.413961009 +0100 2 | +++ ./cnf/gac.in 2020-03-23 15:22:16.104160530 +0100 3 | @@ -1,4 +1,4 @@ 4 | -#!/bin/sh 5 | +#!@TERMUX_PREFIX@/bin/sh 6 | ############################################################################# 7 | ## 8 | ## This file is part of GAP, a system for computational discrete algebra. 9 | @@ -53,13 +53,13 @@ 10 | ## -k|--gap-compiler 11 | ## 12 | 13 | -SHELL="@SHELL@" 14 | +SHELL="@TERMUX_PREFIX@/bin/sh" 15 | 16 | # absolute path of the directory in which GAP was compiled 17 | -abs_top_builddir="@abs_top_builddir@" 18 | +abs_top_builddir="@TERMUX_PREFIX@/share/gap" 19 | 20 | # path of the directory the GAP sources contained in 21 | -abs_top_srcdir="@abs_top_srcdir@" 22 | +abs_top_srcdir="@TERMUX_PREFIX@/share/gap" 23 | 24 | # 25 | libdir="@libdir@" 26 | @@ -67,7 +67,7 @@ 27 | # path to the GAP executable 28 | gap_compiler="${abs_top_builddir}/gap" 29 | 30 | -libtool="$SHELL $abs_top_builddir/libtool" 31 | +libtool="$SHELL @TERMUX_PREFIX@/bin/libtool" 32 | CC="@CC@" 33 | 34 | # These three should be filled in by the standard autoconf procedures 35 | @@ -81,7 +81,7 @@ 36 | c_dyn_linker="$libtool --mode=link $CC -module -avoid-version -rpath $libdir" 37 | c_addlibs="" 38 | 39 | -GAPARCH=@GAPARCH@ 40 | +GAPARCH= 41 | SYS_IS_CYGWIN32=@SYS_IS_CYGWIN32@ 42 | if [ X"$SYS_IS_CYGWIN32" = X"yes" ] ; then 43 | c_dyn_linker="$c_dyn_linker -no-undefined -version-info 0:0:0" 44 | -------------------------------------------------------------------------------- /packages/gdal/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=https://gdal.org 2 | TERMUX_PKG_DESCRIPTION="A translator library for raster and vector geospatial data formats" 3 | TERMUX_PKG_LICENSE="MIT" 4 | TERMUX_PKG_LICENSE_FILE="LICENSE.TXT" 5 | TERMUX_PKG_MAINTAINER="@termux" 6 | TERMUX_PKG_VERSION=3.3.2 7 | TERMUX_PKG_REVISION=1 8 | TERMUX_PKG_SRCURL=https://download.osgeo.org/gdal/${TERMUX_PKG_VERSION}/gdal-${TERMUX_PKG_VERSION}.tar.xz 9 | TERMUX_PKG_SHA256=630e34141cf398c3078d7d8f08bb44e804c65bbf09807b3610dcbfbc37115cc3 10 | TERMUX_PKG_DEPENDS="libc++, openjpeg, libcurl, libtiff, libpng, proj, libiconv, libsqlite, libgeos, libspatialite, libexpat, postgresql, netcdf-c" 11 | TERMUX_PKG_BREAKS="gdal-dev" 12 | TERMUX_PKG_REPLACES="gdal-dev" 13 | TERMUX_PKG_BUILD_IN_SRC=true 14 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" 15 | --with-sqlite3=$TERMUX_PREFIX 16 | --with-spatialite=$TERMUX_PREFIX 17 | --with-expat=$TERMUX_PREFIX 18 | " 19 | -------------------------------------------------------------------------------- /packages/gdal/cpl_port.h.patch: -------------------------------------------------------------------------------- 1 | --- ../cpl_port.h 2 | +++ ./port/cpl_port.h 3 | @@ -140,7 +140,7 @@ 4 | #include 5 | #include 6 | #include 7 | -#include 8 | +#include 9 | 10 | #include 11 | 12 | @@ -1085,7 +1085,7 @@ inline bool operator!= (const bool& one, const MSVCPedanticBool& other) { return 13 | #include 14 | #include 15 | #include 16 | -#include 17 | +#include 18 | #include 19 | #include 20 | #include 21 | -------------------------------------------------------------------------------- /packages/glpk/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/glpk/ 2 | TERMUX_PKG_DESCRIPTION="GNU Linear Programming Kit: solve LP, MIP and other problems" 3 | TERMUX_PKG_LICENSE="GPL-3.0" 4 | TERMUX_PKG_MAINTAINER="@termux" 5 | TERMUX_PKG_VERSION=5.0 6 | TERMUX_PKG_SRCURL=https://ftp.gnu.org/gnu/glpk/glpk-${TERMUX_PKG_VERSION}.tar.gz 7 | TERMUX_PKG_SHA256=4a1013eebb50f728fc601bdd833b0b2870333c3b3e5a816eeba921d95bec6f15 8 | TERMUX_PKG_DEPENDS=libgmp 9 | -------------------------------------------------------------------------------- /packages/gnucap/CXX.patch: -------------------------------------------------------------------------------- 1 | diff -u -r ../gnucap-20171003/apps/Make2.Debug ./apps/Make2.Debug 2 | --- ../gnucap-20171003/apps/Make2.Debug 2017-10-04 00:50:49.000000000 +0200 3 | +++ ./apps/Make2.Debug 2019-01-24 22:30:16.059909732 +0100 4 | @@ -24,7 +24,7 @@ 5 | # Standard base for g++, debugging, a little optimization 6 | # Running the program will give a spew of line markers for debugging. 7 | 8 | -CCC = g++ 9 | +CCC = $(CXX) 10 | TARGET_EXT = .so 11 | 12 | CCFLAGS = \ 13 | diff -u -r ../gnucap-20171003/apps/Make2.g++ ./apps/Make2.g++ 14 | --- ../gnucap-20171003/apps/Make2.g++ 2017-10-04 00:50:49.000000000 +0200 15 | +++ ./apps/Make2.g++ 2019-01-24 22:30:16.059909732 +0100 16 | @@ -23,7 +23,7 @@ 17 | 18 | # Standard base for g++. 19 | 20 | -CCC = g++ 21 | +CCC = $(CXX) 22 | TARGET_EXT = .so 23 | 24 | CCFLAGS = \ 25 | diff -u -r ../gnucap-20171003/include/configure ./include/configure 26 | --- ../gnucap-20171003/include/configure 2017-10-04 00:50:49.000000000 +0200 27 | +++ ./include/configure 2019-01-24 22:30:16.059909732 +0100 28 | @@ -22,7 +22,7 @@ 29 | #---------------------------------------------------------------- 30 | echo \# created by $PWD/$0. do not edit >Make2 31 | echo \#------------------------------------------------------------------------ >>Make2 32 | -echo "CCC = c++" >>Make2 33 | +echo "CCC = \$(CXX)" >>Make2 34 | echo "PREFIX = " $prefix >>Make2 35 | echo "" >>Make2 36 | 37 | diff -u -r ../gnucap-20171003/lib/Make2.Debug ./lib/Make2.Debug 38 | --- ../gnucap-20171003/lib/Make2.Debug 2017-10-04 00:50:49.000000000 +0200 39 | +++ ./lib/Make2.Debug 2019-01-24 22:30:16.059909732 +0100 40 | @@ -24,7 +24,7 @@ 41 | # Standard base for g++, debugging, a little optimization 42 | # Running the program will give a spew of line markers for debugging. 43 | 44 | -CCC = g++ 45 | +CCC = $(CXX) 46 | TARGET_EXT = .so 47 | 48 | CCFLAGS = \ 49 | diff -u -r ../gnucap-20171003/lib/Make2.g++ ./lib/Make2.g++ 50 | --- ../gnucap-20171003/lib/Make2.g++ 2017-10-04 00:50:49.000000000 +0200 51 | +++ ./lib/Make2.g++ 2019-01-24 22:30:16.059909732 +0100 52 | @@ -23,7 +23,7 @@ 53 | 54 | # Standard base for g++. 55 | 56 | -CCC = g++ 57 | +CCC = $(CXX) 58 | TARGET_EXT = .so 59 | 60 | CCFLAGS = \ 61 | diff -u -r ../gnucap-20171003/main/configure ./main/configure 62 | --- ../gnucap-20171003/main/configure 2017-10-04 00:50:49.000000000 +0200 63 | +++ ./main/configure 2019-01-24 22:31:37.649909149 +0100 64 | @@ -26,7 +26,7 @@ 65 | pkglibdir=$prefix/lib/gnucap 66 | 67 | # bug. this is not implemented consistently. 68 | -CXX=${CXX-c++} 69 | +CXX=${CXX} 70 | 71 | fill_template() { 72 | sed -e "s#@prefix@#$prefix#" \ 73 | @@ -48,7 +48,7 @@ 74 | chmod +x gnucap-conf 75 | #---------------------------------------------------------------- 76 | echo "CCFLAGS = \\" >Make.ccflags 77 | -echo "-DUNIX -O2 -DNDEBUG -I. -I../include -I../../include -W" >>Make.ccflags 78 | +echo "-DUNIX -O2 -DNDEBUG \$(CPPFLAGS) -I. -I../include -I../../include -W" >>Make.ccflags 79 | 80 | echo "LIBS = \\" >Make.libs 81 | echo "-lgnucap \\" >>Make.libs 82 | @@ -59,10 +59,10 @@ 83 | cat <Make.sys 84 | #------------------------------------------------------------------------ 85 | VPATH = .:.. 86 | -CCC = c++ 87 | +CCC = \$(CXX) 88 | TARGET_EXT = 89 | 90 | -LDFLAGS = -rdynamic \ 91 | +LDFLAGS += -rdynamic \ 92 | -L../../lib/O 93 | 94 | .SUFFIXES : .o .cc 95 | diff -u -r ../gnucap-20171003/main/Make2.Debug ./main/Make2.Debug 96 | --- ../gnucap-20171003/main/Make2.Debug 2017-10-04 00:50:49.000000000 +0200 97 | +++ ./main/Make2.Debug 2019-01-24 22:30:16.059909732 +0100 98 | @@ -24,7 +24,7 @@ 99 | # Standard base for g++, debugging, no optimization 100 | # Running the program will give a spew of line markers for debugging. 101 | 102 | -CCC = g++ 103 | +CCC = $(CXX) 104 | 105 | CCFLAGS = \ 106 | -DUNIX -g -O0 -I. -I../../include -DTRACE_UNTESTED \ 107 | diff -u -r ../gnucap-20171003/main/Make2.g++ ./main/Make2.g++ 108 | --- ../gnucap-20171003/main/Make2.g++ 2017-10-04 00:50:49.000000000 +0200 109 | +++ ./main/Make2.g++ 2019-01-24 22:30:16.059909732 +0100 110 | @@ -23,7 +23,7 @@ 111 | 112 | # Standard base for g++. 113 | 114 | -CCC = g++ 115 | +CCC = $(CXX) 116 | 117 | CCFLAGS = \ 118 | -DUNIX -O3 -DNDEBUG -I. -I../include -I../../include -W 119 | diff -u -r ../gnucap-20171003/modelgen/configure ./modelgen/configure 120 | --- ../gnucap-20171003/modelgen/configure 2017-10-04 00:50:49.000000000 +0200 121 | +++ ./modelgen/configure 2019-01-24 22:31:17.489909279 +0100 122 | @@ -36,10 +36,10 @@ 123 | cat <Make.sys 124 | #------------------------------------------------------------------------ 125 | VPATH = .:.. 126 | -CCC = c++ 127 | +CCC = \$(CXX) 128 | TARGET_EXT = 129 | 130 | -LDFLAGS = -rdynamic \ 131 | +LDFLAGS += -rdynamic \ 132 | -L../../lib/O 133 | 134 | .SUFFIXES : .o .cc 135 | diff -u -r ../gnucap-20171003/modelgen/Make2.Debug ./modelgen/Make2.Debug 136 | --- ../gnucap-20171003/modelgen/Make2.Debug 2017-10-04 00:50:49.000000000 +0200 137 | +++ ./modelgen/Make2.Debug 2019-01-24 22:30:16.059909732 +0100 138 | @@ -24,7 +24,7 @@ 139 | # Standard base for g++, debugging, no optimization 140 | # Running the program will give a spew of line markers for debugging. 141 | 142 | -CCC = g++ 143 | +CCC = $(CXX) 144 | 145 | CCFLAGS = \ 146 | -DUNIX -g -O0 -I. -I../../include -DTRACE_UNTESTED \ 147 | diff -u -r ../gnucap-20171003/modelgen/Make2.g++ ./modelgen/Make2.g++ 148 | --- ../gnucap-20171003/modelgen/Make2.g++ 2017-10-04 00:50:49.000000000 +0200 149 | +++ ./modelgen/Make2.g++ 2019-01-24 22:30:16.059909732 +0100 150 | @@ -23,7 +23,7 @@ 151 | 152 | # Standard base for g++. 153 | 154 | -CCC = g++ 155 | +CCC = $(CXX) 156 | 157 | CCFLAGS = \ 158 | -DUNIX -O3 -DNDEBUG -I. -I../include -I../../include -W 159 | -------------------------------------------------------------------------------- /packages/gnucap/apps-Make1.patch: -------------------------------------------------------------------------------- 1 | --- ./apps/Make1.orig 2021-09-12 13:58:56.131980584 +0000 2 | +++ ./apps/Make1 2021-09-12 13:59:54.468571515 +0000 3 | @@ -119,8 +119,8 @@ 4 | MAINTAINERCLEANFILES = $(DISTCLEANFILES) 5 | #------------------------------------------------------------------------ 6 | #------------------------------------------------------------------------ 7 | -LIBPATH = `pwd | sed 's/\(.*\)apps/\1lib/'` 8 | -MODELGEN = `pwd | sed 's/\(.*\)apps/\1modelgen/'`/gnucap-modelgen 9 | +LIBPATH = @TERMUX_PKG_HOSTBUILD_DIR@/lib/O 10 | +MODELGEN = @TERMUX_PKG_HOSTBUILD_DIR@/modelgen/O/gnucap-modelgen 11 | #------------------------------------------------------------------------ 12 | %.h : %.model 13 | (export LD_LIBRARY_PATH=$(LIBPATH); $(MODELGEN) -h $<) 14 | -------------------------------------------------------------------------------- /packages/gnucap/apps-configure.patch: -------------------------------------------------------------------------------- 1 | --- ../apps-configure.orig 2019-01-27 08:31:33.269997397 +0000 2 | +++ ./apps/configure 2019-01-27 08:42:21.156659353 +0000 3 | @@ -25,9 +25,9 @@ 4 | 5 | #---------------------------------------------------------------- 6 | echo "CCFLAGS = -fPIC \\" >Make.ccflags 7 | -echo "-DUNIX -O2 -DNDEBUG -I. -I../include -I../../include -W" >>Make.ccflags 8 | +echo "-DUNIX -O2 -DNDEBUG \$(CPPFLAGS) -I. -I../include -I../../include -W" >>Make.ccflags 9 | 10 | -echo "LIBS = \\" >Make.libs 11 | +echo "LIBS = -lgnucap \\" >Make.libs 12 | echo "" >>Make.libs 13 | echo "PREFIX = " $prefix >>Make.libs 14 | echo "" >>Make.libs 15 | @@ -35,10 +35,11 @@ 16 | cat <Make.sys 17 | #------------------------------------------------------------------------ 18 | VPATH = .:.. 19 | -CCC = c++ 20 | +CCC = \$(CXX) 21 | TARGET_EXT = .so 22 | 23 | -LDFLAGS = -shared 24 | +LDFLAGS += -shared \ 25 | +-L../../lib/O 26 | 27 | .SUFFIXES: 28 | .SUFFIXES: .o .cc 29 | -------------------------------------------------------------------------------- /packages/gnucap/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/gnucap/gnucap.html 2 | TERMUX_PKG_DESCRIPTION="The Gnu Circuit Analysis Package" 3 | TERMUX_PKG_MAINTAINER="Henrik Grimler @Grimler91" 4 | TERMUX_PKG_LICENSE="GPL-3.0" 5 | TERMUX_PKG_VERSION=20210107 6 | TERMUX_PKG_REVISION=1 7 | TERMUX_PKG_SRCURL=https://gitlab.com/gnucap/gnucap/-/archive/${TERMUX_PKG_VERSION}/gnucap-${TERMUX_PKG_VERSION}.tar.gz 8 | TERMUX_PKG_SHA256=d2c24a66c7e60b379727c9e9487ed1b4a3532646b3f4cc03c6a4305749e3348b 9 | TERMUX_PKG_DEPENDS="libc++, readline" 10 | TERMUX_PKG_BREAKS="gnucap-dev" 11 | TERMUX_PKG_REPLACES="gnucap-dev" 12 | TERMUX_PKG_BUILD_IN_SRC=true 13 | TERMUX_PKG_HOSTBUILD=true 14 | 15 | termux_step_host_build () { 16 | cp -r $TERMUX_PKG_SRCDIR/* . 17 | ./configure 18 | (cd lib && make) 19 | (cd modelgen && make) 20 | } 21 | 22 | termux_step_pre_configure () { 23 | sed -i "s%@TERMUX_PKG_HOSTBUILD_DIR@%$TERMUX_PKG_HOSTBUILD_DIR%g" $TERMUX_PKG_SRCDIR/apps/Make1 24 | } 25 | 26 | termux_step_configure () { 27 | $TERMUX_PKG_SRCDIR/configure --prefix=$TERMUX_PREFIX 28 | } 29 | -------------------------------------------------------------------------------- /packages/gnucap/lib-configure.patch: -------------------------------------------------------------------------------- 1 | --- ./lib/configure.orig 2019-01-24 22:44:34.406570275 +0100 2 | +++ ./lib/configure 2019-01-24 22:46:51.853235913 +0100 3 | @@ -28,7 +28,7 @@ 4 | echo "LIBS = -ldl \\" >Make.libs 5 | 6 | rm -f a.out 7 | -c++ test_readline.cc $CXXFLAGS $CPPFLAGS $LDFLAGS -lreadline 8 | +$CXX test_readline.cc $CXXFLAGS $CPPFLAGS $LDFLAGS -lreadline 9 | if [ -f a.out ] ; then 10 | echo "using readline" 11 | echo "-DHAVE_LIBREADLINE \\" >>Make.ccflags 12 | @@ -46,10 +46,10 @@ 13 | cat <Make.sys 14 | #------------------------------------------------------------------------ 15 | VPATH = .:.. 16 | -CCC = c++ 17 | +CCC = \$(CXX) 18 | TARGET_EXT = .so 19 | 20 | -LDFLAGS = -shared 21 | +LDFLAGS += -shared 22 | 23 | .SUFFIXES: 24 | .SUFFIXES: .o .cc 25 | -------------------------------------------------------------------------------- /packages/gnucap/no_termcap.patch.beforehostbuild: -------------------------------------------------------------------------------- 1 | --- ./lib/configure.orig 2019-01-24 22:42:28.083237847 +0100 2 | +++ ./lib/configure 2019-01-24 22:42:52.323237693 +0100 3 | @@ -28,17 +28,17 @@ 4 | echo "LIBS = -ldl \\" >Make.libs 5 | 6 | rm -f a.out 7 | -c++ test_readline.cc -lreadline -ltermcap 8 | +c++ test_readline.cc $CXXFLAGS $CPPFLAGS $LDFLAGS -lreadline 9 | if [ -f a.out ] ; then 10 | echo "using readline" 11 | echo "-DHAVE_LIBREADLINE \\" >>Make.ccflags 12 | - echo "-lreadline -ltermcap \\" >>Make.libs 13 | + echo "-lreadline \\" >>Make.libs 14 | else 15 | - echo "warning: either libtermcap or libreadline is missing - building without readline" 16 | + echo "warning: libreadline is missing - building without readline" 17 | fi 18 | rm -f a.out 19 | 20 | -echo "-DUNIX -O2 -DNDEBUG -I. -I../include -I../../include -W" >>Make.ccflags 21 | +echo "-DUNIX -O2 -DNDEBUG \$(CPPFLAGS) -I. -I../include -I../../include -W" >>Make.ccflags 22 | echo "" >>Make.libs 23 | echo "PREFIX = " $prefix >>Make.libs 24 | echo "" >>Make.libs 25 | -------------------------------------------------------------------------------- /packages/libfreexl/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=https://www.gaia-gis.it/fossil/freexl 2 | TERMUX_PKG_DESCRIPTION="Library to extract valid data from within an Excel (.xls) spreadsheet" 3 | TERMUX_PKG_LICENSE="GPL-2.0" 4 | TERMUX_PKG_MAINTAINER="@termux" 5 | TERMUX_PKG_VERSION=1.0.6 6 | TERMUX_PKG_SRCURL=https://www.gaia-gis.it/gaia-sins/freexl-${TERMUX_PKG_VERSION}.tar.gz 7 | TERMUX_PKG_SHA256=3de8b57a3d130cb2881ea52d3aa9ce1feedb1b57b7daa4eb37f751404f90fc22 8 | TERMUX_PKG_DEPENDS="libiconv" 9 | -------------------------------------------------------------------------------- /packages/libgeos/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=https://geos.osgeo.org/ 2 | TERMUX_PKG_DESCRIPTION="Geometry Engine, C++ port of the Java Topology Suite" 3 | TERMUX_PKG_LICENSE="LGPL-2.1" 4 | TERMUX_PKG_MAINTAINER="Henrik Grimler @Grimler91" 5 | TERMUX_PKG_VERSION=3.10.1 6 | TERMUX_PKG_SRCURL=https://github.com/libgeos/geos/archive/${TERMUX_PKG_VERSION}.tar.gz 7 | TERMUX_PKG_SHA256=15180d727df60ea2e61ece6273feaa3b2a4554db0a447bf6923054df676c78c0 8 | TERMUX_PKG_DEPENDS="libc++" 9 | TERMUX_PKG_BREAKS="libgeos-dev" 10 | TERMUX_PKG_REPLACES="libgeos-dev" 11 | TERMUX_PKG_FORCE_CMAKE=true 12 | -------------------------------------------------------------------------------- /packages/libhdf5/CMakeLists.patch: -------------------------------------------------------------------------------- 1 | --- ./src/CMakeLists.txt.orig 2020-01-02 11:18:47.474641372 +0100 2 | +++ ./src/CMakeLists.txt 2020-01-02 11:24:43.115018551 +0100 3 | @@ -949,56 +949,14 @@ 4 | ${HDF5_SOURCE_DIR}/bin/batch/${HDF5_BATCH_H5DETECT_SCRIPT}.in.cmake 5 | ${HDF5_BINARY_DIR}/${HDF5_BATCH_H5DETECT_SCRIPT} ESCAPE_QUOTES @ONLY 6 | ) 7 | - add_custom_command ( 8 | - OUTPUT ${HDF5_GENERATED_SOURCE_DIR}/H5Tinit.c 9 | - ${HDF5_GENERATED_SOURCE_DIR}/gen_SRCS.stamp1 10 | - COMMAND ${HDF5_BATCH_CMD} 11 | - ARGS ${HDF5_BINARY_DIR}/${HDF5_BATCH_H5DETECT_SCRIPT} 12 | - COMMAND ${CMAKE_COMMAND} 13 | - ARGS -E echo "Executed batch command to create H5Tinit.c" 14 | - COMMAND ${CMAKE_COMMAND} 15 | - ARGS -E touch ${HDF5_GENERATED_SOURCE_DIR}/gen_SRCS.stamp1 16 | - DEPENDS H5detect 17 | - WORKING_DIRECTORY ${HDF5_GENERATED_SOURCE_DIR} 18 | - ) 19 | add_custom_target (gen_H5Tinit 20 | COMMAND ${CMAKE_COMMAND} -P ${HDF5_SOURCE_DIR}/config/cmake/wait_H5Tinit.cmake 21 | ) 22 | if (BUILD_SHARED_LIBS) 23 | - add_custom_command ( 24 | - OUTPUT ${HDF5_GENERATED_SOURCE_DIR}/shared/H5Tinit.c 25 | - ${HDF5_GENERATED_SOURCE_DIR}/shared/shared_gen_SRCS.stamp1 26 | - COMMAND ${CMAKE_COMMAND} 27 | - ARGS -E copy_if_different "${HDF5_GENERATED_SOURCE_DIR}/H5Tinit.c" "${HDF5_GENERATED_SOURCE_DIR}/shared/H5Tinit.c" 28 | - COMMAND ${CMAKE_COMMAND} 29 | - ARGS -E touch ${HDF5_GENERATED_SOURCE_DIR}/shared/shared_gen_SRCS.stamp1 30 | - DEPENDS gen_H5Tinit ${HDF5_GENERATED_SOURCE_DIR}/H5Tinit_created 31 | - WORKING_DIRECTORY ${HDF5_GENERATED_SOURCE_DIR} 32 | - ) 33 | set_source_files_properties (${HDF5_GENERATED_SOURCE_DIR}/shared/H5Tinit.c PROPERTIES GENERATED TRUE) 34 | endif () 35 | else () 36 | - add_custom_command ( 37 | - OUTPUT ${HDF5_GENERATED_SOURCE_DIR}/H5Tinit.c 38 | - ${HDF5_GENERATED_SOURCE_DIR}/gen_SRCS.stamp1 39 | - COMMAND ${CMAKE_CROSSCOMPILING_EMULATOR} $ 40 | - ARGS ${HDF5_GENERATED_SOURCE_DIR}/H5Tinit.c 41 | - COMMAND ${CMAKE_COMMAND} 42 | - ARGS -E touch ${HDF5_GENERATED_SOURCE_DIR}/gen_SRCS.stamp1 43 | - DEPENDS H5detect 44 | - WORKING_DIRECTORY ${HDF5_GENERATED_SOURCE_DIR} 45 | - ) 46 | if (BUILD_SHARED_LIBS) 47 | - add_custom_command ( 48 | - OUTPUT ${HDF5_GENERATED_SOURCE_DIR}/shared/H5Tinit.c 49 | - ${HDF5_GENERATED_SOURCE_DIR}/shared/shared_gen_SRCS.stamp1 50 | - COMMAND ${CMAKE_COMMAND} 51 | - ARGS -E copy_if_different "${HDF5_GENERATED_SOURCE_DIR}/H5Tinit.c" "${HDF5_GENERATED_SOURCE_DIR}/shared/H5Tinit.c" 52 | - COMMAND ${CMAKE_COMMAND} 53 | - ARGS -E touch ${HDF5_GENERATED_SOURCE_DIR}/shared/shared_gen_SRCS.stamp1 54 | - DEPENDS ${HDF5_GENERATED_SOURCE_DIR}/H5Tinit.c 55 | - WORKING_DIRECTORY ${HDF5_GENERATED_SOURCE_DIR} 56 | - ) 57 | set_source_files_properties (${HDF5_GENERATED_SOURCE_DIR}/shared/H5Tinit.c PROPERTIES GENERATED TRUE) 58 | endif () 59 | endif () 60 | @@ -1034,28 +992,8 @@ 61 | PRIVATE $<$:"-O0"> 62 | ) 63 | 64 | -add_custom_command ( 65 | - OUTPUT ${HDF5_BINARY_DIR}/H5lib_settings.c 66 | - ${HDF5_BINARY_DIR}/gen_SRCS.stamp2 67 | - COMMAND ${CMAKE_CROSSCOMPILING_EMULATOR} $ 68 | - ARGS ${HDF5_BINARY_DIR}/H5lib_settings.c 69 | - COMMAND ${CMAKE_COMMAND} 70 | - ARGS -E touch ${HDF5_GENERATED_SOURCE_DIR}/gen_SRCS.stamp2 71 | - DEPENDS H5make_libsettings 72 | - WORKING_DIRECTORY ${HDF5_BINARY_DIR} 73 | -) 74 | set_source_files_properties (${HDF5_BINARY_DIR}/H5lib_settings.c PROPERTIES GENERATED TRUE) 75 | if (BUILD_SHARED_LIBS) 76 | - add_custom_command ( 77 | - OUTPUT ${HDF5_BINARY_DIR}/shared/H5lib_settings.c 78 | - ${HDF5_BINARY_DIR}/shared/shared_gen_SRCS.stamp2 79 | - COMMAND ${CMAKE_COMMAND} 80 | - ARGS -E copy_if_different "${HDF5_BINARY_DIR}/H5lib_settings.c" "${HDF5_BINARY_DIR}/shared/H5lib_settings.c" 81 | - COMMAND ${CMAKE_COMMAND} 82 | - ARGS -E touch ${HDF5_GENERATED_SOURCE_DIR}/shared/shared_gen_SRCS.stamp2 83 | - DEPENDS ${HDF5_BINARY_DIR}/H5lib_settings.c 84 | - WORKING_DIRECTORY ${HDF5_BINARY_DIR} 85 | - ) 86 | set_source_files_properties (${HDF5_BINARY_DIR}/shared/H5lib_settings.c PROPERTIES GENERATED TRUE) 87 | endif () 88 | 89 | -------------------------------------------------------------------------------- /packages/libhdf5/aarch64/H5lib_settings.c: -------------------------------------------------------------------------------- 1 | /* Generated automatically by H5make_libsettings -- do not edit */ 2 | 3 | 4 | 5 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 6 | * Copyright by The HDF Group. * 7 | * Copyright by the Board of Trustees of the University of Illinois. * 8 | * All rights reserved. * 9 | * * 10 | * This file is part of HDF5. The full HDF5 copyright notice, including * 11 | * terms governing use, modification, and redistribution, is contained in * 12 | * the COPYING file, which can be found at the root of the source code * 13 | * distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases. * 14 | * If you do not have access to either file, you may request a copy from * 15 | * help@hdfgroup.org. * 16 | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 17 | * Created: Apr 20, 2019 18 | * u0_a172@localhost 19 | * 20 | * Purpose: This machine-generated source code contains 21 | * information about the library build configuration 22 | * 23 | * Modifications: 24 | * 25 | * DO NOT MAKE MODIFICATIONS TO THIS FILE! 26 | * It was generated by code in `H5make_libsettings.c'. 27 | * 28 | *------------------------------------------------------------------------- 29 | */ 30 | 31 | char H5libhdf5_settings[]= 32 | " SUMMARY OF THE HDF5 CONFIGURATION\n" 33 | " =================================\n" 34 | "\n" 35 | "General Information:\n" 36 | "-------------------\n" 37 | " HDF5 Version: 1.10.5\n" 38 | " Configured on: 2019-04-20\n" 39 | " Configured by: Unix Makefiles\n" 40 | " Host system: Linux-4.4.111-SoLdieR9312\n" 41 | " Uname information: Linux\n" 42 | " Byte sex: little-endian\n" 43 | " Installation point: /data/data/com.termux/files/usr\n" 44 | "\n" 45 | "Compiling Options:\n" 46 | "------------------\n" 47 | " Build Mode: RelWithDebInfo\n" 48 | " Debugging Symbols: \n" 49 | " Asserts: \n" 50 | " Profiling: \n" 51 | " Optimization Level: \n" 52 | "\n" 53 | "Linking Options:\n" 54 | "----------------\n" 55 | " Libraries: \n" 56 | " Statically Linked Executables: OFF\n" 57 | " LDFLAGS: \n" 58 | " H5_LDFLAGS: \n" 59 | " AM_LDFLAGS: \n" 60 | " Extra libraries: m;dl\n" 61 | " Archiver: /data/data/com.termux/files/usr/bin/ar\n" 62 | " Ranlib: /data/data/com.termux/files/usr/bin/ranlib\n" 63 | "\n" 64 | "Languages:\n" 65 | "----------\n" 66 | " C: yes\n" 67 | " C Compiler: /data/data/com.termux/files/usr/bin/cc 8.0.0\n" 68 | " CPPFLAGS: \n" 69 | " H5_CPPFLAGS: \n" 70 | " AM_CPPFLAGS: \n" 71 | " CFLAGS: -std=c99 \n" 72 | " H5_CFLAGS: \n" 73 | " AM_CFLAGS: \n" 74 | " Shared C Library: YES\n" 75 | " Static C Library: YES\n" 76 | "\n" 77 | " Fortran: OFF\n" 78 | " Fortran Compiler: \n" 79 | " Fortran Flags: \n" 80 | " H5 Fortran Flags: \n" 81 | " AM Fortran Flags: \n" 82 | " Shared Fortran Library: YES\n" 83 | " Static Fortran Library: YES\n" 84 | "\n" 85 | " C++: ON\n" 86 | " C++ Compiler: /data/data/com.termux/files/usr/bin/c++ 8.0.0\n" 87 | " C++ Flags: \n" 88 | " H5 C++ Flags: \n" 89 | " AM C++ Flags: \n" 90 | " Shared C++ Library: YES\n" 91 | " Static C++ Library: YES\n" 92 | "\n" 93 | " JAVA: OFF\n" 94 | " JAVA Compiler: \n" 95 | "\n" 96 | "Features:\n" 97 | "---------\n" 98 | " Parallel HDF5: OFF\n" 99 | "Parallel Filtered Dataset Writes: \n" 100 | " Large Parallel I/O: \n" 101 | " High-level library: ON\n" 102 | " Threadsafety: OFF\n" 103 | " Default API mapping: v110\n" 104 | " With deprecated public symbols: ON\n" 105 | " I/O filters (external): \n" 106 | " MPE: \n" 107 | " Direct VFD: \n" 108 | " dmalloc: \n" 109 | " Packages w/ extra debug output: \n" 110 | " API Tracing: OFF\n" 111 | " Using memory checker: OFF\n" 112 | " Memory allocation sanity checks: OFF\n" 113 | " Function Stack Tracing: OFF\n" 114 | " Strict File Format Checks: OFF\n" 115 | " Optimization Instrumentation: \n" 116 | ; 117 | 118 | -------------------------------------------------------------------------------- /packages/libhdf5/aarch64/TryRunResults_out.cmake: -------------------------------------------------------------------------------- 1 | # This file was generated by CMake because it detected TRY_RUN() commands 2 | # in crosscompiling mode. It will be overwritten by the next CMake run. 3 | # Copy it to a safe location, set the variables to appropriate values 4 | # and use it then to preset the CMake cache (using -C). 5 | 6 | 7 | # TEST_LFS_WORKS_RUN 8 | # indicates whether the executable would have been able to run on its 9 | # target platform. If so, set TEST_LFS_WORKS_RUN to 10 | # the exit code (in many cases 0 for success), otherwise enter "FAILED_TO_RUN". 11 | # TEST_LFS_WORKS_RUN__TRYRUN_OUTPUT 12 | # contains the text the executable would have printed on stdout and stderr. 13 | # If the executable would not have been able to run, set TEST_LFS_WORKS_RUN__TRYRUN_OUTPUT empty. 14 | # Otherwise check if the output is evaluated by the calling CMake code. If so, 15 | # check what the source file would have printed when called with the given arguments. 16 | # The TEST_LFS_WORKS_COMPILE variable holds the build result for this TRY_RUN(). 17 | # 18 | # Source file : /home/builder/.termux-build/libhdf5/src/config/cmake_ext_mod/HDFTests.c 19 | # Executable : /home/builder/.termux-build/libhdf5/build/CMakeFiles/cmTC_0c83a-TEST_LFS_WORKS_RUN 20 | # Run arguments : 21 | # Called from: [3] /home/builder/.termux-build/libhdf5/src/config/cmake_ext_mod/ConfigureChecks.cmake 22 | # [2] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 23 | # [1] /home/builder/.termux-build/libhdf5/src/CMakeLists.txt 24 | 25 | set( TEST_LFS_WORKS_RUN 26 | "0" 27 | CACHE STRING "Result from TRY_RUN" FORCE) 28 | 29 | set( TEST_LFS_WORKS_RUN__TRYRUN_OUTPUT 30 | "" 31 | CACHE STRING "Output from TRY_RUN" FORCE) 32 | 33 | 34 | # H5_PRINTF_LL_TEST_RUN 35 | # indicates whether the executable would have been able to run on its 36 | # target platform. If so, set H5_PRINTF_LL_TEST_RUN to 37 | # the exit code (in many cases 0 for success), otherwise enter "FAILED_TO_RUN". 38 | # H5_PRINTF_LL_TEST_RUN__TRYRUN_OUTPUT 39 | # contains the text the executable would have printed on stdout and stderr. 40 | # If the executable would not have been able to run, set H5_PRINTF_LL_TEST_RUN__TRYRUN_OUTPUT empty. 41 | # Otherwise check if the output is evaluated by the calling CMake code. If so, 42 | # check what the source file would have printed when called with the given arguments. 43 | # The H5_PRINTF_LL_TEST_COMPILE variable holds the build result for this TRY_RUN(). 44 | # 45 | # Source file : /home/builder/.termux-build/libhdf5/src/config/cmake_ext_mod/HDFTests.c 46 | # Executable : /home/builder/.termux-build/libhdf5/build/CMakeFiles/cmTC_0923e-H5_PRINTF_LL_TEST_RUN 47 | # Run arguments : 48 | # Called from: [3] /home/builder/.termux-build/libhdf5/src/config/cmake_ext_mod/ConfigureChecks.cmake 49 | # [2] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 50 | # [1] /home/builder/.termux-build/libhdf5/src/CMakeLists.txt 51 | 52 | set( H5_PRINTF_LL_TEST_RUN 53 | "0" 54 | CACHE STRING "Result from TRY_RUN" FORCE) 55 | 56 | set( H5_PRINTF_LL_TEST_RUN__TRYRUN_OUTPUT 57 | "H5_PRINTF_LL_WIDTH=[l]" 58 | CACHE STRING "Output from TRY_RUN" FORCE) 59 | 60 | 61 | # H5_LDOUBLE_TO_LONG_SPECIAL_RUN 62 | # indicates whether the executable would have been able to run on its 63 | # target platform. If so, set H5_LDOUBLE_TO_LONG_SPECIAL_RUN to 64 | # the exit code (in many cases 0 for success), otherwise enter "FAILED_TO_RUN". 65 | # H5_LDOUBLE_TO_LONG_SPECIAL_RUN__TRYRUN_OUTPUT 66 | # contains the text the executable would have printed on stdout and stderr. 67 | # If the executable would not have been able to run, set H5_LDOUBLE_TO_LONG_SPECIAL_RUN__TRYRUN_OUTPUT empty. 68 | # Otherwise check if the output is evaluated by the calling CMake code. If so, 69 | # check what the source file would have printed when called with the given arguments. 70 | # The H5_LDOUBLE_TO_LONG_SPECIAL_COMPILE variable holds the build result for this TRY_RUN(). 71 | # 72 | # Source file : /home/builder/.termux-build/libhdf5/src/config/cmake/ConversionTests.c 73 | # Executable : /home/builder/.termux-build/libhdf5/build/CMakeFiles/cmTC_b96b8-H5_LDOUBLE_TO_LONG_SPECIAL_RUN 74 | # Run arguments : 75 | # Called from: [3] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 76 | # [2] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 77 | # [1] /home/builder/.termux-build/libhdf5/src/CMakeLists.txt 78 | 79 | set( H5_LDOUBLE_TO_LONG_SPECIAL_RUN 80 | "1" 81 | CACHE STRING "Result from TRY_RUN" FORCE) 82 | 83 | set( H5_LDOUBLE_TO_LONG_SPECIAL_RUN__TRYRUN_OUTPUT 84 | "" 85 | CACHE STRING "Output from TRY_RUN" FORCE) 86 | 87 | 88 | # H5_LONG_TO_LDOUBLE_SPECIAL_RUN 89 | # indicates whether the executable would have been able to run on its 90 | # target platform. If so, set H5_LONG_TO_LDOUBLE_SPECIAL_RUN to 91 | # the exit code (in many cases 0 for success), otherwise enter "FAILED_TO_RUN". 92 | # H5_LONG_TO_LDOUBLE_SPECIAL_RUN__TRYRUN_OUTPUT 93 | # contains the text the executable would have printed on stdout and stderr. 94 | # If the executable would not have been able to run, set H5_LONG_TO_LDOUBLE_SPECIAL_RUN__TRYRUN_OUTPUT empty. 95 | # Otherwise check if the output is evaluated by the calling CMake code. If so, 96 | # check what the source file would have printed when called with the given arguments. 97 | # The H5_LONG_TO_LDOUBLE_SPECIAL_COMPILE variable holds the build result for this TRY_RUN(). 98 | # 99 | # Source file : /home/builder/.termux-build/libhdf5/src/config/cmake/ConversionTests.c 100 | # Executable : /home/builder/.termux-build/libhdf5/build/CMakeFiles/cmTC_f960d-H5_LONG_TO_LDOUBLE_SPECIAL_RUN 101 | # Run arguments : 102 | # Called from: [3] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 103 | # [2] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 104 | # [1] /home/builder/.termux-build/libhdf5/src/CMakeLists.txt 105 | 106 | set( H5_LONG_TO_LDOUBLE_SPECIAL_RUN 107 | "1" 108 | CACHE STRING "Result from TRY_RUN" FORCE) 109 | 110 | set( H5_LONG_TO_LDOUBLE_SPECIAL_RUN__TRYRUN_OUTPUT 111 | "" 112 | CACHE STRING "Output from TRY_RUN" FORCE) 113 | 114 | 115 | # H5_LDOUBLE_TO_LLONG_ACCURATE_RUN 116 | # indicates whether the executable would have been able to run on its 117 | # target platform. If so, set H5_LDOUBLE_TO_LLONG_ACCURATE_RUN to 118 | # the exit code (in many cases 0 for success), otherwise enter "FAILED_TO_RUN". 119 | # H5_LDOUBLE_TO_LLONG_ACCURATE_RUN__TRYRUN_OUTPUT 120 | # contains the text the executable would have printed on stdout and stderr. 121 | # If the executable would not have been able to run, set H5_LDOUBLE_TO_LLONG_ACCURATE_RUN__TRYRUN_OUTPUT empty. 122 | # Otherwise check if the output is evaluated by the calling CMake code. If so, 123 | # check what the source file would have printed when called with the given arguments. 124 | # The H5_LDOUBLE_TO_LLONG_ACCURATE_COMPILE variable holds the build result for this TRY_RUN(). 125 | # 126 | # Source file : /home/builder/.termux-build/libhdf5/src/config/cmake/ConversionTests.c 127 | # Executable : /home/builder/.termux-build/libhdf5/build/CMakeFiles/cmTC_39750-H5_LDOUBLE_TO_LLONG_ACCURATE_RUN 128 | # Run arguments : 129 | # Called from: [3] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 130 | # [2] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 131 | # [1] /home/builder/.termux-build/libhdf5/src/CMakeLists.txt 132 | 133 | set( H5_LDOUBLE_TO_LLONG_ACCURATE_RUN 134 | "0" 135 | CACHE STRING "Result from TRY_RUN" FORCE) 136 | 137 | set( H5_LDOUBLE_TO_LLONG_ACCURATE_RUN__TRYRUN_OUTPUT 138 | "" 139 | CACHE STRING "Output from TRY_RUN" FORCE) 140 | 141 | 142 | # H5_LLONG_TO_LDOUBLE_CORRECT_RUN 143 | # indicates whether the executable would have been able to run on its 144 | # target platform. If so, set H5_LLONG_TO_LDOUBLE_CORRECT_RUN to 145 | # the exit code (in many cases 0 for success), otherwise enter "FAILED_TO_RUN". 146 | # H5_LLONG_TO_LDOUBLE_CORRECT_RUN__TRYRUN_OUTPUT 147 | # contains the text the executable would have printed on stdout and stderr. 148 | # If the executable would not have been able to run, set H5_LLONG_TO_LDOUBLE_CORRECT_RUN__TRYRUN_OUTPUT empty. 149 | # Otherwise check if the output is evaluated by the calling CMake code. If so, 150 | # check what the source file would have printed when called with the given arguments. 151 | # The H5_LLONG_TO_LDOUBLE_CORRECT_COMPILE variable holds the build result for this TRY_RUN(). 152 | # 153 | # Source file : /home/builder/.termux-build/libhdf5/src/config/cmake/ConversionTests.c 154 | # Executable : /home/builder/.termux-build/libhdf5/build/CMakeFiles/cmTC_e6f7f-H5_LLONG_TO_LDOUBLE_CORRECT_RUN 155 | # Run arguments : 156 | # Called from: [3] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 157 | # [2] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 158 | # [1] /home/builder/.termux-build/libhdf5/src/CMakeLists.txt 159 | 160 | set( H5_LLONG_TO_LDOUBLE_CORRECT_RUN 161 | "0" 162 | CACHE STRING "Result from TRY_RUN" FORCE) 163 | 164 | set( H5_LLONG_TO_LDOUBLE_CORRECT_RUN__TRYRUN_OUTPUT 165 | "" 166 | CACHE STRING "Output from TRY_RUN" FORCE) 167 | 168 | 169 | # H5_NO_ALIGNMENT_RESTRICTIONS_RUN 170 | # indicates whether the executable would have been able to run on its 171 | # target platform. If so, set H5_NO_ALIGNMENT_RESTRICTIONS_RUN to 172 | # the exit code (in many cases 0 for success), otherwise enter "FAILED_TO_RUN". 173 | # H5_NO_ALIGNMENT_RESTRICTIONS_RUN__TRYRUN_OUTPUT 174 | # contains the text the executable would have printed on stdout and stderr. 175 | # If the executable would not have been able to run, set H5_NO_ALIGNMENT_RESTRICTIONS_RUN__TRYRUN_OUTPUT empty. 176 | # Otherwise check if the output is evaluated by the calling CMake code. If so, 177 | # check what the source file would have printed when called with the given arguments. 178 | # The H5_NO_ALIGNMENT_RESTRICTIONS_COMPILE variable holds the build result for this TRY_RUN(). 179 | # 180 | # Source file : /home/builder/.termux-build/libhdf5/src/config/cmake/ConversionTests.c 181 | # Executable : /home/builder/.termux-build/libhdf5/build/CMakeFiles/cmTC_178af-H5_NO_ALIGNMENT_RESTRICTIONS_RUN 182 | # Run arguments : 183 | # Called from: [3] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 184 | # [2] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 185 | # [1] /home/builder/.termux-build/libhdf5/src/CMakeLists.txt 186 | 187 | set( H5_NO_ALIGNMENT_RESTRICTIONS_RUN 188 | "0" 189 | CACHE STRING "Result from TRY_RUN" FORCE) 190 | 191 | set( H5_NO_ALIGNMENT_RESTRICTIONS_RUN__TRYRUN_OUTPUT 192 | "" 193 | CACHE STRING "Output from TRY_RUN" FORCE) 194 | 195 | 196 | # H5_DISABLE_SOME_LDOUBLE_CONV_RUN 197 | # indicates whether the executable would have been able to run on its 198 | # target platform. If so, set H5_DISABLE_SOME_LDOUBLE_CONV_RUN to 199 | # the exit code (in many cases 0 for success), otherwise enter "FAILED_TO_RUN". 200 | # H5_DISABLE_SOME_LDOUBLE_CONV_RUN__TRYRUN_OUTPUT 201 | # contains the text the executable would have printed on stdout and stderr. 202 | # If the executable would not have been able to run, set H5_DISABLE_SOME_LDOUBLE_CONV_RUN__TRYRUN_OUTPUT empty. 203 | # Otherwise check if the output is evaluated by the calling CMake code. If so, 204 | # check what the source file would have printed when called with the given arguments. 205 | # The H5_DISABLE_SOME_LDOUBLE_CONV_COMPILE variable holds the build result for this TRY_RUN(). 206 | # 207 | # Source file : /home/builder/.termux-build/libhdf5/src/config/cmake/ConversionTests.c 208 | # Executable : /home/builder/.termux-build/libhdf5/build/CMakeFiles/cmTC_3ff45-H5_DISABLE_SOME_LDOUBLE_CONV_RUN 209 | # Run arguments : 210 | # Called from: [3] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 211 | # [2] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 212 | # [1] /home/builder/.termux-build/libhdf5/src/CMakeLists.txt 213 | 214 | set( H5_DISABLE_SOME_LDOUBLE_CONV_RUN 215 | "1" 216 | CACHE STRING "Result from TRY_RUN" FORCE) 217 | 218 | set( H5_DISABLE_SOME_LDOUBLE_CONV_RUN__TRYRUN_OUTPUT 219 | "" 220 | CACHE STRING "Output from TRY_RUN" FORCE) 221 | 222 | -------------------------------------------------------------------------------- /packages/libhdf5/arm/H5lib_settings.c: -------------------------------------------------------------------------------- 1 | /* Generated automatically by H5make_libsettings -- do not edit */ 2 | 3 | 4 | 5 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 6 | * Copyright by The HDF Group. * 7 | * Copyright by the Board of Trustees of the University of Illinois. * 8 | * All rights reserved. * 9 | * * 10 | * This file is part of HDF5. The full HDF5 copyright notice, including * 11 | * terms governing use, modification, and redistribution, is contained in * 12 | * the COPYING file, which can be found at the root of the source code * 13 | * distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases. * 14 | * If you do not have access to either file, you may request a copy from * 15 | * help@hdfgroup.org. * 16 | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 17 | * Created: Apr 20, 2019 18 | * * 19 | * 20 | * Purpose: This machine-generated source code contains 21 | * information about the library build configuration 22 | * 23 | * Modifications: 24 | * 25 | * DO NOT MAKE MODIFICATIONS TO THIS FILE! 26 | * It was generated by code in `H5make_libsettings.c'. 27 | * 28 | *------------------------------------------------------------------------- 29 | */ 30 | 31 | char H5libhdf5_settings[]= 32 | " SUMMARY OF THE HDF5 CONFIGURATION\n" 33 | " =================================\n" 34 | "\n" 35 | "General Information:\n" 36 | "-------------------\n" 37 | " HDF5 Version: 1.10.5\n" 38 | " Configured on: 2019-04-20\n" 39 | " Configured by: Unix Makefiles\n" 40 | " Host system: Linux-3.4.113-g93bd523\n" 41 | " Uname information: Linux\n" 42 | " Byte sex: little-endian\n" 43 | " Installation point: /data/data/com.termux/files/usr\n" 44 | "\n" 45 | "Compiling Options:\n" 46 | "------------------\n" 47 | " Build Mode: RelWithDebInfo\n" 48 | " Debugging Symbols: \n" 49 | " Asserts: \n" 50 | " Profiling: \n" 51 | " Optimization Level: \n" 52 | "\n" 53 | "Linking Options:\n" 54 | "----------------\n" 55 | " Libraries: \n" 56 | " Statically Linked Executables: OFF\n" 57 | " LDFLAGS: \n" 58 | " H5_LDFLAGS: \n" 59 | " AM_LDFLAGS: \n" 60 | " Extra libraries: m;dl\n" 61 | " Archiver: /data/data/com.termux/files/usr/bin/ar\n" 62 | " Ranlib: /data/data/com.termux/files/usr/bin/ranlib\n" 63 | "\n" 64 | "Languages:\n" 65 | "----------\n" 66 | " C: yes\n" 67 | " C Compiler: /data/data/com.termux/files/usr/bin/cc 8.0.0\n" 68 | " CPPFLAGS: \n" 69 | " H5_CPPFLAGS: \n" 70 | " AM_CPPFLAGS: \n" 71 | " CFLAGS: -std=c99 \n" 72 | " H5_CFLAGS: \n" 73 | " AM_CFLAGS: \n" 74 | " Shared C Library: YES\n" 75 | " Static C Library: YES\n" 76 | "\n" 77 | " Fortran: OFF\n" 78 | " Fortran Compiler: \n" 79 | " Fortran Flags: \n" 80 | " H5 Fortran Flags: \n" 81 | " AM Fortran Flags: \n" 82 | " Shared Fortran Library: YES\n" 83 | " Static Fortran Library: YES\n" 84 | "\n" 85 | " C++: ON\n" 86 | " C++ Compiler: /data/data/com.termux/files/usr/bin/c++ 8.0.0\n" 87 | " C++ Flags: \n" 88 | " H5 C++ Flags: \n" 89 | " AM C++ Flags: \n" 90 | " Shared C++ Library: YES\n" 91 | " Static C++ Library: YES\n" 92 | "\n" 93 | " JAVA: OFF\n" 94 | " JAVA Compiler: \n" 95 | "\n" 96 | "Features:\n" 97 | "---------\n" 98 | " Parallel HDF5: OFF\n" 99 | "Parallel Filtered Dataset Writes: \n" 100 | " Large Parallel I/O: \n" 101 | " High-level library: ON\n" 102 | " Threadsafety: OFF\n" 103 | " Default API mapping: v110\n" 104 | " With deprecated public symbols: ON\n" 105 | " I/O filters (external): \n" 106 | " MPE: \n" 107 | " Direct VFD: \n" 108 | " dmalloc: \n" 109 | " Packages w/ extra debug output: \n" 110 | " API Tracing: OFF\n" 111 | " Using memory checker: OFF\n" 112 | " Memory allocation sanity checks: OFF\n" 113 | " Function Stack Tracing: OFF\n" 114 | " Strict File Format Checks: OFF\n" 115 | " Optimization Instrumentation: \n" 116 | ; 117 | 118 | -------------------------------------------------------------------------------- /packages/libhdf5/arm/TryRunResults_out.cmake: -------------------------------------------------------------------------------- 1 | # This file was generated by CMake because it detected TRY_RUN() commands 2 | # in crosscompiling mode. It will be overwritten by the next CMake run. 3 | # Copy it to a safe location, set the variables to appropriate values 4 | # and use it then to preset the CMake cache (using -C). 5 | 6 | 7 | # TEST_LFS_WORKS_RUN 8 | # indicates whether the executable would have been able to run on its 9 | # target platform. If so, set TEST_LFS_WORKS_RUN to 10 | # the exit code (in many cases 0 for success), otherwise enter "FAILED_TO_RUN". 11 | # TEST_LFS_WORKS_RUN__TRYRUN_OUTPUT 12 | # contains the text the executable would have printed on stdout and stderr. 13 | # If the executable would not have been able to run, set TEST_LFS_WORKS_RUN__TRYRUN_OUTPUT empty. 14 | # Otherwise check if the output is evaluated by the calling CMake code. If so, 15 | # check what the source file would have printed when called with the given arguments. 16 | # The TEST_LFS_WORKS_COMPILE variable holds the build result for this TRY_RUN(). 17 | # 18 | # Source file : /home/builder/.termux-build/libhdf5/src/config/cmake_ext_mod/HDFTests.c 19 | # Executable : /home/builder/.termux-build/libhdf5/build/CMakeFiles/cmTC_0c83a-TEST_LFS_WORKS_RUN 20 | # Run arguments : 21 | # Called from: [3] /home/builder/.termux-build/libhdf5/src/config/cmake_ext_mod/ConfigureChecks.cmake 22 | # [2] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 23 | # [1] /home/builder/.termux-build/libhdf5/src/CMakeLists.txt 24 | 25 | set( TEST_LFS_WORKS_RUN 26 | "1" 27 | CACHE STRING "Result from TRY_RUN" FORCE) 28 | 29 | set( TEST_LFS_WORKS_RUN__TRYRUN_OUTPUT 30 | "" 31 | CACHE STRING "Output from TRY_RUN" FORCE) 32 | 33 | 34 | # H5_PRINTF_LL_TEST_RUN 35 | # indicates whether the executable would have been able to run on its 36 | # target platform. If so, set H5_PRINTF_LL_TEST_RUN to 37 | # the exit code (in many cases 0 for success), otherwise enter "FAILED_TO_RUN". 38 | # H5_PRINTF_LL_TEST_RUN__TRYRUN_OUTPUT 39 | # contains the text the executable would have printed on stdout and stderr. 40 | # If the executable would not have been able to run, set H5_PRINTF_LL_TEST_RUN__TRYRUN_OUTPUT empty. 41 | # Otherwise check if the output is evaluated by the calling CMake code. If so, 42 | # check what the source file would have printed when called with the given arguments. 43 | # The H5_PRINTF_LL_TEST_COMPILE variable holds the build result for this TRY_RUN(). 44 | # 45 | # Source file : /home/builder/.termux-build/libhdf5/src/config/cmake_ext_mod/HDFTests.c 46 | # Executable : /home/builder/.termux-build/libhdf5/build/CMakeFiles/cmTC_0923e-H5_PRINTF_LL_TEST_RUN 47 | # Run arguments : 48 | # Called from: [3] /home/builder/.termux-build/libhdf5/src/config/cmake_ext_mod/ConfigureChecks.cmake 49 | # [2] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 50 | # [1] /home/builder/.termux-build/libhdf5/src/CMakeLists.txt 51 | 52 | set( H5_PRINTF_LL_TEST_RUN 53 | "0" 54 | CACHE STRING "Result from TRY_RUN" FORCE) 55 | 56 | set( H5_PRINTF_LL_TEST_RUN__TRYRUN_OUTPUT 57 | "H5_PRINTF_LL_WIDTH=[l]" 58 | CACHE STRING "Output from TRY_RUN" FORCE) 59 | 60 | 61 | # H5_LDOUBLE_TO_LONG_SPECIAL_RUN 62 | # indicates whether the executable would have been able to run on its 63 | # target platform. If so, set H5_LDOUBLE_TO_LONG_SPECIAL_RUN to 64 | # the exit code (in many cases 0 for success), otherwise enter "FAILED_TO_RUN". 65 | # H5_LDOUBLE_TO_LONG_SPECIAL_RUN__TRYRUN_OUTPUT 66 | # contains the text the executable would have printed on stdout and stderr. 67 | # If the executable would not have been able to run, set H5_LDOUBLE_TO_LONG_SPECIAL_RUN__TRYRUN_OUTPUT empty. 68 | # Otherwise check if the output is evaluated by the calling CMake code. If so, 69 | # check what the source file would have printed when called with the given arguments. 70 | # The H5_LDOUBLE_TO_LONG_SPECIAL_COMPILE variable holds the build result for this TRY_RUN(). 71 | # 72 | # Source file : /home/builder/.termux-build/libhdf5/src/config/cmake/ConversionTests.c 73 | # Executable : /home/builder/.termux-build/libhdf5/build/CMakeFiles/cmTC_b96b8-H5_LDOUBLE_TO_LONG_SPECIAL_RUN 74 | # Run arguments : 75 | # Called from: [3] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 76 | # [2] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 77 | # [1] /home/builder/.termux-build/libhdf5/src/CMakeLists.txt 78 | 79 | set( H5_LDOUBLE_TO_LONG_SPECIAL_RUN 80 | "1" 81 | CACHE STRING "Result from TRY_RUN" FORCE) 82 | 83 | set( H5_LDOUBLE_TO_LONG_SPECIAL_RUN__TRYRUN_OUTPUT 84 | "" 85 | CACHE STRING "Output from TRY_RUN" FORCE) 86 | 87 | 88 | # H5_LONG_TO_LDOUBLE_SPECIAL_RUN 89 | # indicates whether the executable would have been able to run on its 90 | # target platform. If so, set H5_LONG_TO_LDOUBLE_SPECIAL_RUN to 91 | # the exit code (in many cases 0 for success), otherwise enter "FAILED_TO_RUN". 92 | # H5_LONG_TO_LDOUBLE_SPECIAL_RUN__TRYRUN_OUTPUT 93 | # contains the text the executable would have printed on stdout and stderr. 94 | # If the executable would not have been able to run, set H5_LONG_TO_LDOUBLE_SPECIAL_RUN__TRYRUN_OUTPUT empty. 95 | # Otherwise check if the output is evaluated by the calling CMake code. If so, 96 | # check what the source file would have printed when called with the given arguments. 97 | # The H5_LONG_TO_LDOUBLE_SPECIAL_COMPILE variable holds the build result for this TRY_RUN(). 98 | # 99 | # Source file : /home/builder/.termux-build/libhdf5/src/config/cmake/ConversionTests.c 100 | # Executable : /home/builder/.termux-build/libhdf5/build/CMakeFiles/cmTC_f960d-H5_LONG_TO_LDOUBLE_SPECIAL_RUN 101 | # Run arguments : 102 | # Called from: [3] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 103 | # [2] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 104 | # [1] /home/builder/.termux-build/libhdf5/src/CMakeLists.txt 105 | 106 | set( H5_LONG_TO_LDOUBLE_SPECIAL_RUN 107 | "1" 108 | CACHE STRING "Result from TRY_RUN" FORCE) 109 | 110 | set( H5_LONG_TO_LDOUBLE_SPECIAL_RUN__TRYRUN_OUTPUT 111 | "" 112 | CACHE STRING "Output from TRY_RUN" FORCE) 113 | 114 | 115 | # H5_LDOUBLE_TO_LLONG_ACCURATE_RUN 116 | # indicates whether the executable would have been able to run on its 117 | # target platform. If so, set H5_LDOUBLE_TO_LLONG_ACCURATE_RUN to 118 | # the exit code (in many cases 0 for success), otherwise enter "FAILED_TO_RUN". 119 | # H5_LDOUBLE_TO_LLONG_ACCURATE_RUN__TRYRUN_OUTPUT 120 | # contains the text the executable would have printed on stdout and stderr. 121 | # If the executable would not have been able to run, set H5_LDOUBLE_TO_LLONG_ACCURATE_RUN__TRYRUN_OUTPUT empty. 122 | # Otherwise check if the output is evaluated by the calling CMake code. If so, 123 | # check what the source file would have printed when called with the given arguments. 124 | # The H5_LDOUBLE_TO_LLONG_ACCURATE_COMPILE variable holds the build result for this TRY_RUN(). 125 | # 126 | # Source file : /home/builder/.termux-build/libhdf5/src/config/cmake/ConversionTests.c 127 | # Executable : /home/builder/.termux-build/libhdf5/build/CMakeFiles/cmTC_39750-H5_LDOUBLE_TO_LLONG_ACCURATE_RUN 128 | # Run arguments : 129 | # Called from: [3] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 130 | # [2] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 131 | # [1] /home/builder/.termux-build/libhdf5/src/CMakeLists.txt 132 | 133 | set( H5_LDOUBLE_TO_LLONG_ACCURATE_RUN 134 | "0" 135 | CACHE STRING "Result from TRY_RUN" FORCE) 136 | 137 | set( H5_LDOUBLE_TO_LLONG_ACCURATE_RUN__TRYRUN_OUTPUT 138 | "" 139 | CACHE STRING "Output from TRY_RUN" FORCE) 140 | 141 | 142 | # H5_LLONG_TO_LDOUBLE_CORRECT_RUN 143 | # indicates whether the executable would have been able to run on its 144 | # target platform. If so, set H5_LLONG_TO_LDOUBLE_CORRECT_RUN to 145 | # the exit code (in many cases 0 for success), otherwise enter "FAILED_TO_RUN". 146 | # H5_LLONG_TO_LDOUBLE_CORRECT_RUN__TRYRUN_OUTPUT 147 | # contains the text the executable would have printed on stdout and stderr. 148 | # If the executable would not have been able to run, set H5_LLONG_TO_LDOUBLE_CORRECT_RUN__TRYRUN_OUTPUT empty. 149 | # Otherwise check if the output is evaluated by the calling CMake code. If so, 150 | # check what the source file would have printed when called with the given arguments. 151 | # The H5_LLONG_TO_LDOUBLE_CORRECT_COMPILE variable holds the build result for this TRY_RUN(). 152 | # 153 | # Source file : /home/builder/.termux-build/libhdf5/src/config/cmake/ConversionTests.c 154 | # Executable : /home/builder/.termux-build/libhdf5/build/CMakeFiles/cmTC_e6f7f-H5_LLONG_TO_LDOUBLE_CORRECT_RUN 155 | # Run arguments : 156 | # Called from: [3] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 157 | # [2] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 158 | # [1] /home/builder/.termux-build/libhdf5/src/CMakeLists.txt 159 | 160 | set( H5_LLONG_TO_LDOUBLE_CORRECT_RUN 161 | "0" 162 | CACHE STRING "Result from TRY_RUN" FORCE) 163 | 164 | set( H5_LLONG_TO_LDOUBLE_CORRECT_RUN__TRYRUN_OUTPUT 165 | "" 166 | CACHE STRING "Output from TRY_RUN" FORCE) 167 | 168 | 169 | # H5_NO_ALIGNMENT_RESTRICTIONS_RUN 170 | # indicates whether the executable would have been able to run on its 171 | # target platform. If so, set H5_NO_ALIGNMENT_RESTRICTIONS_RUN to 172 | # the exit code (in many cases 0 for success), otherwise enter "FAILED_TO_RUN". 173 | # H5_NO_ALIGNMENT_RESTRICTIONS_RUN__TRYRUN_OUTPUT 174 | # contains the text the executable would have printed on stdout and stderr. 175 | # If the executable would not have been able to run, set H5_NO_ALIGNMENT_RESTRICTIONS_RUN__TRYRUN_OUTPUT empty. 176 | # Otherwise check if the output is evaluated by the calling CMake code. If so, 177 | # check what the source file would have printed when called with the given arguments. 178 | # The H5_NO_ALIGNMENT_RESTRICTIONS_COMPILE variable holds the build result for this TRY_RUN(). 179 | # 180 | # Source file : /home/builder/.termux-build/libhdf5/src/config/cmake/ConversionTests.c 181 | # Executable : /home/builder/.termux-build/libhdf5/build/CMakeFiles/cmTC_178af-H5_NO_ALIGNMENT_RESTRICTIONS_RUN 182 | # Run arguments : 183 | # Called from: [3] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 184 | # [2] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 185 | # [1] /home/builder/.termux-build/libhdf5/src/CMakeLists.txt 186 | 187 | set( H5_NO_ALIGNMENT_RESTRICTIONS_RUN 188 | "0" 189 | CACHE STRING "Result from TRY_RUN" FORCE) 190 | 191 | set( H5_NO_ALIGNMENT_RESTRICTIONS_RUN__TRYRUN_OUTPUT 192 | "" 193 | CACHE STRING "Output from TRY_RUN" FORCE) 194 | 195 | 196 | # H5_DISABLE_SOME_LDOUBLE_CONV_RUN 197 | # indicates whether the executable would have been able to run on its 198 | # target platform. If so, set H5_DISABLE_SOME_LDOUBLE_CONV_RUN to 199 | # the exit code (in many cases 0 for success), otherwise enter "FAILED_TO_RUN". 200 | # H5_DISABLE_SOME_LDOUBLE_CONV_RUN__TRYRUN_OUTPUT 201 | # contains the text the executable would have printed on stdout and stderr. 202 | # If the executable would not have been able to run, set H5_DISABLE_SOME_LDOUBLE_CONV_RUN__TRYRUN_OUTPUT empty. 203 | # Otherwise check if the output is evaluated by the calling CMake code. If so, 204 | # check what the source file would have printed when called with the given arguments. 205 | # The H5_DISABLE_SOME_LDOUBLE_CONV_COMPILE variable holds the build result for this TRY_RUN(). 206 | # 207 | # Source file : /home/builder/.termux-build/libhdf5/src/config/cmake/ConversionTests.c 208 | # Executable : /home/builder/.termux-build/libhdf5/build/CMakeFiles/cmTC_3ff45-H5_DISABLE_SOME_LDOUBLE_CONV_RUN 209 | # Run arguments : 210 | # Called from: [3] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 211 | # [2] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 212 | # [1] /home/builder/.termux-build/libhdf5/src/CMakeLists.txt 213 | 214 | set( H5_DISABLE_SOME_LDOUBLE_CONV_RUN 215 | "1" 216 | CACHE STRING "Result from TRY_RUN" FORCE) 217 | 218 | set( H5_DISABLE_SOME_LDOUBLE_CONV_RUN__TRYRUN_OUTPUT 219 | "" 220 | CACHE STRING "Output from TRY_RUN" FORCE) 221 | 222 | 223 | -------------------------------------------------------------------------------- /packages/libhdf5/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=https://portal.hdfgroup.org/display/support 2 | TERMUX_PKG_DESCRIPTION="Hierarchical Data Format 5 (HDF5)" 3 | TERMUX_PKG_LICENSE="BSD 3-Clause" 4 | TERMUX_PKG_MAINTAINER="@termux" 5 | TERMUX_PKG_VERSION=1.12.0 6 | TERMUX_PKG_REVISION=4 7 | TERMUX_PKG_SRCURL=https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-${TERMUX_PKG_VERSION:0:4}/hdf5-$TERMUX_PKG_VERSION/src/hdf5-$TERMUX_PKG_VERSION.tar.bz2 8 | TERMUX_PKG_SHA256=97906268640a6e9ce0cde703d5a71c9ac3092eded729591279bf2e3ca9765f61 9 | TERMUX_PKG_DEPENDS="libc++, libzopfli, zlib" 10 | TERMUX_PKG_BREAKS="libhdf5-dev" 11 | TERMUX_PKG_REPLACES="libhdf5-dev" 12 | TERMUX_PKG_FORCE_CMAKE=true 13 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" 14 | -DHDF5_ENABLE_Z_LIB_SUPPORT=on 15 | -C$TERMUX_PKG_BUILDER_DIR/$TERMUX_ARCH/TryRunResults_out.cmake 16 | " 17 | 18 | termux_step_pre_configure () { 19 | cp $TERMUX_PKG_BUILDER_DIR/$TERMUX_ARCH/{H5Tinit.c,H5lib_settings.c} $TERMUX_PKG_BUILDDIR/ 20 | mkdir -p $TERMUX_PKG_BUILDDIR/shared/ 21 | cp $TERMUX_PKG_BUILDER_DIR/$TERMUX_ARCH/{H5Tinit.c,H5lib_settings.c} $TERMUX_PKG_BUILDDIR/shared/ 22 | touch $TERMUX_PKG_BUILDDIR/gen_SRCS.stamp1 $TERMUX_PKG_BUILDDIR/gen_SRCS.stamp2 23 | touch $TERMUX_PKG_BUILDDIR/shared/shared_gen_SRCS.stamp1 $TERMUX_PKG_BUILDDIR/shared/shared_gen_SRCS.stamp2 24 | } 25 | 26 | termux_step_post_configure () { 27 | cp $TERMUX_PKG_BUILDER_DIR/$TERMUX_ARCH/{H5Tinit.c,H5lib_settings.c} $TERMUX_PKG_BUILDDIR/shared/ 28 | } 29 | -------------------------------------------------------------------------------- /packages/libhdf5/i686/H5lib_settings.c: -------------------------------------------------------------------------------- 1 | /* Generated automatically by H5make_libsettings -- do not edit */ 2 | 3 | 4 | 5 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 6 | * Copyright by The HDF Group. * 7 | * Copyright by the Board of Trustees of the University of Illinois. * 8 | * All rights reserved. * 9 | * * 10 | * This file is part of HDF5. The full HDF5 copyright notice, including * 11 | * terms governing use, modification, and redistribution, is contained in * 12 | * the COPYING file, which can be found at the root of the source code * 13 | * distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases. * 14 | * If you do not have access to either file, you may request a copy from * 15 | * help@hdfgroup.org. * 16 | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 17 | * Created: Apr 20, 2019 18 | * * 19 | * 20 | * Purpose: This machine-generated source code contains 21 | * information about the library build configuration 22 | * 23 | * Modifications: 24 | * 25 | * DO NOT MAKE MODIFICATIONS TO THIS FILE! 26 | * It was generated by code in `H5make_libsettings.c'. 27 | * 28 | *------------------------------------------------------------------------- 29 | */ 30 | 31 | char H5libhdf5_settings[]= 32 | " SUMMARY OF THE HDF5 CONFIGURATION\n" 33 | " =================================\n" 34 | "\n" 35 | "General Information:\n" 36 | "-------------------\n" 37 | " HDF5 Version: 1.10.5\n" 38 | " Configured on: 2019-04-20\n" 39 | " Configured by: Unix Makefiles\n" 40 | " Host system: Linux-4.9.95-android-x86-gd25a822a6c78\n" 41 | " Uname information: Linux\n" 42 | " Byte sex: little-endian\n" 43 | " Installation point: /data/data/com.termux/files/usr\n" 44 | "\n" 45 | "Compiling Options:\n" 46 | "------------------\n" 47 | " Build Mode: RelWithDebInfo\n" 48 | " Debugging Symbols: \n" 49 | " Asserts: \n" 50 | " Profiling: \n" 51 | " Optimization Level: \n" 52 | "\n" 53 | "Linking Options:\n" 54 | "----------------\n" 55 | " Libraries: \n" 56 | " Statically Linked Executables: OFF\n" 57 | " LDFLAGS: \n" 58 | " H5_LDFLAGS: \n" 59 | " AM_LDFLAGS: \n" 60 | " Extra libraries: m;dl\n" 61 | " Archiver: /data/data/com.termux/files/usr/bin/ar\n" 62 | " Ranlib: /data/data/com.termux/files/usr/bin/ranlib\n" 63 | "\n" 64 | "Languages:\n" 65 | "----------\n" 66 | " C: yes\n" 67 | " C Compiler: /data/data/com.termux/files/usr/bin/cc 7.0.0\n" 68 | " CPPFLAGS: \n" 69 | " H5_CPPFLAGS: \n" 70 | " AM_CPPFLAGS: \n" 71 | " CFLAGS: -std=c99 \n" 72 | " H5_CFLAGS: \n" 73 | " AM_CFLAGS: \n" 74 | " Shared C Library: YES\n" 75 | " Static C Library: YES\n" 76 | "\n" 77 | " Fortran: OFF\n" 78 | " Fortran Compiler: \n" 79 | " Fortran Flags: \n" 80 | " H5 Fortran Flags: \n" 81 | " AM Fortran Flags: \n" 82 | " Shared Fortran Library: YES\n" 83 | " Static Fortran Library: YES\n" 84 | "\n" 85 | " C++: ON\n" 86 | " C++ Compiler: /data/data/com.termux/files/usr/bin/c++ 7.0.0\n" 87 | " C++ Flags: \n" 88 | " H5 C++ Flags: \n" 89 | " AM C++ Flags: \n" 90 | " Shared C++ Library: YES\n" 91 | " Static C++ Library: YES\n" 92 | "\n" 93 | " JAVA: OFF\n" 94 | " JAVA Compiler: \n" 95 | "\n" 96 | "Features:\n" 97 | "---------\n" 98 | " Parallel HDF5: OFF\n" 99 | "Parallel Filtered Dataset Writes: \n" 100 | " Large Parallel I/O: \n" 101 | " High-level library: ON\n" 102 | " Threadsafety: OFF\n" 103 | " Default API mapping: v110\n" 104 | " With deprecated public symbols: ON\n" 105 | " I/O filters (external): \n" 106 | " MPE: \n" 107 | " Direct VFD: \n" 108 | " dmalloc: \n" 109 | " Packages w/ extra debug output: \n" 110 | " API Tracing: OFF\n" 111 | " Using memory checker: OFF\n" 112 | " Memory allocation sanity checks: OFF\n" 113 | " Function Stack Tracing: OFF\n" 114 | " Strict File Format Checks: OFF\n" 115 | " Optimization Instrumentation: \n" 116 | ; 117 | 118 | -------------------------------------------------------------------------------- /packages/libhdf5/i686/TryRunResults_out.cmake: -------------------------------------------------------------------------------- 1 | # This file was generated by CMake because it detected TRY_RUN() commands 2 | # in crosscompiling mode. It will be overwritten by the next CMake run. 3 | # Copy it to a safe location, set the variables to appropriate values 4 | # and use it then to preset the CMake cache (using -C). 5 | 6 | 7 | # TEST_LFS_WORKS_RUN 8 | # indicates whether the executable would have been able to run on its 9 | # target platform. If so, set TEST_LFS_WORKS_RUN to 10 | # the exit code (in many cases 0 for success), otherwise enter "FAILED_TO_RUN". 11 | # TEST_LFS_WORKS_RUN__TRYRUN_OUTPUT 12 | # contains the text the executable would have printed on stdout and stderr. 13 | # If the executable would not have been able to run, set TEST_LFS_WORKS_RUN__TRYRUN_OUTPUT empty. 14 | # Otherwise check if the output is evaluated by the calling CMake code. If so, 15 | # check what the source file would have printed when called with the given arguments. 16 | # The TEST_LFS_WORKS_COMPILE variable holds the build result for this TRY_RUN(). 17 | # 18 | # Source file : /home/builder/.termux-build/libhdf5/src/config/cmake_ext_mod/HDFTests.c 19 | # Executable : /home/builder/.termux-build/libhdf5/build/CMakeFiles/cmTC_0c83a-TEST_LFS_WORKS_RUN 20 | # Run arguments : 21 | # Called from: [3] /home/builder/.termux-build/libhdf5/src/config/cmake_ext_mod/ConfigureChecks.cmake 22 | # [2] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 23 | # [1] /home/builder/.termux-build/libhdf5/src/CMakeLists.txt 24 | 25 | set( TEST_LFS_WORKS_RUN 26 | "1" 27 | CACHE STRING "Result from TRY_RUN" FORCE) 28 | 29 | set( TEST_LFS_WORKS_RUN__TRYRUN_OUTPUT 30 | "" 31 | CACHE STRING "Output from TRY_RUN" FORCE) 32 | 33 | 34 | # H5_PRINTF_LL_TEST_RUN 35 | # indicates whether the executable would have been able to run on its 36 | # target platform. If so, set H5_PRINTF_LL_TEST_RUN to 37 | # the exit code (in many cases 0 for success), otherwise enter "FAILED_TO_RUN". 38 | # H5_PRINTF_LL_TEST_RUN__TRYRUN_OUTPUT 39 | # contains the text the executable would have printed on stdout and stderr. 40 | # If the executable would not have been able to run, set H5_PRINTF_LL_TEST_RUN__TRYRUN_OUTPUT empty. 41 | # Otherwise check if the output is evaluated by the calling CMake code. If so, 42 | # check what the source file would have printed when called with the given arguments. 43 | # The H5_PRINTF_LL_TEST_COMPILE variable holds the build result for this TRY_RUN(). 44 | # 45 | # Source file : /home/builder/.termux-build/libhdf5/src/config/cmake_ext_mod/HDFTests.c 46 | # Executable : /home/builder/.termux-build/libhdf5/build/CMakeFiles/cmTC_0923e-H5_PRINTF_LL_TEST_RUN 47 | # Run arguments : 48 | # Called from: [3] /home/builder/.termux-build/libhdf5/src/config/cmake_ext_mod/ConfigureChecks.cmake 49 | # [2] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 50 | # [1] /home/builder/.termux-build/libhdf5/src/CMakeLists.txt 51 | 52 | set( H5_PRINTF_LL_TEST_RUN 53 | "0" 54 | CACHE STRING "Result from TRY_RUN" FORCE) 55 | 56 | set( H5_PRINTF_LL_TEST_RUN__TRYRUN_OUTPUT 57 | "H5_PRINTF_LL_WIDTH=[l]" 58 | CACHE STRING "Output from TRY_RUN" FORCE) 59 | 60 | 61 | # H5_LDOUBLE_TO_LONG_SPECIAL_RUN 62 | # indicates whether the executable would have been able to run on its 63 | # target platform. If so, set H5_LDOUBLE_TO_LONG_SPECIAL_RUN to 64 | # the exit code (in many cases 0 for success), otherwise enter "FAILED_TO_RUN". 65 | # H5_LDOUBLE_TO_LONG_SPECIAL_RUN__TRYRUN_OUTPUT 66 | # contains the text the executable would have printed on stdout and stderr. 67 | # If the executable would not have been able to run, set H5_LDOUBLE_TO_LONG_SPECIAL_RUN__TRYRUN_OUTPUT empty. 68 | # Otherwise check if the output is evaluated by the calling CMake code. If so, 69 | # check what the source file would have printed when called with the given arguments. 70 | # The H5_LDOUBLE_TO_LONG_SPECIAL_COMPILE variable holds the build result for this TRY_RUN(). 71 | # 72 | # Source file : /home/builder/.termux-build/libhdf5/src/config/cmake/ConversionTests.c 73 | # Executable : /home/builder/.termux-build/libhdf5/build/CMakeFiles/cmTC_b96b8-H5_LDOUBLE_TO_LONG_SPECIAL_RUN 74 | # Run arguments : 75 | # Called from: [3] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 76 | # [2] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 77 | # [1] /home/builder/.termux-build/libhdf5/src/CMakeLists.txt 78 | 79 | set( H5_LDOUBLE_TO_LONG_SPECIAL_RUN 80 | "1" 81 | CACHE STRING "Result from TRY_RUN" FORCE) 82 | 83 | set( H5_LDOUBLE_TO_LONG_SPECIAL_RUN__TRYRUN_OUTPUT 84 | "" 85 | CACHE STRING "Output from TRY_RUN" FORCE) 86 | 87 | 88 | # H5_LONG_TO_LDOUBLE_SPECIAL_RUN 89 | # indicates whether the executable would have been able to run on its 90 | # target platform. If so, set H5_LONG_TO_LDOUBLE_SPECIAL_RUN to 91 | # the exit code (in many cases 0 for success), otherwise enter "FAILED_TO_RUN". 92 | # H5_LONG_TO_LDOUBLE_SPECIAL_RUN__TRYRUN_OUTPUT 93 | # contains the text the executable would have printed on stdout and stderr. 94 | # If the executable would not have been able to run, set H5_LONG_TO_LDOUBLE_SPECIAL_RUN__TRYRUN_OUTPUT empty. 95 | # Otherwise check if the output is evaluated by the calling CMake code. If so, 96 | # check what the source file would have printed when called with the given arguments. 97 | # The H5_LONG_TO_LDOUBLE_SPECIAL_COMPILE variable holds the build result for this TRY_RUN(). 98 | # 99 | # Source file : /home/builder/.termux-build/libhdf5/src/config/cmake/ConversionTests.c 100 | # Executable : /home/builder/.termux-build/libhdf5/build/CMakeFiles/cmTC_f960d-H5_LONG_TO_LDOUBLE_SPECIAL_RUN 101 | # Run arguments : 102 | # Called from: [3] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 103 | # [2] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 104 | # [1] /home/builder/.termux-build/libhdf5/src/CMakeLists.txt 105 | 106 | set( H5_LONG_TO_LDOUBLE_SPECIAL_RUN 107 | "1" 108 | CACHE STRING "Result from TRY_RUN" FORCE) 109 | 110 | set( H5_LONG_TO_LDOUBLE_SPECIAL_RUN__TRYRUN_OUTPUT 111 | "" 112 | CACHE STRING "Output from TRY_RUN" FORCE) 113 | 114 | 115 | # H5_LDOUBLE_TO_LLONG_ACCURATE_RUN 116 | # indicates whether the executable would have been able to run on its 117 | # target platform. If so, set H5_LDOUBLE_TO_LLONG_ACCURATE_RUN to 118 | # the exit code (in many cases 0 for success), otherwise enter "FAILED_TO_RUN". 119 | # H5_LDOUBLE_TO_LLONG_ACCURATE_RUN__TRYRUN_OUTPUT 120 | # contains the text the executable would have printed on stdout and stderr. 121 | # If the executable would not have been able to run, set H5_LDOUBLE_TO_LLONG_ACCURATE_RUN__TRYRUN_OUTPUT empty. 122 | # Otherwise check if the output is evaluated by the calling CMake code. If so, 123 | # check what the source file would have printed when called with the given arguments. 124 | # The H5_LDOUBLE_TO_LLONG_ACCURATE_COMPILE variable holds the build result for this TRY_RUN(). 125 | # 126 | # Source file : /home/builder/.termux-build/libhdf5/src/config/cmake/ConversionTests.c 127 | # Executable : /home/builder/.termux-build/libhdf5/build/CMakeFiles/cmTC_39750-H5_LDOUBLE_TO_LLONG_ACCURATE_RUN 128 | # Run arguments : 129 | # Called from: [3] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 130 | # [2] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 131 | # [1] /home/builder/.termux-build/libhdf5/src/CMakeLists.txt 132 | 133 | set( H5_LDOUBLE_TO_LLONG_ACCURATE_RUN 134 | "0" 135 | CACHE STRING "Result from TRY_RUN" FORCE) 136 | 137 | set( H5_LDOUBLE_TO_LLONG_ACCURATE_RUN__TRYRUN_OUTPUT 138 | "" 139 | CACHE STRING "Output from TRY_RUN" FORCE) 140 | 141 | 142 | # H5_LLONG_TO_LDOUBLE_CORRECT_RUN 143 | # indicates whether the executable would have been able to run on its 144 | # target platform. If so, set H5_LLONG_TO_LDOUBLE_CORRECT_RUN to 145 | # the exit code (in many cases 0 for success), otherwise enter "FAILED_TO_RUN". 146 | # H5_LLONG_TO_LDOUBLE_CORRECT_RUN__TRYRUN_OUTPUT 147 | # contains the text the executable would have printed on stdout and stderr. 148 | # If the executable would not have been able to run, set H5_LLONG_TO_LDOUBLE_CORRECT_RUN__TRYRUN_OUTPUT empty. 149 | # Otherwise check if the output is evaluated by the calling CMake code. If so, 150 | # check what the source file would have printed when called with the given arguments. 151 | # The H5_LLONG_TO_LDOUBLE_CORRECT_COMPILE variable holds the build result for this TRY_RUN(). 152 | # 153 | # Source file : /home/builder/.termux-build/libhdf5/src/config/cmake/ConversionTests.c 154 | # Executable : /home/builder/.termux-build/libhdf5/build/CMakeFiles/cmTC_e6f7f-H5_LLONG_TO_LDOUBLE_CORRECT_RUN 155 | # Run arguments : 156 | # Called from: [3] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 157 | # [2] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 158 | # [1] /home/builder/.termux-build/libhdf5/src/CMakeLists.txt 159 | 160 | set( H5_LLONG_TO_LDOUBLE_CORRECT_RUN 161 | "0" 162 | CACHE STRING "Result from TRY_RUN" FORCE) 163 | 164 | set( H5_LLONG_TO_LDOUBLE_CORRECT_RUN__TRYRUN_OUTPUT 165 | "" 166 | CACHE STRING "Output from TRY_RUN" FORCE) 167 | 168 | 169 | # H5_NO_ALIGNMENT_RESTRICTIONS_RUN 170 | # indicates whether the executable would have been able to run on its 171 | # target platform. If so, set H5_NO_ALIGNMENT_RESTRICTIONS_RUN to 172 | # the exit code (in many cases 0 for success), otherwise enter "FAILED_TO_RUN". 173 | # H5_NO_ALIGNMENT_RESTRICTIONS_RUN__TRYRUN_OUTPUT 174 | # contains the text the executable would have printed on stdout and stderr. 175 | # If the executable would not have been able to run, set H5_NO_ALIGNMENT_RESTRICTIONS_RUN__TRYRUN_OUTPUT empty. 176 | # Otherwise check if the output is evaluated by the calling CMake code. If so, 177 | # check what the source file would have printed when called with the given arguments. 178 | # The H5_NO_ALIGNMENT_RESTRICTIONS_COMPILE variable holds the build result for this TRY_RUN(). 179 | # 180 | # Source file : /home/builder/.termux-build/libhdf5/src/config/cmake/ConversionTests.c 181 | # Executable : /home/builder/.termux-build/libhdf5/build/CMakeFiles/cmTC_178af-H5_NO_ALIGNMENT_RESTRICTIONS_RUN 182 | # Run arguments : 183 | # Called from: [3] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 184 | # [2] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 185 | # [1] /home/builder/.termux-build/libhdf5/src/CMakeLists.txt 186 | 187 | set( H5_NO_ALIGNMENT_RESTRICTIONS_RUN 188 | "0" 189 | CACHE STRING "Result from TRY_RUN" FORCE) 190 | 191 | set( H5_NO_ALIGNMENT_RESTRICTIONS_RUN__TRYRUN_OUTPUT 192 | "" 193 | CACHE STRING "Output from TRY_RUN" FORCE) 194 | 195 | 196 | 197 | # H5_DISABLE_SOME_LDOUBLE_CONV_RUN 198 | # indicates whether the executable would have been able to run on its 199 | # target platform. If so, set H5_DISABLE_SOME_LDOUBLE_CONV_RUN to 200 | # the exit code (in many cases 0 for success), otherwise enter "FAILED_TO_RUN". 201 | # H5_DISABLE_SOME_LDOUBLE_CONV_RUN__TRYRUN_OUTPUT 202 | # contains the text the executable would have printed on stdout and stderr. 203 | # If the executable would not have been able to run, set H5_DISABLE_SOME_LDOUBLE_CONV_RUN__TRYRUN_OUTPUT empty. 204 | # Otherwise check if the output is evaluated by the calling CMake code. If so, 205 | # check what the source file would have printed when called with the given arguments. 206 | # The H5_DISABLE_SOME_LDOUBLE_CONV_COMPILE variable holds the build result for this TRY_RUN(). 207 | # 208 | # Source file : /home/builder/.termux-build/libhdf5/src/config/cmake/ConversionTests.c 209 | # Executable : /home/builder/.termux-build/libhdf5/build/CMakeFiles/cmTC_3ff45-H5_DISABLE_SOME_LDOUBLE_CONV_RUN 210 | # Run arguments : 211 | # Called from: [3] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 212 | # [2] /home/builder/.termux-build/libhdf5/src/config/cmake/ConfigureChecks.cmake 213 | # [1] /home/builder/.termux-build/libhdf5/src/CMakeLists.txt 214 | 215 | set( H5_DISABLE_SOME_LDOUBLE_CONV_RUN 216 | "1" 217 | CACHE STRING "Result from TRY_RUN" FORCE) 218 | 219 | set( H5_DISABLE_SOME_LDOUBLE_CONV_RUN__TRYRUN_OUTPUT 220 | "" 221 | CACHE STRING "Output from TRY_RUN" FORCE) 222 | 223 | -------------------------------------------------------------------------------- /packages/libhdf5/x86_64/H5lib_settings.c: -------------------------------------------------------------------------------- 1 | /* Generated automatically by H5make_libsettings -- do not edit */ 2 | 3 | 4 | 5 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 6 | * Copyright by The HDF Group. * 7 | * Copyright by the Board of Trustees of the University of Illinois. * 8 | * All rights reserved. * 9 | * * 10 | * This file is part of HDF5. The full HDF5 copyright notice, including * 11 | * terms governing use, modification, and redistribution, is contained in * 12 | * the COPYING file, which can be found at the root of the source code * 13 | * distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases. * 14 | * If you do not have access to either file, you may request a copy from * 15 | * help@hdfgroup.org. * 16 | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 17 | * Created: Apr 20, 2019 18 | * u0_a70@localhost 19 | * 20 | * Purpose: This machine-generated source code contains 21 | * information about the library build configuration 22 | * 23 | * Modifications: 24 | * 25 | * DO NOT MAKE MODIFICATIONS TO THIS FILE! 26 | * It was generated by code in `H5make_libsettings.c'. 27 | * 28 | *------------------------------------------------------------------------- 29 | */ 30 | 31 | char H5libhdf5_settings[]= 32 | " SUMMARY OF THE HDF5 CONFIGURATION\n" 33 | " =================================\n" 34 | "\n" 35 | "General Information:\n" 36 | "-------------------\n" 37 | " HDF5 Version: 1.10.5\n" 38 | " Configured on: 2019-04-20\n" 39 | " Configured by: Unix Makefiles\n" 40 | " Host system: Linux-4.9.95-android-x86_64-gd25a822a6c78\n" 41 | " Uname information: Linux\n" 42 | " Byte sex: little-endian\n" 43 | " Installation point: /data/data/com.termux/files/usr\n" 44 | "\n" 45 | "Compiling Options:\n" 46 | "------------------\n" 47 | " Build Mode: RelWithDebInfo\n" 48 | " Debugging Symbols: \n" 49 | " Asserts: \n" 50 | " Profiling: \n" 51 | " Optimization Level: \n" 52 | "\n" 53 | "Linking Options:\n" 54 | "----------------\n" 55 | " Libraries: \n" 56 | " Statically Linked Executables: OFF\n" 57 | " LDFLAGS: \n" 58 | " H5_LDFLAGS: \n" 59 | " AM_LDFLAGS: \n" 60 | " Extra libraries: m;dl\n" 61 | " Archiver: /data/data/com.termux/files/usr/bin/ar\n" 62 | " Ranlib: /data/data/com.termux/files/usr/bin/ranlib\n" 63 | "\n" 64 | "Languages:\n" 65 | "----------\n" 66 | " C: yes\n" 67 | " C Compiler: /data/data/com.termux/files/usr/bin/cc 7.0.0\n" 68 | " CPPFLAGS: \n" 69 | " H5_CPPFLAGS: \n" 70 | " AM_CPPFLAGS: \n" 71 | " CFLAGS: -std=c99 \n" 72 | " H5_CFLAGS: \n" 73 | " AM_CFLAGS: \n" 74 | " Shared C Library: YES\n" 75 | " Static C Library: YES\n" 76 | "\n" 77 | " Fortran: OFF\n" 78 | " Fortran Compiler: \n" 79 | " Fortran Flags: \n" 80 | " H5 Fortran Flags: \n" 81 | " AM Fortran Flags: \n" 82 | " Shared Fortran Library: YES\n" 83 | " Static Fortran Library: YES\n" 84 | "\n" 85 | " C++: ON\n" 86 | " C++ Compiler: /data/data/com.termux/files/usr/bin/c++ 7.0.0\n" 87 | " C++ Flags: \n" 88 | " H5 C++ Flags: \n" 89 | " AM C++ Flags: \n" 90 | " Shared C++ Library: YES\n" 91 | " Static C++ Library: YES\n" 92 | "\n" 93 | " JAVA: OFF\n" 94 | " JAVA Compiler: \n" 95 | "\n" 96 | "Features:\n" 97 | "---------\n" 98 | " Parallel HDF5: OFF\n" 99 | "Parallel Filtered Dataset Writes: \n" 100 | " Large Parallel I/O: \n" 101 | " High-level library: ON\n" 102 | " Threadsafety: OFF\n" 103 | " Default API mapping: v110\n" 104 | " With deprecated public symbols: ON\n" 105 | " I/O filters (external): \n" 106 | " MPE: \n" 107 | " Direct VFD: \n" 108 | " dmalloc: \n" 109 | " Packages w/ extra debug output: \n" 110 | " API Tracing: OFF\n" 111 | " Using memory checker: OFF\n" 112 | " Memory allocation sanity checks: OFF\n" 113 | " Function Stack Tracing: OFF\n" 114 | " Strict File Format Checks: OFF\n" 115 | " Optimization Instrumentation: \n" 116 | ; 117 | 118 | -------------------------------------------------------------------------------- /packages/libosmium/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=https://osmcode.org/libosmium/ 2 | TERMUX_PKG_DESCRIPTION="Library for reading from and writing to OSM files in XML and PBF formats" 3 | TERMUX_PKG_LICENSE="BSL-1.0" 4 | TERMUX_PKG_MAINTAINER="@termux" 5 | TERMUX_PKG_VERSION=2.17.0 6 | TERMUX_PKG_SRCURL=https://github.com/osmcode/libosmium/archive/v${TERMUX_PKG_VERSION}.tar.gz 7 | TERMUX_PKG_SHA256=4a7672d7caf4da3bc68619912b298462370c423c697871a0be6273c6686e10d6 8 | TERMUX_PKG_DEPENDS="libprotobuf, libosmpbf, libprotozero, libexpat, zlib, libbz2, boost, gdal, proj, liblz4" 9 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DINSTALL_UTFCPP=ON -DBUILD_EXAMPLES=OFF -DBUILD_DATA_TESTS=OFF" 10 | -------------------------------------------------------------------------------- /packages/libosmpbf/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=https://github.com/openstreetmap/OSM-binary/ 2 | TERMUX_PKG_DESCRIPTION="osmpbf is a Java/C library to read and write OpenStreetMap PBF files" 3 | TERMUX_PKG_LICENSE="MIT" 4 | TERMUX_PKG_MAINTAINER="@termux" 5 | TERMUX_PKG_VERSION=1.5.0 6 | TERMUX_PKG_SRCURL=https://github.com/openstreetmap/OSM-binary/archive/v${TERMUX_PKG_VERSION}.zip 7 | TERMUX_PKG_SHA256=6738a5684bb68e3f890adda1b4116a6e04df9953d96788192052be53921107cd 8 | TERMUX_PKG_DEPENDS="libprotobuf" 9 | 10 | termux_step_pre_configure() { 11 | termux_setup_protobuf 12 | } 13 | -------------------------------------------------------------------------------- /packages/libprotozero/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=https://github.com/mapbox/protozero 2 | TERMUX_PKG_DESCRIPTION="Minimalistic protocol buffer decoder and encoder in C++" 3 | TERMUX_PKG_LICENSE="BSD 2-Clause" 4 | TERMUX_PKG_LICENSE_FILE="LICENSE.md" 5 | TERMUX_PKG_MAINTAINER="@termux" 6 | TERMUX_PKG_VERSION=1.7.0 7 | TERMUX_PKG_SRCURL=https://github.com/mapbox/protozero/archive/v${TERMUX_PKG_VERSION}.zip 8 | TERMUX_PKG_SHA256=b1dc381cdf75bc6531f1fee13c76a72bae432660984b3316f104c74c355766fd 9 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DPYBIND11_FINDPYTHON=OFF" 10 | -------------------------------------------------------------------------------- /packages/libprotozero/disable_tests.patch: -------------------------------------------------------------------------------- 1 | diff --git a/CMakeLists.txt b/CMakeLists.txt 2 | index f9702d6..2b870c1 100644 3 | --- a/CMakeLists.txt 4 | +++ b/CMakeLists.txt 5 | @@ -23,6 +23,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON) 6 | 7 | #----------------------------------------------------------------------------- 8 | 9 | +option(BUILD_TESTING "Build the tests" ON) 10 | option(WERROR "Add -Werror flag to build (turns warnings into errors)" ON) 11 | 12 | if(MSVC) 13 | @@ -71,7 +72,9 @@ if(CLANG_TIDY) 14 | ${CMAKE_SOURCE_DIR}/test/unit/*.cpp 15 | ${CMAKE_SOURCE_DIR}/tools/*.cpp 16 | ) 17 | - add_dependencies(clang-tidy writer_tests) 18 | + if(BUILD_TESTING) 19 | + add_dependencies(clang-tidy writer_tests) 20 | + endif() 21 | else() 22 | message(STATUS "Looking for clang-tidy - not found") 23 | message(STATUS " Build target 'clang-tidy' will not be available.") 24 | @@ -140,7 +143,8 @@ add_subdirectory(doc) 25 | 26 | add_subdirectory(tools) 27 | 28 | -add_subdirectory(test) 29 | - 30 | +if(BUILD_TESTING) 31 | + add_subdirectory(test) 32 | +endif() 33 | 34 | #----------------------------------------------------------------------------- 35 | -------------------------------------------------------------------------------- /packages/libprotozero/tests_log.patch: -------------------------------------------------------------------------------- 1 | diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt 2 | index c769123..79d4c87 100644 3 | --- a/test/CMakeLists.txt 4 | +++ b/test/CMakeLists.txt 5 | @@ -56,6 +56,7 @@ set(TEST_DIRS alignment 6 | string(REGEX REPLACE "([^;]+)" "t/\\1/reader_test_cases.cpp" _test_sources "${TEST_DIRS}") 7 | 8 | add_executable(reader_tests reader_tests.cpp ${_test_sources}) 9 | +target_link_libraries(reader_tests log) 10 | 11 | add_test(NAME reader_tests COMMAND reader_tests) 12 | 13 | @@ -98,7 +99,7 @@ if(PROTOBUF_FOUND) 14 | 15 | add_executable(writer_tests writer_tests.cpp ${SOURCES} ${PROTO_SRCS} ${PROTO_HDRS}) 16 | 17 | - target_link_libraries(writer_tests ${PROTOBUF_LITE_LIBRARY}) 18 | + target_link_libraries(writer_tests ${PROTOBUF_LITE_LIBRARY} log) 19 | 20 | if(NOT MSVC) 21 | set_target_properties(writer_tests PROPERTIES COMPILE_FLAGS "-pthread") 22 | diff --git a/test/unit/CMakeLists.txt b/test/unit/CMakeLists.txt 23 | index 0d1d75a..e91dfbf 100644 24 | --- a/test/unit/CMakeLists.txt 25 | +++ b/test/unit/CMakeLists.txt 26 | @@ -18,6 +18,7 @@ set(UNIT_TESTS data_view 27 | string(REGEX REPLACE "([^;]+)" "test_\\1.cpp" _test_sources "${UNIT_TESTS}") 28 | 29 | add_executable(unit_tests main.cpp ${_test_sources}) 30 | +target_link_libraries(unit_tests log) 31 | 32 | add_test(NAME unit_tests COMMAND unit_tests) 33 | 34 | -------------------------------------------------------------------------------- /packages/librttopo/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=https://git.osgeo.org/gitea/rttopo/librttopo 2 | TERMUX_PKG_DESCRIPTION="The RT Topology Library exposes an API to create and manage standard topologies" 3 | TERMUX_PKG_LICENSE="GPL-2.0" 4 | TERMUX_PKG_MAINTAINER="@termux" 5 | TERMUX_PKG_VERSION=1.1.0 6 | TERMUX_PKG_SRCURL=https://git.osgeo.org/gitea/rttopo/librttopo/archive/librttopo-${TERMUX_PKG_VERSION}.tar.gz 7 | TERMUX_PKG_SHA256=2e2fcabb48193a712a6c76ac9a9be2a53f82e32f91a2bc834d9f1b4fa9cd879f 8 | TERMUX_PKG_DEPENDS="libgeos, proj" 9 | 10 | termux_step_pre_configure() { 11 | ./autogen.sh 12 | } 13 | -------------------------------------------------------------------------------- /packages/libspatialite/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=https://www.gaia-gis.it/fossil/libspatialite 2 | TERMUX_PKG_DESCRIPTION="SQLite extension to support spatial data types and operations" 3 | TERMUX_PKG_LICENSE="GPL-2.0" 4 | TERMUX_PKG_MAINTAINER="@termux" 5 | TERMUX_PKG_VERSION=5.0.1 6 | TERMUX_PKG_SRCURL=https://www.gaia-gis.it/gaia-sins/libspatialite-${TERMUX_PKG_VERSION}.tar.gz 7 | TERMUX_PKG_SHA256=eecbc94311c78012d059ebc0fae86ea5ef6eecb13303e6e82b3753c1b3409e98 8 | TERMUX_PKG_DEPENDS="libgeos, proj, libfreexl, libsqlite, libxml2, librttopo" 9 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-minizip" 10 | # Can't find generated config file spatialite/gaiaconfig.h 11 | TERMUX_PKG_BUILD_IN_SRC=true 12 | 13 | termux_step_pre_configure() { 14 | export LDFLAGS+=" -llog" 15 | } 16 | -------------------------------------------------------------------------------- /packages/libspatialite/src-Makefile.in.patch: -------------------------------------------------------------------------------- 1 | --- ../Makefile.in.orig 2021-02-16 06:59:25.596423632 +0000 2 | +++ ./src/Makefile.in 2021-02-16 06:59:45.903064002 +0000 3 | @@ -90,10 +90,10 @@ 4 | host_triplet = @host@ 5 | @MINGW_TRUE@am__append_1 = -lm 6 | @ANDROID_TRUE@@MINGW_FALSE@am__append_2 = -ldl -lm 7 | -@ANDROID_FALSE@@MINGW_FALSE@am__append_3 = -lpthread -ldl -lm 8 | +@ANDROID_FALSE@@MINGW_FALSE@am__append_3 = -ldl -lm 9 | @MINGW_TRUE@am__append_4 = -lm 10 | @ANDROID_TRUE@@MINGW_FALSE@am__append_5 = -ldl -lm 11 | -@ANDROID_FALSE@@MINGW_FALSE@am__append_6 = -lpthread -ldl -lm 12 | +@ANDROID_FALSE@@MINGW_FALSE@am__append_6 = -ldl -lm 13 | subdir = src 14 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 15 | am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \ 16 | -------------------------------------------------------------------------------- /packages/mapserver/LICENSE.patch: -------------------------------------------------------------------------------- 1 | Extracted from README.rst 2 | --- /dev/null 2020-07-12 08:42:35.071383160 +0200 3 | +++ ./LICENSE 2020-07-12 10:25:48.101336557 +0200 4 | @@ -0,0 +1,20 @@ 5 | +Copyright (c) 2008-2020 Open Source Geospatial Foundation. 6 | +Copyright (c) 1996-2008 Regents of the University of Minnesota. 7 | + 8 | +Permission is hereby granted, free of charge, to any person obtaining a copy 9 | +of this software and associated documentation files (the "Software"), to deal 10 | +in the Software without restriction, including without limitation the rights 11 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | +copies of the Software, and to permit persons to whom the Software is furnished 13 | +to do so, subject to the following conditions: 14 | + 15 | +The above copyright notice and this permission notice shall be included in all 16 | +copies of this Software or works derived from this Software. 17 | + 18 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 24 | +SOFTWARE. 25 | -------------------------------------------------------------------------------- /packages/mapserver/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=https://mapserver.org/ 2 | TERMUX_PKG_DESCRIPTION="MapServer is CGI-based platform for publishing spatial data and interactive mapping applications to the web" 3 | TERMUX_PKG_MAINTAINER="Bjoern Schilberg @BjoernSchilberg" 4 | TERMUX_PKG_LICENSE="MIT" 5 | TERMUX_PKG_VERSION=7.6.4 6 | TERMUX_PKG_SRCURL=https://download.osgeo.org/mapserver/mapserver-${TERMUX_PKG_VERSION}.tar.gz 7 | TERMUX_PKG_SHA256=b46c884bc42bd49873806a05325872e4418fc34e97824d4e13d398e86ea474ac 8 | TERMUX_PKG_DEPENDS="libc++, libiconv, freetype, libcurl, libcairo, libxml2, openjpeg, proj, gdal, libprotobuf-c" 9 | TERMUX_PKG_BREAKS="mapserver-dev" 10 | TERMUX_PKG_REPLACES="mapserver-dev" 11 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" 12 | -DWITH_GDAL=ON 13 | -DWITH_GEOS=ON 14 | -DWITH_OGR=ON 15 | -DWITH_PROJ=ON 16 | -DWITH_POSTGIS=OFF 17 | -DWITH_KML=ON 18 | -DWITH_WCS=ON 19 | -DWITH_SOS=ON 20 | -DWITH_WMS=ON 21 | -DWITH_CLIENT_WMS=ON 22 | -DWITH_WFS=ON 23 | -DWITH_CLIENT_WFS=ON 24 | -DWITH_THREAD_SAFETY=OFF 25 | -DWITH_FCGI=OFF 26 | -DWITH_CAIRO=ON 27 | -DWITH_CURL=ON 28 | -DWITH_MYSQL=OFF 29 | -DWITH_FRIBIDI=OFF 30 | -DWITH_HARFBUZZ=OFF 31 | -DWITH_GIF=OFF 32 | -DWITH_EXEMPI=OFF 33 | " 34 | -------------------------------------------------------------------------------- /packages/netcdf-c/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=https://www.unidata.ucar.edu/software/netcdf/ 2 | TERMUX_PKG_DESCRIPTION="NetCDF is a set of software libraries and self-describing, machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data" 3 | TERMUX_PKG_LICENSE="BSD 3-Clause" 4 | TERMUX_PKG_MAINTAINER="Henrik Grimler @Grimler91" 5 | TERMUX_PKG_VERSION=4.8.0 6 | TERMUX_PKG_SHA256=aff58f02b1c3e91dc68f989746f652fe51ff39e6270764e484920cb8db5ad092 7 | TERMUX_PKG_SRCURL=https://github.com/Unidata/netcdf-c/archive/v${TERMUX_PKG_VERSION}.tar.gz 8 | TERMUX_PKG_DEPENDS="libcurl, openssl, libnghttp2" 9 | TERMUX_PKG_BREAKS="netcdf-c-dev" 10 | TERMUX_PKG_REPLACES="netcdf-c-dev" 11 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-hdf5" 12 | TERMUX_PKG_BUILD_IN_SRC=true 13 | -------------------------------------------------------------------------------- /packages/netcdf-c/libhdf5-hdf5debug.c.patch: -------------------------------------------------------------------------------- 1 | --- ../hdf5debug.c.orig 2020-04-04 12:36:38.890268947 +0200 2 | +++ ./libhdf5/hdf5debug.c 2020-04-04 12:36:57.386896660 +0200 3 | @@ -5,7 +5,7 @@ 4 | #include "config.h" 5 | #include 6 | #include 7 | -#if !defined _WIN32 && !defined __CYGWIN__ 8 | +#if !defined _WIN32 && !defined __CYGWIN__ && !defined __ANDROID__ 9 | #include 10 | #endif 11 | 12 | -------------------------------------------------------------------------------- /packages/openbabel/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=http://openbabel.org/wiki/Main_Page 2 | TERMUX_PKG_DESCRIPTION="Open Babel is a chemical toolbox designed to speak the many languages of chemical data" 3 | TERMUX_PKG_LICENSE="GPL-2.0" 4 | TERMUX_PKG_MAINTAINER="@termux" 5 | TERMUX_PKG_VERSION=3.1.1 6 | TERMUX_PKG_REVISION=3 7 | TERMUX_PKG_SRCURL=https://github.com/openbabel/openbabel/archive/openbabel-${TERMUX_PKG_VERSION//./-}.tar.gz 8 | TERMUX_PKG_SHA256=c97023ac6300d26176c97d4ef39957f06e68848d64f1a04b0b284ccff2744f02 9 | TERMUX_PKG_DEPENDS="libc++, libcairo, libxml2, eigen, boost" 10 | TERMUX_PKG_BREAKS="openbabel-dev" 11 | TERMUX_PKG_REPLACES="openbabel-dev" 12 | # MAEPARSER gives an error related to boost's unit_test_framework during configure 13 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DWITH_MAEPARSER=off -DWITH_COORDGEN=off" 14 | -------------------------------------------------------------------------------- /packages/openfoam/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=https://www.openfoam.com 2 | TERMUX_PKG_DESCRIPTION="OpenFOAM is a CFD software written in C++" 3 | TERMUX_PKG_MAINTAINER="Henrik Grimler @Grimler91" 4 | TERMUX_PKG_LICENSE="GPL-3.0" 5 | TERMUX_PKG_VERSION=2106 6 | TERMUX_PKG_SRCURL=https://develop.openfoam.com/Development/openfoam/-/archive/OpenFOAM-v${TERMUX_PKG_VERSION}/openfoam-OpenFOAM-v${TERMUX_PKG_VERSION}.tar.gz 7 | TERMUX_PKG_SHA256=f8be6743ed4c534a54024a6837a22e3a7392a454e29e1a4655ae6a009064d64a 8 | TERMUX_PKG_DEPENDS="openmpi, flex, boost, cgal, fftw, readline, libc++" 9 | TERMUX_PKG_RM_AFTER_INSTALL="opt/OpenFOAM-v${TERMUX_PKG_VERSION}/build" 10 | TERMUX_PKG_BUILD_IN_SRC=true 11 | TERMUX_PKG_HOSTBUILD=true 12 | 13 | termux_step_host_build() { 14 | ( 15 | cd $TERMUX_PKG_SRCDIR 16 | set +u 17 | source etc/bashrc WM_ARCH_OPTION=32 || true 18 | cd wmake/src 19 | make 20 | source ../../etc/bashrc WM_ARCH_OPTION=64 || true 21 | set -u 22 | make 23 | ) 24 | mkdir -p platforms/tools 25 | mv $TERMUX_PKG_SRCDIR/platforms/tools/linuxGcc platforms/tools/ 26 | mv $TERMUX_PKG_SRCDIR/platforms/tools/linux64Gcc platforms/tools/ 27 | } 28 | 29 | termux_step_pre_configure() { 30 | if [ "$TERMUX_ARCH" == "aarch64" ]; then 31 | ARCH_FOLDER=linuxARM64Clang 32 | TERMUX_COMPILER_PREFIX="aarch64-linux-android" 33 | ARCH=aarch64 34 | elif [ "$TERMUX_ARCH" == "arm" ]; then 35 | ARCH_FOLDER=linuxARM7Clang 36 | TERMUX_COMPILER_PREFIX="arm-linux-androideabi" 37 | ARCH=armv7l 38 | elif [ "$TERMUX_ARCH" == "i686" ]; then 39 | ARCH_FOLDER=linuxClang 40 | TERMUX_COMPILER_PREFIX="i686-linux-android" 41 | ARCH=i686 42 | elif [ "$TERMUX_ARCH" == "x86_64" ]; then 43 | ARCH_FOLDER=linux64Clang 44 | TERMUX_COMPILER_PREFIX="x86_64-linux-android" 45 | ARCH=x86_64 46 | fi 47 | sed -i "s%\@TERMUX_COMPILER_PREFIX\@%${TERMUX_COMPILER_PREFIX}%g" "$TERMUX_PKG_SRCDIR/wmake/rules/General/Clang/c" 48 | sed -i "s%\@TERMUX_COMPILER_PREFIX\@%${TERMUX_COMPILER_PREFIX}%g" "$TERMUX_PKG_SRCDIR/wmake/rules/General/Clang/c++" 49 | sed -i "s%\@TERMUX_COMPILER_PREFIX\@%${TERMUX_COMPILER_PREFIX}%g" "$TERMUX_PKG_SRCDIR/wmake/rules/General/general" 50 | 51 | mkdir -p platforms/tools 52 | cp -r $TERMUX_PKG_HOSTBUILD_DIR/platforms/tools/linux64Gcc platforms/tools/${ARCH_FOLDER} 53 | if [ $TERMUX_ARCH_BITS = 32 ]; then 54 | cp -r $TERMUX_PKG_HOSTBUILD_DIR/platforms/tools/linuxGcc platforms/tools/${ARCH_FOLDER} 55 | else 56 | cp -r $TERMUX_PKG_HOSTBUILD_DIR/platforms/tools/linux64Gcc platforms/tools/${ARCH_FOLDER} 57 | fi 58 | } 59 | 60 | termux_step_make() { 61 | # Set ARCH here again so that continued builds work 62 | if [ "$TERMUX_ARCH" == "aarch64" ]; then 63 | ARCH=aarch64 64 | elif [ "$TERMUX_ARCH" == "arm" ]; then 65 | ARCH=armv7l 66 | elif [ "$TERMUX_ARCH" == "i686" ]; then 67 | ARCH=i686 68 | elif [ "$TERMUX_ARCH" == "x86_64" ]; then 69 | ARCH=x86_64 70 | fi 71 | 72 | # Lots and lots of unset env. variables that "set -u" 73 | # complains about, so disable exit on error temporarily 74 | set +u 75 | source "$TERMUX_PKG_SRCDIR"/etc/bashrc || true 76 | set -u 77 | unset LD_LIBRARY_PATH 78 | ./Allwmake 79 | cd wmake/src 80 | make clean 81 | make 82 | } 83 | 84 | termux_step_make_install() { 85 | mkdir -p $TERMUX_PREFIX/opt 86 | cp -r $TERMUX_PKG_SRCDIR $TERMUX_PREFIX/opt/OpenFOAM-v${TERMUX_PKG_VERSION} 87 | } 88 | 89 | termux_step_post_make_install() { 90 | sed -i 's%$ARCH%$(uname -m)%g' $TERMUX_PREFIX/opt/OpenFOAM-v${TERMUX_PKG_VERSION}/etc/config.sh/settings 91 | } 92 | -------------------------------------------------------------------------------- /packages/openfoam/etc-bashrc.patch: -------------------------------------------------------------------------------- 1 | --- ./etc/bashrc.orig 2021-12-01 03:15:49.000000000 +0100 2 | +++ ./etc/bashrc 2021-12-01 03:15:49.000000000 +0100 3 | @@ -68,7 +68,7 @@ 4 | # [WM_COMPILER] - Compiler: 5 | # = Gcc | Clang | Icc | Icx | Cray | Amd | Arm | Pgi | Fujitsu | 6 | # Gcc | Clang 7 | -export WM_COMPILER=Gcc 8 | +export WM_COMPILER=Clang 9 | 10 | # [WM_PRECISION_OPTION] - Floating-point precision: 11 | # = DP | SP | SPDP 12 | @@ -112,8 +112,8 @@ 13 | # -- 14 | projectDir="${BASH_SOURCE:-${ZSH_NAME:+$0}}"; 15 | [ -n "$projectDir" ] && projectDir="$(\cd $(dirname $projectDir)/.. && \pwd -L)" ||\ 16 | -projectDir="$HOME/OpenFOAM/OpenFOAM-$WM_PROJECT_VERSION" 17 | -# projectDir="/opt/openfoam/OpenFOAM-$WM_PROJECT_VERSION" 18 | +# projectDir="$HOME/OpenFOAM/OpenFOAM-$WM_PROJECT_VERSION" 19 | +projectDir="@TERMUX_PREFIX@/opt/OpenFOAM-$WM_PROJECT_VERSION" 20 | # projectDir="/usr/local/OpenFOAM/OpenFOAM-$WM_PROJECT_VERSION" 21 | ################################################################################ 22 | # Or optionally hard-coded (eg, with autoconfig) 23 | @@ -162,7 +162,7 @@ 24 | 25 | # Capture values of old directories to be cleaned from PATH, LD_LIBRARY_PATH 26 | foamOldDirs="$WM_PROJECT_DIR $WM_THIRD_PARTY_DIR \ 27 | - $HOME/$WM_PROJECT/$USER $FOAM_USER_APPBIN $FOAM_USER_LIBBIN \ 28 | + $HOME/$WM_PROJECT/termux $FOAM_USER_APPBIN $FOAM_USER_LIBBIN \ 29 | $WM_PROJECT_SITE $FOAM_SITE_APPBIN $FOAM_SITE_LIBBIN \ 30 | $FOAM_MODULE_APPBIN $FOAM_MODULE_LIBBIN" 31 | 32 | @@ -170,7 +170,7 @@ 33 | export WM_PROJECT_DIR="$projectDir" 34 | 35 | # [WM_PROJECT_USER_DIR] - Location of user files 36 | -export WM_PROJECT_USER_DIR="$HOME/$WM_PROJECT/$USER-$WM_PROJECT_VERSION" 37 | +export WM_PROJECT_USER_DIR="$HOME/$WM_PROJECT/termux-$WM_PROJECT_VERSION" 38 | 39 | # [WM_PROJECT_SITE] - Location of site-specific (group) files 40 | # Default (unset) implies WM_PROJECT_DIR/site 41 | -------------------------------------------------------------------------------- /packages/openfoam/etc-config.sh-CGAL.patch: -------------------------------------------------------------------------------- 1 | --- ./etc/config.sh/CGAL.orig 2020-07-04 12:28:32.082903795 +0200 2 | +++ ./etc/config.sh/CGAL 2020-07-04 12:30:22.704797834 +0200 3 | @@ -43,8 +43,8 @@ 4 | #------------------------------------------------------------------------------ 5 | # USER EDITABLE PART: Changes made here may be lost with the next upgrade 6 | 7 | -boost_version=boost_1_66_0 8 | -cgal_version=CGAL-4.12.2 9 | +boost_version=boost-system 10 | +cgal_version=cgal-system 11 | 12 | export BOOST_ARCH_PATH="$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/$boost_version" 13 | export CGAL_ARCH_PATH="$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/$cgal_version" 14 | -------------------------------------------------------------------------------- /packages/openfoam/etc-config.sh-mpi.patch: -------------------------------------------------------------------------------- 1 | --- ./etc/config.sh/mpi.orig 2021-09-11 07:17:25.881541148 +0000 2 | +++ ./etc/config.sh/mpi 2021-09-11 07:18:36.067863881 +0000 3 | @@ -77,7 +77,7 @@ 4 | _foamAddLibAuto "$MPI_ARCH_PATH" 5 | else 6 | # Slight hack: strip off 'lib' to get prefix directory 7 | - libDir=$(mpicc --showme:link | sed -e 's/.*-L\([^ ]*\).*/\1/') 8 | + libDir="@TERMUX_PREFIX@/lib" 9 | 10 | export MPI_ARCH_PATH="${libDir%/*}" # prefix from libdir 11 | _foamAddLib "$libDir" 12 | -------------------------------------------------------------------------------- /packages/openfoam/etc-config.sh-settings.patch: -------------------------------------------------------------------------------- 1 | --- ../etc-config.sh-settings.orig 2021-11-30 17:36:32.001059127 +0000 2 | +++ ./etc/config.sh/settings 2021-11-30 17:40:00.390512856 +0000 3 | @@ -32,26 +32,42 @@ 4 | Linux) 5 | WM_ARCH=linux 6 | 7 | - case "$(uname -m)" in 8 | + case "$ARCH" in 9 | x86_64) 10 | if [ "$archOption" = 32 ] 11 | then 12 | export WM_ARCH_OPTION=32 # Propagate? 13 | export WM_COMPILER_ARCH=64 # 64-bit compiler, 32-bit target 14 | + export WM_CC='x86_64-linux-android-clang' 15 | + export WM_CXX='x86_64-linux-android-clang++' 16 | + export WM_CFLAGS='-m32 -fPIC' 17 | + export WM_CXXFLAGS='-m32 -fPIC' 18 | else 19 | WM_ARCH=linux64 # 64-bit compiler/target 20 | export WM_COMPILER_LIB_ARCH=64 # Use lib64 21 | + export WM_CC='x86_64-linux-android-clang' 22 | + export WM_CXX='x86_64-linux-android-clang++' 23 | + export WM_CFLAGS='-fPIC' 24 | + export WM_CXXFLAGS='-fPIC' 25 | fi 26 | ;; 27 | 28 | aarch64) 29 | WM_ARCH=linuxARM64 30 | export WM_COMPILER_LIB_ARCH=64 # Use lib64 31 | + export WM_CC='aarch64-linux-android-clang' 32 | + export WM_CXX='aarch64-linux-android-clang++' 33 | + export WM_CFLAGS='-fPIC' 34 | + export WM_CXXFLAGS='-fPIC' 35 | ;; 36 | 37 | armv7l) 38 | WM_ARCH=linuxARM7 39 | export WM_COMPILER_LIB_ARCH=32 # Use lib32 40 | + export WM_CC='arm-linux-androideabi-clang' 41 | + export WM_CXX='arm-linux-androideabi-clang++' 42 | + export WM_CFLAGS='-fPIC' 43 | + export WM_CXXFLAGS='-fPIC' 44 | ;; 45 | 46 | ppc64) 47 | @@ -66,6 +82,10 @@ 48 | 49 | i686) 50 | WM_ARCH=linux 51 | + export WM_CC='i686-linux-android-clang' 52 | + export WM_CXX='i686-linux-android-clang++' 53 | + export WM_CFLAGS='-fPIC' 54 | + export WM_CXXFLAGS='-fPIC' 55 | ;; 56 | 57 | ia64) 58 | -------------------------------------------------------------------------------- /packages/openfoam/etc-config.sh-unset.patch: -------------------------------------------------------------------------------- 1 | --- ./etc/config.sh/unset.orig 2020-07-04 12:31:53.433426922 +0200 2 | +++ ./etc/config.sh/unset 2020-07-04 12:32:27.270319808 +0200 3 | @@ -25,7 +25,7 @@ 4 | 5 | # The old dirs to be cleaned from the environment variables 6 | foamOldDirs="$WM_PROJECT_DIR $WM_THIRD_PARTY_DIR \ 7 | - $HOME/$WM_PROJECT/$USER $FOAM_USER_APPBIN $FOAM_USER_LIBBIN \ 8 | + $HOME/$WM_PROJECT/termux $FOAM_USER_APPBIN $FOAM_USER_LIBBIN \ 9 | $WM_PROJECT_SITE $FOAM_SITE_APPBIN $FOAM_SITE_LIBBIN \ 10 | $ParaView_DIR $ParaView_MESA_DIR" 11 | 12 | -------------------------------------------------------------------------------- /packages/openfoam/src-OSspecific-POSIX-Allwmake.patch: -------------------------------------------------------------------------------- 1 | --- ../OpenFOAM-v1906/src/OSspecific/POSIX/Allwmake 2019-06-26 16:16:55.000000000 +0200 2 | +++ ./src/OSspecific/POSIX/Allwmake 2019-09-05 21:26:32.189096879 +0200 3 | @@ -7,7 +7,7 @@ 4 | unset COMP_FLAGS LINK_FLAGS 5 | 6 | # If is available (Linux) 7 | -if [ -f /usr/include/sys/inotify.h ] 8 | +if [ -f @TERMUX_PREFIX@/include/sys/inotify.h ] 9 | then 10 | echo " found -- enabling inotify for file monitoring." 11 | export COMP_FLAGS="-DFOAM_USE_INOTIFY" 12 | -------------------------------------------------------------------------------- /packages/openfoam/src-OSspecific-POSIX-POSIX.C.patch: -------------------------------------------------------------------------------- 1 | --- ./src/OSspecific/POSIX/POSIX.C.orig 2021-12-01 03:15:49.000000000 +0100 2 | +++ ./src/OSspecific/POSIX/POSIX.C 2021-12-01 03:15:49.000000000 +0100 3 | @@ -1430,7 +1430,7 @@ 4 | // Fill sockaddr_in structure with dest address and port 5 | std::memset(reinterpret_cast(&destAddr), '\0', sizeof(destAddr)); 6 | destAddr.sin_family = AF_INET; 7 | - destAddr.sin_port = htons(ushort(destPort)); 8 | + destAddr.sin_port = htons(u_short(destPort)); 9 | destAddr.sin_addr.s_addr = addr; 10 | 11 | 12 | -------------------------------------------------------------------------------- /packages/openfoam/src-OSspecific-POSIX-printStack.C.patch: -------------------------------------------------------------------------------- 1 | --- ./src/OSspecific/POSIX/printStack/printStack.C.orig 2021-12-01 03:15:50.000000000 +0100 2 | +++ ./src/OSspecific/POSIX/printStack/printStack.C 2021-12-01 03:15:50.000000000 +0100 3 | @@ -33,7 +33,9 @@ 4 | 5 | #include 6 | #include 7 | +#ifndef __ANDROID__ 8 | #include 9 | +#endif 10 | #include 11 | 12 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 13 | @@ -210,6 +212,7 @@ 14 | 15 | void Foam::error::safePrintStack(std::ostream& os) 16 | { 17 | + #ifndef __ANDROID__ 18 | // Get raw stack symbols 19 | void *array[100]; 20 | size_t size = backtrace(array, 100); 21 | @@ -225,11 +228,13 @@ 22 | 23 | os << '#' << label(i) << '\t' << msg << std::endl; 24 | } 25 | + #endif 26 | } 27 | 28 | 29 | void Foam::error::printStack(Ostream& os) 30 | { 31 | + #ifndef __ANDROID__ 32 | // Get raw stack symbols 33 | const size_t CALLSTACK_SIZE = 128; 34 | 35 | @@ -267,6 +272,7 @@ 36 | } 37 | 38 | delete info; 39 | + #endif 40 | } 41 | 42 | 43 | -------------------------------------------------------------------------------- /packages/openfoam/src-OSspecific-POSIX-signals-sigFpe.C.patch: -------------------------------------------------------------------------------- 1 | --- ./src/OSspecific/POSIX/signals/sigFpe.C.orig 2021-12-01 03:15:50.000000000 +0100 2 | +++ ./src/OSspecific/POSIX/signals/sigFpe.C 2021-12-01 03:15:50.000000000 +0100 3 | @@ -36,7 +36,7 @@ 4 | 5 | #include 6 | 7 | -#if defined(__linux__) && defined(__GNUC__) 8 | +#if (defined(__linux__) && defined(__GNUC__)) || defined(__ANDROID__) 9 | #ifndef __USE_GNU 10 | #define __USE_GNU // To use feenableexcept() 11 | #endif 12 | @@ -82,8 +82,11 @@ 13 | #ifdef __linux__ 14 | extern "C" 15 | { 16 | - extern void* __libc_malloc(size_t size); 17 | + extern void* malloc(size_t size); 18 | 19 | + // The override below gives segmentation fault in malloc on arm so skip 20 | + // on android for now. 21 | + #ifndef __ANDROID__ 22 | // Override the GLIBC malloc to support mallocNan 23 | void* malloc(size_t size) 24 | { 25 | @@ -93,16 +96,17 @@ 26 | } 27 | else 28 | { 29 | - return __libc_malloc(size); 30 | + return malloc(size); 31 | } 32 | } 33 | + #endif 34 | } 35 | 36 | 37 | void* Foam::sigFpe::mallocNan(size_t size) 38 | { 39 | // Call the low-level GLIBC malloc function 40 | - void* result = __libc_malloc(size); 41 | + void* result = malloc(size); 42 | 43 | // Initialize to signalling NaN 44 | UList list(reinterpret_cast(result), size/sizeof(scalar)); 45 | @@ -117,7 +121,7 @@ 46 | 47 | void Foam::sigFpe::sigHandler(int) 48 | { 49 | - #if (defined(__linux__) && defined(__GNUC__)) || defined(__APPLE__) 50 | + #if (defined(__linux__) && defined(__GNUC__)) || defined(__APPLE__) || defined(__ANDROID__) 51 | 52 | resetHandler("SIGFPE", SIGFPE); 53 | 54 | @@ -125,7 +129,7 @@ 55 | error::printStack(Perr); 56 | ::raise(SIGFPE); // Throw signal (to old handler) 57 | 58 | - #endif // (__linux__ && __GNUC__) || __APPLE__ 59 | + #endif // (__linux__ && __GNUC__) || __APPLE__ || __ANDROID__ 60 | } 61 | 62 | 63 | -------------------------------------------------------------------------------- /packages/openfoam/src-OpenFOAM-db-IOstreams-IOstreams-Istream.C.patch: -------------------------------------------------------------------------------- 1 | --- ./src/OpenFOAM/db/IOstreams/IOstreams/Istream.C.orig 2021-12-01 03:15:50.000000000 +0100 2 | +++ ./src/OpenFOAM/db/IOstreams/IOstreams/Istream.C 2021-12-01 03:15:50.000000000 +0100 3 | @@ -141,7 +141,8 @@ 4 | << "Expected a '" << token::END_LIST 5 | << "' while reading " << funcName 6 | << ", found " << delimiter.info() 7 | - << " at stream position " << tellg(this) << nl 8 | + << " at stream position " 9 | + << static_cast(tellg(this)) << nl 10 | << exit(FatalIOError); 11 | } 12 | 13 | @@ -182,7 +183,8 @@ 14 | << "' or a '" << token::END_BLOCK 15 | << "' while reading " << funcName 16 | << ", found " << delimiter.info() 17 | - << " at stream position " << tellg(this) << nl 18 | + << " at stream position " 19 | + << static_cast(tellg(this)) << nl 20 | << exit(FatalIOError); 21 | 22 | return '\0'; 23 | -------------------------------------------------------------------------------- /packages/openfoam/src-OpenFOAM-primitives-ints-int64-int64.H.patch32: -------------------------------------------------------------------------------- 1 | --- ../OpenFOAM-v1906/src/OpenFOAM/primitives/ints/int64/int64.H 2019-06-26 16:16:55.000000000 +0200 2 | +++ ./src/OpenFOAM/primitives/ints/int64/int64.H 2019-09-06 13:24:17.447401991 +0200 3 | @@ -194,7 +194,7 @@ 4 | 5 | inline int64_t mag(const int64_t val) 6 | { 7 | - return ::labs(val); 8 | + return ::abs(val); 9 | } 10 | 11 | 12 | -------------------------------------------------------------------------------- /packages/openfoam/wmake-makefiles-general.patch: -------------------------------------------------------------------------------- 1 | --- ../OpenFOAM-v1906/wmake/makefiles/general 2019-06-26 16:16:55.000000000 +0200 2 | +++ ./wmake/makefiles/general 2019-09-01 18:21:57.531631905 +0200 3 | @@ -52,8 +52,8 @@ 4 | LIB_PLATFORMS = $(WM_PROJECT_DIR)/platforms/$(WM_OPTIONS)/lib 5 | OBJECTS_DIR = $(MAKE_DIR)/$(WM_OPTIONS) 6 | 7 | -SYS_INC = 8 | -SYS_LIBS = 9 | +SYS_INC = -I@TERMUX_PREFIX@/include 10 | +SYS_LIBS = -L@TERMUX_PREFIX@/lib 11 | 12 | PROJECT_INC = \ 13 | -I$(LIB_SRC)/$(WM_PROJECT)/lnInclude \ 14 | @@ -61,8 +61,8 @@ 15 | 16 | PROJECT_LIBS = -l$(WM_PROJECT) 17 | 18 | -EXE_INC = 19 | -EXE_LIBS = 20 | +EXE_INC = -I@TERMUX_PREFIX@/include 21 | +EXE_LIBS = -L@TERMUX_PREFIX@/lib 22 | LIB_LIBS = 23 | 24 | 25 | -------------------------------------------------------------------------------- /packages/openfoam/wmake-rules.patch: -------------------------------------------------------------------------------- 1 | --- /dev/null 2020-07-04 07:25:57.571395009 +0200 2 | +++ ./wmake/rules/linuxARM7Clang/c 2020-07-04 14:21:40.625378168 +0200 3 | @@ -0,0 +1,12 @@ 4 | +include $(GENERAL_RULES)/Clang/c 5 | + 6 | +cARCH = 7 | + 8 | +# Compile option is non-mandatory, but must be non-empty 9 | +sinclude $(DEFAULT_RULES)/c$(WM_COMPILE_OPTION) 10 | + 11 | +cFLAGS = $(cARCH) $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC 12 | + 13 | +ctoo = $(WM_SCHEDULER) $(cc) $(cFLAGS) -c $< -o $@ 14 | + 15 | +include $(GENERAL_RULES)/Clang/link-c 16 | --- /dev/null 2020-07-04 07:25:57.571395009 +0200 17 | +++ ./wmake/rules/linuxARM7Clang/c++ 2020-07-04 14:22:04.470616105 +0200 18 | @@ -0,0 +1,14 @@ 19 | +include $(GENERAL_RULES)/Clang/c++ 20 | + 21 | +c++ARCH = -m32 22 | + 23 | +include $(DEFAULT_RULES)/c++$(WM_COMPILE_OPTION) 24 | + 25 | +c++FLAGS = $(c++ARCH) $(GFLAGS) $(c++WARN) $(c++OPT) $(c++DBUG) $(ptFLAGS) $(LIB_HEADER_DIRS) -fPIC 26 | + 27 | +Ctoo = $(WM_SCHEDULER) $(CC) $(c++FLAGS) -c $< -o $@ 28 | +cxxtoo = $(Ctoo) 29 | +cctoo = $(Ctoo) 30 | +cpptoo = $(Ctoo) 31 | + 32 | +include $(GENERAL_RULES)/Clang/link-c++ 33 | --- /dev/null 2020-07-04 07:25:57.571395009 +0200 34 | +++ ./wmake/rules/linuxARM7Clang/c++~ 2020-07-04 14:21:40.625378168 +0200 35 | @@ -0,0 +1,14 @@ 36 | +include $(GENERAL_RULES)/Clang/c++ 37 | + 38 | +c++ARCH = 39 | + 40 | +include $(DEFAULT_RULES)/c++$(WM_COMPILE_OPTION) 41 | + 42 | +c++FLAGS = $(c++ARCH) $(GFLAGS) $(c++WARN) $(c++OPT) $(c++DBUG) $(ptFLAGS) $(LIB_HEADER_DIRS) -fPIC 43 | + 44 | +Ctoo = $(WM_SCHEDULER) $(CC) $(c++FLAGS) -c $< -o $@ 45 | +cxxtoo = $(Ctoo) 46 | +cctoo = $(Ctoo) 47 | +cpptoo = $(Ctoo) 48 | + 49 | +include $(GENERAL_RULES)/Clang/link-c++ 50 | --- /dev/null 2020-07-04 07:25:57.571395009 +0200 51 | +++ ./wmake/rules/linuxARM7Clang/c++Debug 2020-07-04 14:21:40.625378168 +0200 52 | @@ -0,0 +1,2 @@ 53 | +c++DBUG = -g -DFULLDEBUG 54 | +c++OPT = -O0 55 | --- /dev/null 2020-07-04 07:25:57.571395009 +0200 56 | +++ ./wmake/rules/linuxARM7Clang/cDebug 2020-07-04 14:21:40.625378168 +0200 57 | @@ -0,0 +1,2 @@ 58 | +cDBUG = -g -DFULLDEBUG 59 | +cOPT = -O0 60 | --- /dev/null 2020-07-04 07:25:57.571395009 +0200 61 | +++ ./wmake/rules/linuxARM7Clang/c++Opt 2020-07-04 14:21:40.625378168 +0200 62 | @@ -0,0 +1,2 @@ 63 | +c++DBUG = 64 | +c++OPT = -O3 65 | --- /dev/null 2020-07-04 07:25:57.571395009 +0200 66 | +++ ./wmake/rules/linuxARM7Clang/cOpt 2020-07-04 14:21:40.625378168 +0200 67 | @@ -0,0 +1,2 @@ 68 | +cDBUG = 69 | +cOPT = -O3 70 | --- /dev/null 2020-07-04 07:25:57.571395009 +0200 71 | +++ ./wmake/rules/linuxARM7Clang/c++Prof 2020-07-04 14:21:40.625378168 +0200 72 | @@ -0,0 +1,2 @@ 73 | +c++DBUG = -pg 74 | +c++OPT = -O2 75 | --- /dev/null 2020-07-04 07:25:57.571395009 +0200 76 | +++ ./wmake/rules/linuxARM7Clang/cProf 2020-07-04 14:21:40.625378168 +0200 77 | @@ -0,0 +1,2 @@ 78 | +cDBUG = -pg 79 | +cOPT = -O2 80 | --- /dev/null 2020-07-04 07:25:57.571395009 +0200 81 | +++ ./wmake/rules/linuxARM7Clang/general 2020-07-04 14:21:40.625378168 +0200 82 | @@ -0,0 +1,9 @@ 83 | +CPP = cpp -traditional-cpp $(GFLAGS) 84 | + 85 | +PROJECT_LIBS = -l$(WM_PROJECT) -ldl 86 | + 87 | +include $(GENERAL_RULES)/standard 88 | +include $(GENERAL_RULES)/Clang/openmp 89 | + 90 | +include $(DEFAULT_RULES)/c 91 | +include $(DEFAULT_RULES)/c++ 92 | diff -u -r ../rules.orig/General/Clang/c ./wmake/rules/General/Clang/c 93 | --- ../rules.orig/General/Clang/c 2020-07-04 14:14:17.914357166 +0200 94 | +++ ./wmake/rules/General/Clang/c 2020-07-04 15:29:10.867438565 +0200 95 | @@ -1,6 +1,6 @@ 96 | SUFFIXES += .c 97 | 98 | -cc = clang 99 | +cc = @TERMUX_COMPILER_PREFIX@-clang 100 | 101 | cARCH = 102 | cDBUG = 103 | diff -u -r ../rules.orig/General/Clang/c++ ./wmake/rules/General/Clang/c++ 104 | --- ../rules.orig/General/Clang/c++ 2020-07-04 14:14:17.914357166 +0200 105 | +++ ./wmake/rules/General/Clang/c++ 2020-07-04 15:29:10.870773563 +0200 106 | @@ -1,6 +1,6 @@ 107 | SUFFIXES += .C .cc .cpp .cxx 108 | 109 | -CC = clang++ -std=c++11 110 | +CC = @TERMUX_COMPILER_PREFIX@-clang++ 111 | 112 | c++ARCH = 113 | c++DBUG = 114 | diff -u -r ../rules.orig/General/general ./wmake/rules/General/general 115 | --- ../rules.orig/General/general 2021-09-11 07:37:23.639344141 +0000 116 | +++ ./wmake/rules/General/general 2021-09-11 07:39:16.659812615 +0000 117 | @@ -1,15 +1,15 @@ 118 | #-------------------------------*- makefile -*--------------------------------- 119 | WM_VERSION = OPENFOAM=2106 120 | 121 | -AR = ar 122 | +AR ?= ar 123 | ARFLAGS = cr 124 | -RANLIB = ranlib 125 | -CPP = cpp 126 | -LD = ld 127 | +RANLIB ?= ranlib 128 | +CPP ?= cpp 129 | +LD ?= ld 130 | 131 | GFLAGS = -D$(WM_VERSION) \ 132 | -DWM_$(WM_PRECISION_OPTION) -DWM_LABEL_SIZE=$(WM_LABEL_SIZE) 133 | GINC = 134 | -GLIBS = -lm 135 | +GLIBS = -lm $(LDFLAGS) -L$(WM_PROJECT_DIR)/platforms/$(WM_ARCH)$(WM_COMPILER)$(WM_PRECISION_OPTION)$(WM_LABEL_OPTION)$(WM_COMPILE_OPTION)/lib/sys-openmpi -lPstream -Wl,-rpath=$(WM_PROJECT_DIR)/platforms/$(WM_ARCH)$(WM_COMPILER)$(WM_PRECISION_OPTION)$(WM_LABEL_OPTION)$(WM_COMPILE_OPTION)/lib,--enable-new-dtags,--as-needed,-z,relro,-z,now -Wl,-rpath=$(WM_PROJECT_DIR)/platforms/$(WM_ARCH)$(WM_COMPILER)$(WM_PRECISION_OPTION)$(WM_LABEL_OPTION)$(WM_COMPILE_OPTION)/lib/sys-openmpi 136 | GLIB_LIBS = 137 | 138 | diff -u -r ../rules.orig/General/mplibSYSTEMOPENMPI ./wmake/rules/General/mplibSYSTEMOPENMPI 139 | --- ../rules.orig/General/mplibSYSTEMOPENMPI 2021-09-11 07:23:40.180606194 +0000 140 | +++ ./wmake/rules/General/mplibSYSTEMOPENMPI 2021-09-11 07:32:24.648246360 +0000 141 | @@ -1,6 +1,12 @@ 142 | #------------------------------------------------------------------------------ 143 | -# Use openmpi mpicc to obtain settings - mpicc must be available 144 | +# Use openmpi mpicc to obtain settings 145 | 146 | include $(GENERAL_RULES)/mpi-mpicc-openmpi 147 | 148 | +PFLAGS = -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX 149 | +PINC = $(shell mpicc --showme:compile) 150 | +PLIBS = $(shell mpicc --showme:link) 151 | +PINC = -I@TERMUX_PREFIX@/include 152 | +PLIBS = -L$(MPI_ARCH_PATH)/lib $(LDFLAGS) -lmpi 153 | + 154 | #------------------------------------------------------------------------------ 155 | diff -u -r ../wmake-rules-General-Clang.orig/link-c ./wmake/rules/General/Clang/link-c 156 | --- ../rules.orig/General/Clang/link-c 2021-11-30 12:47:16.409236950 +0000 157 | +++ ./wmake/rules/General/Clang/link-c 2021-11-30 12:47:36.519250093 +0000 158 | @@ -2,4 +2,4 @@ 159 | 160 | LINKLIBSO = $(cc) $(cARCH) -shared 161 | 162 | -LINKEXE = $(cc) $(cARCH) -Xlinker --add-needed -Xlinker -z -Xlinker nodefs 163 | +LINKEXE = $(cc) $(cARCH) -Xlinker -z -Xlinker nodefs 164 | diff -u -r ../wmake-rules-General-Clang.orig/link-c++ ./wmake/rules/General/Clang/link-c++ 165 | --- ../rules.orig/General/Clang/link-c++ 2021-11-30 12:47:16.409236950 +0000 166 | +++ ./wmake/rules/General/Clang/link-c++ 2021-11-30 12:47:45.459255918 +0000 167 | @@ -4,5 +4,4 @@ 168 | $(FOAM_EXTRA_LDFLAGS) 169 | 170 | LINKEXE = $(CC) $(c++FLAGS) \ 171 | - -Xlinker --add-needed \ 172 | $(FOAM_EXTRA_LDFLAGS) 173 | -------------------------------------------------------------------------------- /packages/openfoam/wmake-scripts-sysFunctions.patch: -------------------------------------------------------------------------------- 1 | --- ./wmake/scripts/sysFunctions.orig 2021-09-12 20:35:59.681678592 +0000 2 | +++ ./wmake/scripts/sysFunctions 2021-09-12 20:37:13.058308118 +0000 3 | @@ -142,11 +142,11 @@ 4 | sysPrefix() 5 | { 6 | case "$1" in 7 | - /usr/local/*) 8 | - echo "/usr/local" 9 | + @TERMUX_PREFIX@/local/*) 10 | + echo "@TERMUX_PREFIX@/local" 11 | ;; 12 | *) 13 | - echo "/usr" 14 | + echo "@TERMUX_PREFIX@" 15 | ;; 16 | esac 17 | } 18 | @@ -191,8 +191,8 @@ 19 | fi 20 | 21 | findFirstFile \ 22 | - "/usr/local/include/$searchName" \ 23 | - "/usr/include/$searchName" \ 24 | + "@TERMUX_PREFIX@/local/include/$searchName" \ 25 | + "@TERMUX_PREFIX@/include/$searchName" \ 26 | ; 27 | } 28 | 29 | -------------------------------------------------------------------------------- /packages/openmpi/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=https://www.open-mpi.org 2 | TERMUX_PKG_DESCRIPTION="Open source Message Passing Interface implementation" 3 | TERMUX_PKG_LICENSE="BSD 3-Clause" 4 | TERMUX_PKG_MAINTAINER="Henrik Grimler @Grimler91" 5 | TERMUX_PKG_VERSION=4.1.1 6 | TERMUX_PKG_SRCURL=https://download.open-mpi.org/release/open-mpi/v${TERMUX_PKG_VERSION:0:3}/openmpi-$TERMUX_PKG_VERSION.tar.gz 7 | TERMUX_PKG_SHA256=d80b9219e80ea1f8bcfe5ad921bd9014285c4948c5965f4156a3831e60776444 8 | TERMUX_PKG_DEPENDS="libandroid-shmem" 9 | TERMUX_PKG_BREAKS="openmpi-dev" 10 | TERMUX_PKG_REPLACES="openmpi-dev" 11 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" 12 | --without-x 13 | --disable-dlopen 14 | --disable-mpi-fortran 15 | ac_cv_header_ifaddrs_h=no 16 | ac_cv_member_struct_ifreq_ifr_hwaddr=no 17 | " 18 | 19 | termux_step_pre_configure () { 20 | # rindex is an obsolete version of strrchr which is not available in Android: 21 | CFLAGS+=" -Drindex=strrchr -Dbcmp=memcmp" 22 | LDFLAGS="${LDFLAGS/-Wl,--as-needed/}" 23 | LDFLAGS+=" -landroid-shmem" 24 | if [ $TERMUX_ARCH == "i686" ]; then 25 | # fails with "undefined reference to __atomic..." 26 | LDFLAGS+=" -latomic" 27 | fi 28 | 29 | ./autogen.pl --force 30 | } 31 | -------------------------------------------------------------------------------- /packages/openmpi/opal-mca-memory-patcher-memory_patcher_component.c.patch: -------------------------------------------------------------------------------- 1 | --- ./opal/mca/memory/patcher/memory_patcher_component.c.orig 2020-12-18 20:44:38.000000000 +0000 2 | +++ ./opal/mca/memory/patcher/memory_patcher_component.c 2021-01-14 20:52:10.545290518 +0000 3 | @@ -55,10 +55,17 @@ 4 | #include "memory_patcher.h" 5 | #undef opal_memory_changed 6 | 7 | -#define HAS_SHMDT (defined(SYS_shmdt) || \ 8 | - (defined(IPCOP_shmdt) && defined(SYS_ipc))) 9 | -#define HAS_SHMAT (defined(SYS_shmat) || \ 10 | - (defined(IPCOP_shmat) && defined(SYS_ipc))) 11 | +#if defined(SYS_shmdt) || (defined(IPCOP_shmdt) && defined(SYS_ipc)) 12 | +# define HAS_SHMDT 1 13 | +# else 14 | +# define HAS_SHMDT 0 15 | +#endif 16 | + 17 | +#if defined(SYS_shmat) || (defined(IPCOP_shmat) && defined(SYS_ipc)) 18 | +# define HAS_SHMAT 1 19 | +# else 20 | +# define HAS_SHMAT 0 21 | +#endif 22 | 23 | static int patcher_open(void); 24 | static int patcher_close(void); 25 | @@ -281,9 +288,9 @@ 26 | advice == MADV_FREE || 27 | #endif 28 | #ifdef MADV_REMOVE 29 | - advice == MADV_REMOVE || 30 | + advice == MADV_REMOVE 31 | #endif 32 | - advice == POSIX_MADV_DONTNEED) 33 | + ) 34 | { 35 | opal_mem_hooks_release_hook (start, length, false); 36 | } 37 | @@ -473,8 +480,8 @@ 38 | uintptr_t attach_addr = (uintptr_t)shmaddr; 39 | 40 | if (shmflg & SHM_RND) { 41 | - attach_addr -= ((uintptr_t)shmaddr) % SHMLBA; 42 | - size += ((uintptr_t)shmaddr) % SHMLBA; 43 | + attach_addr -= ((uintptr_t)shmaddr) % sysconf(_SC_PAGESIZE); 44 | + size += ((uintptr_t)shmaddr) % sysconf(_SC_PAGESIZE); 45 | } 46 | opal_mem_hooks_release_hook ((void*)attach_addr, size, false); 47 | } 48 | @@ -486,7 +493,7 @@ 49 | unsigned long ret; 50 | ret = memory_patcher_syscall(SYS_ipc, IPCOP_shmat, 51 | shmid, shmflg, &shmaddr, shmaddr); 52 | - result = (ret > -(unsigned long)SHMLBA) ? (void *)ret : (void *)shmaddr; 53 | + result = (ret > -(unsigned long)sysconf(_SC_PAGESIZE)) ? (void *)ret : (void *)shmaddr; 54 | #endif 55 | } else { 56 | result = original_shmat (shmid, shmaddr, shmflg); 57 | -------------------------------------------------------------------------------- /packages/openmpi/opal-util-info.c.patch: -------------------------------------------------------------------------------- 1 | --- ../info.c.orig 2018-09-13 21:30:21.602391682 +0200 2 | +++ ./opal/util/info.c 2018-09-13 21:30:30.942315803 +0200 3 | @@ -27,7 +27,9 @@ 4 | 5 | #include 6 | #include 7 | +#ifdef HAVE_STDLIB_H 8 | #include 9 | +#endif 10 | #ifdef HAVE_UNISTD_H 11 | #include 12 | #endif 13 | -------------------------------------------------------------------------------- /packages/openmpi/opal-util-info_subscriber.c.patch: -------------------------------------------------------------------------------- 1 | --- ../info_subscriber.c.orig 2018-09-13 21:27:28.615555253 +0200 2 | +++ ./opal/util/info_subscriber.c 2018-09-13 21:27:59.179378432 +0200 3 | @@ -27,7 +27,9 @@ 4 | 5 | #include 6 | #include 7 | +#ifdef HAVE_STDLIB_H 8 | #include 9 | +#endif 10 | #ifdef HAVE_UNISTD_H 11 | #include 12 | #endif 13 | -------------------------------------------------------------------------------- /packages/openmpi/opal-util-show_help_lex.c.patch: -------------------------------------------------------------------------------- 1 | --- ./opal/util/show_help_lex.c 2017-05-10 18:02:26.000000000 +0200 2 | +++ ../show_help_lex.c 2017-08-21 17:12:51.502680794 +0200 3 | @@ -38,7 +38,9 @@ 4 | #include 5 | #include 6 | #include 7 | +#if HAVE_STDLIB_H 8 | #include 9 | +#endif 10 | 11 | /* end standard C headers. */ 12 | 13 | -------------------------------------------------------------------------------- /packages/openmpi/orte-mca-state-base-state_base_fns.c.patch: -------------------------------------------------------------------------------- 1 | "The getdtablesize functions has been deprecated by Posix and has been 2 | removed from Android's LB64 ABI. Replace calls to it with the modern 3 | equivalent sysconf(_SC_OPEN_MAX)." 4 | https://groups.google.com/a/chromium.org/forum/#!topic/chromium-reviews/AXhZapYuHi8 5 | --- ../state_base_fns.c.orig 2018-09-13 21:45:45.407361866 +0200 6 | +++ ./orte/mca/state/base/state_base_fns.c 2018-09-13 21:45:58.999257268 +0200 7 | @@ -1069,7 +1069,7 @@ 8 | 9 | /* get the number of available file descriptors 10 | * for this daemon */ 11 | - nfds = getdtablesize(); 12 | + nfds = sysconf(_SC_OPEN_MAX); 13 | result = NULL; 14 | /* loop over them and get their info */ 15 | for (i=0; i < nfds; i++) { 16 | -------------------------------------------------------------------------------- /packages/openmpi/oshmem-mca-memheat-ptmalloc-malloc.c.patch: -------------------------------------------------------------------------------- 1 | --- ./oshmem/mca/memheap/ptmalloc/malloc.c 2017-05-10 17:40:49.000000000 +0200 2 | +++ ../malloc.c 2017-08-21 19:00:22.757971004 +0200 3 | @@ -648,10 +648,10 @@ 4 | system version and #define HAVE_USR_INCLUDE_MALLOC_H. 5 | */ 6 | 7 | -/* #define HAVE_USR_INCLUDE_MALLOC_H */ 8 | +#define HAVE_USR_INCLUDE_MALLOC_H 9 | 10 | #ifdef HAVE_USR_INCLUDE_MALLOC_H 11 | -#include "/usr/include/malloc.h" 12 | +#include 13 | #else /* HAVE_USR_INCLUDE_MALLOC_H */ 14 | 15 | struct mallinfo { 16 | -------------------------------------------------------------------------------- /packages/openscad/CMakeLists.txt.patch: -------------------------------------------------------------------------------- 1 | --- ../CMakeLists.txt.orig 2020-02-14 20:41:56.576884809 +0100 2 | +++ ./CMakeLists.txt 2020-02-14 20:44:41.792539280 +0100 3 | @@ -201,9 +201,6 @@ 4 | # Check if boost dependency libraries have been found too 5 | list(LENGTH BOOST_DIRECTLY_REQUIRED_LIBRARIES BOOST_DIRECTLY_REQUIRED_LIBRARIES_LENGTH) 6 | list(LENGTH Boost_LIBRARIES Boost_LIBRARIES_LENGTH) 7 | - if(Boost_LIBRARIES_LENGTH EQUAL BOOST_DIRECTLY_REQUIRED_LIBRARIES_LENGTH) 8 | - message(FATAL_ERROR "No dependent Boost libraries found. Your CMake (${CMAKE_VERSION}) version might be too old for the version of boost you are using (${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}.${Boost_SUBMINOR_VERSION}). In that case, you should have received warnings above of the type: 'Imported targets not available for Boost version ${Boost_VERSION}'") 9 | - endif() 10 | 11 | find_package(HarfBuzz 0.9.19 REQUIRED QUIET) 12 | message(STATUS "Harfbuzz: ${HARFBUZZ_VERSION}") 13 | @@ -688,6 +685,8 @@ 14 | target_link_libraries(OpenSCAD spnav) 15 | endif() 16 | 17 | +list(APPEND COMMON_LIBRARIES boost_thread boost_program_options boost_filesystem boost_system boost_regex) 18 | + 19 | target_link_libraries(OpenSCAD PRIVATE ${COMMON_LIBRARIES} ${PLATFORM_LIBS}) 20 | if(NOT HEADLESS) 21 | target_link_libraries(OpenSCAD PRIVATE Qt5::Core Qt5::Widgets Qt5::Multimedia Qt5::OpenGL Qt5::Concurrent Qt5::Network ${QT5QSCINTILLA_LIBRARY} ${Qt5DBus_LIBRARIES} ${Qt5Gamepad_LIBRARIES}) 22 | -------------------------------------------------------------------------------- /packages/openscad/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=http://openscad.org/ 2 | TERMUX_PKG_DESCRIPTION="The programmers solid 3D CAD modeller (headless build)" 3 | TERMUX_PKG_LICENSE="GPL-2.0" 4 | TERMUX_PKG_MAINTAINER="@termux" 5 | TERMUX_PKG_VERSION=2019.05 6 | TERMUX_PKG_REVISION=5 7 | TERMUX_PKG_SRCURL=https://files.openscad.org/openscad-$TERMUX_PKG_VERSION.src.tar.gz 8 | TERMUX_PKG_SHA256=0a16c4263ce52380819dd91c609a719d38f12f6b8c4da0e828dcbe5b70996f59 9 | TERMUX_PKG_DEPENDS="boost, cgal, double-conversion, fontconfig, harfbuzz, libzip" 10 | TERMUX_PKG_BUILD_DEPENDS="eigen" 11 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" 12 | -DBoost_USE_STATIC_LIBS=OFF 13 | -DBUILD_SHARED_LIBS=ON 14 | -DBUILD_STATIC_LIBS=OFF 15 | -DNULLGL=ON 16 | " 17 | 18 | termux_step_make_install () { 19 | mkdir -p $TERMUX_PREFIX/share/openscad 20 | install openscad $TERMUX_PREFIX/bin/ 21 | cp -r $TERMUX_PKG_SRCDIR/libraries $TERMUX_PREFIX/share/openscad/ 22 | cp -r $TERMUX_PKG_SRCDIR/examples $TERMUX_PREFIX/share/openscad/ 23 | } 24 | -------------------------------------------------------------------------------- /packages/openscad/src-import.cc.patch: -------------------------------------------------------------------------------- 1 | --- ../import.cc.orig 2020-07-14 09:26:06.065405741 +0200 2 | +++ ./src/import.cc 2020-07-14 09:33:39.557419903 +0200 3 | @@ -50,7 +50,6 @@ 4 | #include 5 | using namespace boost::assign; // bring 'operator+=()' into scope 6 | 7 | -#include 8 | #include 9 | 10 | extern PolySet * import_amf(std::string, const Location &loc); 11 | -------------------------------------------------------------------------------- /packages/osm2pgsql/FindLua.cmake.patch: -------------------------------------------------------------------------------- 1 | --- /data/data/com.termux/files/home/.termux-build/osm2pgsql/src/cmake/FindLua.cmake 2021-02-03 10:26:41.000000000 -0500 2 | +++ ./cmake/FindLua.cmake 2021-03-02 00:07:15.583814032 -0500 3 | @@ -126,14 +126,7 @@ 4 | unset(_lua_library_names) 5 | 6 | if (LUA_LIBRARY) 7 | - # include the math library for Unix 8 | - if (UNIX AND NOT APPLE AND NOT BEOS) 9 | - find_library(LUA_MATH_LIBRARY m) 10 | - set(LUA_LIBRARIES "${LUA_LIBRARY};${LUA_MATH_LIBRARY}") 11 | - # For Windows and Mac, don't need to explicitly include the math library 12 | - else () 13 | - set(LUA_LIBRARIES "${LUA_LIBRARY}") 14 | - endif () 15 | + set(LUA_LIBRARIES "${LUA_LIBRARY}") 16 | endif () 17 | 18 | if (LUA_INCLUDE_DIR AND EXISTS "${LUA_INCLUDE_DIR}/lua.h") 19 | -------------------------------------------------------------------------------- /packages/osm2pgsql/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=https://osm2pgsql.org/ 2 | TERMUX_PKG_DESCRIPTION="osm2pgsql imports OpenStreetMap (OSM) data into a PostgreSQL/PostGIS database" 3 | TERMUX_PKG_LICENSE="GPL-2.0" 4 | TERMUX_PKG_MAINTAINER="@termux" 5 | TERMUX_PKG_VERSION=1.5.0 6 | TERMUX_PKG_SRCURL=https://github.com/openstreetmap/osm2pgsql/archive/${TERMUX_PKG_VERSION}.tar.gz 7 | TERMUX_PKG_SHA256=d31be268dda21cf31418f68c78b8e0cbbd90cd8a283c4dfe0c134a7960936fce 8 | TERMUX_PKG_DEPENDS="libexpat, proj, bzip2, zlib, boost, postgresql, lua54" 9 | -------------------------------------------------------------------------------- /packages/osmctools/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=https://gitlab.com/osm-c-tools/osmctools 2 | TERMUX_PKG_DESCRIPTION="Simple tools for OpenStreetMap processing" 3 | TERMUX_PKG_LICENSE="AGPL-V3" 4 | TERMUX_PKG_MAINTAINER="@termux" 5 | TERMUX_PKG_VERSION=0.9 6 | TERMUX_PKG_REVISION=1 7 | TERMUX_PKG_SRCURL=https://gitlab.com/osm-c-tools/osmctools/-/archive/${TERMUX_PKG_VERSION}/osmctools-${TERMUX_PKG_VERSION}.tar.gz 8 | TERMUX_PKG_SHA256=2f5298be5b4ba840a04f360c163849b34a31386ccd287657885e21268665f413 9 | TERMUX_PKG_DEPENDS="zlib" 10 | 11 | termux_step_pre_configure () { 12 | autoreconf --install 13 | } 14 | -------------------------------------------------------------------------------- /packages/osmium-tool/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=https://osmcode.org/osmium-tool/ 2 | TERMUX_PKG_DESCRIPTION="A multipurpose command line tool based on the Osmium Library" 3 | TERMUX_PKG_LICENSE="GPL-3.0" 4 | TERMUX_PKG_LICENSE_FILE="LICENSE.txt" 5 | TERMUX_PKG_MAINTAINER="@termux" 6 | TERMUX_PKG_VERSION=1.13.1 7 | TERMUX_PKG_SRCURL=https://github.com/osmcode/osmium-tool/archive/v${TERMUX_PKG_VERSION}.tar.gz 8 | TERMUX_PKG_SHA256=d6273e2614d390d8444b767018b7023bdac3538cbe094d2799eee50b6f08cd03 9 | TERMUX_PKG_DEPENDS="libosmium, libprotozero, boost, libbz2, zlib, liblz4, libexpat" 10 | -------------------------------------------------------------------------------- /packages/proj/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=https://proj.org 2 | TERMUX_PKG_DESCRIPTION="Generic coordinate transformation software" 3 | TERMUX_PKG_LICENSE="MIT" 4 | TERMUX_PKG_MAINTAINER="Henrik Grimler @Grimler91" 5 | TERMUX_PKG_VERSION=8.1.1 6 | TERMUX_PKG_REVISION=1 7 | TERMUX_PKG_SRCURL=https://github.com/OSGeo/proj.4/archive/${TERMUX_PKG_VERSION}.tar.gz 8 | TERMUX_PKG_SHA256=6c6f2928d00798d576eca2b4c9fddefeebb052db032147351dc9279371ec7d25 9 | TERMUX_PKG_DEPENDS="libc++, libsqlite, sqlite, libtiff, libcurl" 10 | TERMUX_PKG_BREAKS="proj-dev" 11 | TERMUX_PKG_REPLACES="proj-dev" 12 | -------------------------------------------------------------------------------- /packages/spatialite-tools/build.sh: -------------------------------------------------------------------------------- 1 | TERMUX_PKG_HOMEPAGE=https://www.gaia-gis.it/fossil/spatialite-tools 2 | TERMUX_PKG_DESCRIPTION="Collection of tools supporting SpatiaLite" 3 | TERMUX_PKG_LICENSE="GPL-3.0" 4 | TERMUX_PKG_MAINTAINER="@termux" 5 | TERMUX_PKG_VERSION=5.0.1 6 | TERMUX_PKG_REVISION=1 7 | TERMUX_PKG_SRCURL=https://www.gaia-gis.it/gaia-sins/spatialite-tools-${TERMUX_PKG_VERSION}.tar.gz 8 | TERMUX_PKG_SHA256=9604c205e87f037789bc52302c66ccd1371c3e98c74e8ec4e29b0752de35171c 9 | TERMUX_PKG_DEPENDS="libgeos, libexpat, sqlite, proj, libspatialite" 10 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-readosm --disable-minizip" 11 | -------------------------------------------------------------------------------- /packages/texlive/cjk-gs-integrate.pl.patch: -------------------------------------------------------------------------------- 1 | --- ../cjk-gs-integrate.pl.orig 2020-05-01 17:26:10.709915553 +0200 2 | +++ ./texmf-dist/scripts/cjk-gs-integrate/cjk-gs-integrate.pl 2020-05-01 17:28:25.023071451 +0200 3 | @@ -1937,7 +1937,7 @@ 4 | my $foundres = ''; 5 | if (win32()) { 6 | # determine tlgs or native gs 7 | - chomp(my $foo = `kpsewhich -var-value=SELFAUTOPARENT`); 8 | + chomp(my $foo = `kpsewhich -var-value=TEXMFROOT`); 9 | if ( -d "$foo/tlpkg/tlgs" ) { 10 | # should be texlive with tlgs 11 | print_debug("Assuming tlgs win32 ...\n"); 12 | -------------------------------------------------------------------------------- /packages/texlive/crossrefware.patch: -------------------------------------------------------------------------------- 1 | diff -u -r ../crossrefware.orig/bbl2bib.pl ./texmf-dist/scripts/crossrefware/bbl2bib.pl 2 | --- ../crossrefware.orig/bbl2bib.pl 2020-05-01 17:25:50.416609028 +0200 3 | +++ ./texmf-dist/scripts/crossrefware/bbl2bib.pl 2020-05-01 17:28:25.033071437 +0200 4 | @@ -98,7 +98,7 @@ 5 | use strict; 6 | BEGIN { 7 | # find files relative to our installed location within TeX Live 8 | - chomp(my $TLMaster = `kpsewhich -var-value=SELFAUTOPARENT`); # TL root 9 | + chomp(my $TLMaster = `kpsewhich -var-value=TEXMFROOT`); # TL root 10 | if (length($TLMaster)) { 11 | unshift @INC, "$TLMaster/texmf-dist/scripts/bibtexperllibs"; 12 | } 13 | diff -u -r ../crossrefware.orig/bibdoiadd.pl ./texmf-dist/scripts/crossrefware/bibdoiadd.pl 14 | --- ../crossrefware.orig/bibdoiadd.pl 2020-05-01 17:25:50.416609028 +0200 15 | +++ ./texmf-dist/scripts/crossrefware/bibdoiadd.pl 2020-05-01 17:28:25.043071424 +0200 16 | @@ -97,7 +97,7 @@ 17 | use strict; 18 | BEGIN { 19 | # find files relative to our installed location within TeX Live 20 | - chomp(my $TLMaster = `kpsewhich -var-value=SELFAUTOPARENT`); # TL root 21 | + chomp(my $TLMaster = `kpsewhich -var-value=TEXMFROOT`); # TL root 22 | if (length($TLMaster)) { 23 | unshift @INC, "$TLMaster/texmf-dist/scripts/bibtexperllibs"; 24 | } 25 | diff -u -r ../crossrefware.orig/bibmradd.pl ./texmf-dist/scripts/crossrefware/bibmradd.pl 26 | --- ../crossrefware.orig/bibmradd.pl 2020-05-01 17:25:50.416609028 +0200 27 | +++ ./texmf-dist/scripts/crossrefware/bibmradd.pl 2020-05-01 17:28:25.036404766 +0200 28 | @@ -64,7 +64,7 @@ 29 | use strict; 30 | BEGIN { 31 | # find files relative to our installed location within TeX Live 32 | - chomp(my $TLMaster = `kpsewhich -var-value=SELFAUTOPARENT`); # TL root 33 | + chomp(my $TLMaster = `kpsewhich -var-value=TEXMFROOT`); # TL root 34 | if (length($TLMaster)) { 35 | unshift @INC, "$TLMaster/texmf-dist/scripts/bibtexperllibs"; 36 | } 37 | diff -u -r ../crossrefware.orig/biburl2doi.pl ./texmf-dist/scripts/crossrefware/biburl2doi.pl 38 | --- ../crossrefware.orig/biburl2doi.pl 2020-05-01 17:25:50.416609028 +0200 39 | +++ ./texmf-dist/scripts/crossrefware/biburl2doi.pl 2020-05-01 17:28:25.039738095 +0200 40 | @@ -51,7 +51,7 @@ 41 | use strict; 42 | BEGIN { 43 | # find files relative to our installed location within TeX Live 44 | - chomp(my $TLMaster = `kpsewhich -var-value=SELFAUTOPARENT`); # TL root 45 | + chomp(my $TLMaster = `kpsewhich -var-value=TEXMFROOT`); # TL root 46 | if (length($TLMaster)) { 47 | unshift @INC, "$TLMaster/texmf-dist/scripts/bibtexperllibs"; 48 | } 49 | diff -u -r ../crossrefware.orig/bibzbladd.pl ./texmf-dist/scripts/crossrefware/bibzbladd.pl 50 | --- ../crossrefware.orig/bibzbladd.pl 2020-05-01 17:25:50.416609028 +0200 51 | +++ ./texmf-dist/scripts/crossrefware/bibzbladd.pl 2020-05-01 17:28:25.043071424 +0200 52 | @@ -64,7 +64,7 @@ 53 | use strict; 54 | BEGIN { 55 | # find files relative to our installed location within TeX Live 56 | - chomp(my $TLMaster = `kpsewhich -var-value=SELFAUTOPARENT`); # TL root 57 | + chomp(my $TLMaster = `kpsewhich -var-value=TEXMFROOT`); # TL root 58 | if (length($TLMaster)) { 59 | unshift @INC, "$TLMaster/texmf-dist/scripts/bibtexperllibs"; 60 | } 61 | diff -u -r ../crossrefware.orig/ltx2crossrefxml.pl ./texmf-dist/scripts/crossrefware/ltx2crossrefxml.pl 62 | --- ../crossrefware.orig/ltx2crossrefxml.pl 2020-05-01 17:25:50.416609028 +0200 63 | +++ ./texmf-dist/scripts/crossrefware/ltx2crossrefxml.pl 2020-05-01 17:28:25.036404766 +0200 64 | @@ -70,7 +70,7 @@ 65 | 66 | BEGIN { 67 | # find files relative to our installed location within TeX Live 68 | - chomp(my $TLMaster = `kpsewhich -var-value=SELFAUTOPARENT`); # TL root 69 | + chomp(my $TLMaster = `kpsewhich -var-value=TEXMFROOT`); # TL root 70 | if (length($TLMaster)) { 71 | unshift @INC, "$TLMaster/texmf-dist/scripts/bibtexperllibs"; 72 | } 73 | -------------------------------------------------------------------------------- /packages/texlive/fmtutil.cnf.patch: -------------------------------------------------------------------------------- 1 | --- ./texmf-dist/web2c/fmtutil.cnf.orig 2020-04-04 10:19:08.467622980 +0200 2 | +++ ./texmf-dist/web2c/fmtutil.cnf 2020-04-04 10:24:19.200301751 +0200 3 | @@ -43,7 +43,7 @@ 4 | # 5 | # from aleph: 6 | aleph aleph - *aleph.ini 7 | -lamed aleph language.dat *lambda.ini 8 | +#! lamed aleph language.dat *lambda.ini 9 | # 10 | # from amstex: 11 | amstex pdftex - -translate-file=cp227.tcx *amstex.ini 12 | @@ -68,11 +68,11 @@ 13 | pdfcsplain luatex - -etex csplain.ini 14 | # 15 | # from eplain: 16 | -eplain pdftex language.dat -translate-file=cp227.tcx *eplain.ini 17 | +#! eplain pdftex language.dat -translate-file=cp227.tcx *eplain.ini 18 | # 19 | # from jadetex: 20 | -jadetex pdftex language.dat *jadetex.ini 21 | -pdfjadetex pdftex language.dat *pdfjadetex.ini 22 | +#! jadetex pdftex language.dat *jadetex.ini 23 | +#! pdfjadetex pdftex language.dat *pdfjadetex.ini 24 | # 25 | # from latex-bin: 26 | latex pdftex language.dat -translate-file=cp227.tcx *latex.ini 27 | @@ -93,8 +93,8 @@ 28 | luahbtex luahbtex language.def,language.dat.lua luatex.ini 29 | # 30 | # from luajittex: 31 | -luajittex luajittex language.def,language.dat.lua luatex.ini 32 | -luajithbtex luajithbtex language.def,language.dat.lua luatex.ini 33 | +#! luajittex luajittex language.def,language.dat.lua luatex.ini 34 | +#! luajithbtex luajithbtex language.def,language.dat.lua luatex.ini 35 | # 36 | # from luatex: 37 | luatex luatex language.def,language.dat.lua luatex.ini 38 | @@ -127,12 +127,12 @@ 39 | pdfetex pdftex language.def -translate-file=cp227.tcx *pdfetex.ini 40 | # 41 | # from platex: 42 | -platex eptex language.dat *platex.ini 43 | -platex-dev eptex language.dat *platex.ini 44 | +#! platex eptex language.dat *platex.ini 45 | +#! platex-dev eptex language.dat *platex.ini 46 | # 47 | # from ptex: 48 | ptex ptex - ptex.ini 49 | -eptex eptex language.def *eptex.ini 50 | +#! eptex eptex language.def *eptex.ini 51 | # 52 | # from tex: 53 | tex tex - tex.ini 54 | @@ -141,12 +141,12 @@ 55 | texsis pdftex - -translate-file=cp227.tcx texsis.ini 56 | # 57 | # from uplatex: 58 | -uplatex euptex language.dat *uplatex.ini 59 | -uplatex-dev euptex language.dat *uplatex.ini 60 | +#! uplatex euptex language.dat *uplatex.ini 61 | +#! uplatex-dev euptex language.dat *uplatex.ini 62 | # 63 | # from uptex: 64 | uptex uptex - uptex.ini 65 | -euptex euptex language.def *euptex.ini 66 | +#! euptex euptex language.def *euptex.ini 67 | # 68 | # from xelatex-dev: 69 | xelatex-dev xetex language.dat -etex xelatex.ini 70 | @@ -156,5 +156,5 @@ 71 | xelatex xetex language.dat -etex xelatex.ini 72 | # 73 | # from xmltex: 74 | -xmltex pdftex language.dat *xmltex.ini 75 | -pdfxmltex pdftex language.dat *pdfxmltex.ini 76 | +#! xmltex pdftex language.dat *xmltex.ini 77 | +#! pdfxmltex pdftex language.dat *pdfxmltex.ini 78 | -------------------------------------------------------------------------------- /packages/texlive/pdfjam.patch: -------------------------------------------------------------------------------- 1 | --- ../pdfjam.orig 2020-04-04 09:23:16.198017919 +0200 2 | +++ ./texmf-dist/scripts/pdfjam/pdfjam 2020-04-04 09:24:36.684519772 +0200 3 | @@ -21,7 +21,7 @@ 4 | ## The path searched for site-wide configuration files can be set ## 5 | ## by editing the following variable: ## 6 | ## ## 7 | - configpath='/etc:/usr/share/etc:/usr/local/share:/usr/local/etc' ## 8 | + configpath='@TERMUX_PREFIX@/etc:@TERMUX_PREFIX@/share/etc:/usr/local/share:/usr/local/etc' ## 9 | ## ## 10 | ## Nothing else in this file should need to be changed. ## 11 | ## ## 12 | @@ -361,7 +361,7 @@ 13 | ## 14 | ## Next a permitted location for temporary files on your system: 15 | ## 16 | -tempfileDir='/var/tmp' ## /var/tmp is standard on most unix systems 17 | +tempfileDir='@TERMUX_PREFIX@/tmp' ## /var/tmp is standard on most unix systems 18 | ## 19 | ## 20 | ## Default for the output file location: 21 | -------------------------------------------------------------------------------- /packages/texlive/pedigree.pl.patch: -------------------------------------------------------------------------------- 1 | --- ../pedigree.pl.orig 2020-05-01 17:26:30.863222262 +0200 2 | +++ ./texmf-dist/scripts/pedigree-perl/pedigree.pl 2020-05-01 17:28:24.936404899 +0200 3 | @@ -110,7 +110,7 @@ 4 | 5 | BEGIN { 6 | # find files relative to our installed location within TeX Live 7 | - chomp(my $TLMaster = `kpsewhich -var-value=SELFAUTOPARENT`); # TL root 8 | + chomp(my $TLMaster = `kpsewhich -var-value=TEXMFROOT`); # TL root 9 | if (length($TLMaster)) { 10 | unshift @INC, "$TLMaster/texmf-dist/scripts/pedigree-perl"; 11 | $TLCONF = "$TLMaster/texmf-config/pedigree/pedigree.cfg"; 12 | -------------------------------------------------------------------------------- /packages/texlive/texconfig.sh.patch: -------------------------------------------------------------------------------- 1 | --- ../texconfig.sh.orig 2020-04-04 09:33:30.373390496 +0200 2 | +++ ./texmf-dist/scripts/texlive-extra/texconfig.sh 2020-04-04 09:34:14.749963681 +0200 3 | @@ -53,8 +53,8 @@ 4 | case $FMT in 5 | "") 6 | FMT=fmt 7 | - test ! -x /bin/fmt && test ! -f /usr/bin/fmt && 8 | - { test -x /bin/adjust || test -x /usr/bin/adjust; } && FMT=adjust 9 | + test ! -x /bin/fmt && test ! -f @TERMUX_PREFIX@/bin/fmt && 10 | + { test -x /bin/adjust || test -x @TERMUX_PREFIX@/bin/adjust; } && FMT=adjust 11 | ;; 12 | *) 13 | return 14 | -------------------------------------------------------------------------------- /packages/texlive/texdef.pl.patch: -------------------------------------------------------------------------------- 1 | --- ../texdef.pl.orig 2020-04-04 09:27:54.747454581 +0200 2 | +++ ./texmf-dist/scripts/texdef/texdef.pl 2020-04-04 09:28:20.700734760 +0200 3 | @@ -283,7 +283,7 @@ 4 | $EDITOR = 'texworks "%f"'; 5 | } 6 | else { 7 | - for my $ed (qw(/usr/bin/vim /usr/bin/emacs /usr/bin/nano)) { 8 | + for my $ed (qw(@TERMUX_PREFIX@/bin/vim @TERMUX_PREFIX@/bin/emacs @TERMUX_PREFIX@/bin/nano)) { 9 | if (-x $ed) { 10 | $EDITOR = $ed; 11 | last; 12 | -------------------------------------------------------------------------------- /packages/texlive/texlive-alegreya.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's alegreya package" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py alegreya $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-fontsextra (<< 20200406-3)" 4 | termux_step_create_subpkg_debscripts() { 5 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 6 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 7 | } 8 | -------------------------------------------------------------------------------- /packages/texlive/texlive-antt.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's antt package" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py antt $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-fontsextra (<< 20200406-3)" 4 | termux_step_create_subpkg_debscripts() { 5 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 6 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 7 | } 8 | -------------------------------------------------------------------------------- /packages/texlive/texlive-bibtexextra.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-bibtexextra" 2 | TERMUX_SUBPKG_DEPENDS="texlive-binextra" 3 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-bibtexextra $TERMUX_PKG_TMPDIR/texlive.tlpdb) 4 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<= 20190410-2)" 5 | 6 | termux_step_create_subpkg_debscripts() { 7 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 8 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 9 | } 10 | -------------------------------------------------------------------------------- /packages/texlive/texlive-binextra.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-binextra" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-binextra $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<= 20190410-2)" 4 | 5 | termux_step_create_subpkg_debscripts() { 6 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 7 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 8 | } 9 | -------------------------------------------------------------------------------- /packages/texlive/texlive-cm-unicode.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's cm-unicode package" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py cm-unicode $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-fontsextra (<< 20200406-3)" 4 | termux_step_create_subpkg_debscripts() { 5 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 6 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 7 | } 8 | -------------------------------------------------------------------------------- /packages/texlive/texlive-context.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-context" 2 | TERMUX_SUBPKG_DEPENDS="texlive-mathscience, texlive-fontsrecommended, texlive-metapost, texlive-xetex" 3 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-context $TERMUX_PKG_TMPDIR/texlive.tlpdb) 4 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<< 20190410)" 5 | 6 | termux_step_create_subpkg_debscripts() { 7 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 8 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 9 | } 10 | -------------------------------------------------------------------------------- /packages/texlive/texlive-cormorantgaramond.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's cormorantgaramond package" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py cormorantgaramond $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-fontsextra (<< 20200406-3)" 4 | termux_step_create_subpkg_debscripts() { 5 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 6 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 7 | } 8 | -------------------------------------------------------------------------------- /packages/texlive/texlive-dejavu.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's dejavu package" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py dejavu $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-fontsextra (<< 20200406-3)" 4 | termux_step_create_subpkg_debscripts() { 5 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 6 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 7 | } 8 | -------------------------------------------------------------------------------- /packages/texlive/texlive-drm.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's drm package" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py drm $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-fontsextra (<< 20200406-3)" 4 | termux_step_create_subpkg_debscripts() { 5 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 6 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 7 | } 8 | -------------------------------------------------------------------------------- /packages/texlive/texlive-ebgaramond.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's ebgaramond package" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py ebgaramond $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-fontsextra (<< 20200406-3)" 4 | termux_step_create_subpkg_debscripts() { 5 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 6 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 7 | } 8 | -------------------------------------------------------------------------------- /packages/texlive/texlive-fira.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's fira package" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py fira $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-fontsextra (<< 20200406-3)" 4 | termux_step_create_subpkg_debscripts() { 5 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 6 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 7 | } 8 | -------------------------------------------------------------------------------- /packages/texlive/texlive-fontsextra.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-fontsextra" 2 | # noto, alegreya, montserrat and so on are splitted out because they together 3 | # consists of roughly 55 % of the total size of texlive-fontsextra 4 | TERMUX_SUBPKG_DEPENDS="texlive-plaingeneric, texlive-noto, texlive-alegreya, texlive-montserrat, texlive-fira, texlive-lato, texlive-mpfonts, texlive-libertine, texlive-drm, texlive-poltawski, texlive-cm-unicode, texlive-roboto, texlive-dejavu, texlive-plex, texlive-stickstoo, texlive-ebgaramond, texlive-ipaex-type1, texlive-paratype, texlive-antt, texlive-cormorantgaramond, texlive-libertinus-type1" 5 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-fontsextra $TERMUX_PKG_TMPDIR/texlive.tlpdb) 6 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<< 20190410), texlive-latexextra (<= 20190410-2), texlive-fontutils (<= 20190410-2)" 7 | 8 | termux_step_create_subpkg_debscripts() { 9 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 10 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 11 | } 12 | -------------------------------------------------------------------------------- /packages/texlive/texlive-fontsrecommended.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-fontsrecommended" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-fontsrecommended $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<< 20190410)" 4 | 5 | termux_step_create_subpkg_debscripts() { 6 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 7 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 8 | } 9 | -------------------------------------------------------------------------------- /packages/texlive/texlive-fontutils.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-fontutils" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-fontutils $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<< 20190410)" 4 | 5 | termux_step_create_subpkg_debscripts() { 6 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 7 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 8 | } 9 | -------------------------------------------------------------------------------- /packages/texlive/texlive-formatsextra.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-formatsextra" 2 | TERMUX_SUBPKG_DEPENDS="texlive-langcyrillic, texlive-mathscience, texlive-fontsrecommended, texlive-plaingeneric" 3 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-formatsextra $TERMUX_PKG_TMPDIR/texlive.tlpdb) 4 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<< 20190410)" 5 | 6 | termux_step_create_subpkg_debscripts() { 7 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 8 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 9 | } 10 | -------------------------------------------------------------------------------- /packages/texlive/texlive-full.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive-full, meta package that depends on all texlive-collections" 2 | TERMUX_SUBPKG_CONFLICTS="texlive-tlmgr" 3 | TERMUX_SUBPKG_DEPENDS="texlive-bibtexextra, texlive-binextra, texlive-context, texlive-fontsextra, texlive-fontsrecommended, texlive-fontutils, texlive-formatsextra, texlive-games, texlive-humanities, texlive-langarabic, texlive-langchinese, texlive-langcjk, texlive-langcyrillic, texlive-langczechslovak, texlive-langenglish, texlive-langeuropean, texlive-langfrench, texlive-langgerman, texlive-langgreek, texlive-langitalian, texlive-langjapanese, texlive-langkorean, texlive-langother, texlive-langpolish, texlive-langportuguese, texlive-langspanish, texlive-latexextra, texlive-latexrecommended, texlive-luatex, texlive-mathscience, texlive-metapost, texlive-music, texlive-pictures, texlive-plaingeneric, texlive-pstricks, texlive-publishers, texlive-xetex" 4 | TERMUX_SUBPKG_INCLUDE="share/texlive/tlpkg/texlive.tlpdb" 5 | 6 | termux_step_create_subpkg_debscripts() { 7 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 8 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 9 | echo "echo 'Now source \$PREFIX/etc/profile.d/texlive.sh or open a new shell to add the'" >> postinst 10 | echo "echo 'texlive binaries to \$PATH'" >> postinst 11 | 12 | } 13 | -------------------------------------------------------------------------------- /packages/texlive/texlive-games.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-games" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-games $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<< 20190410)" 4 | 5 | termux_step_create_subpkg_debscripts() { 6 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 7 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 8 | } 9 | -------------------------------------------------------------------------------- /packages/texlive/texlive-humanities.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-humanities" 2 | TERMUX_SUBPKG_DEPENDS="texlive-latexextra" 3 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-humanities $TERMUX_PKG_TMPDIR/texlive.tlpdb) 4 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<< 20190410)" 5 | 6 | termux_step_create_subpkg_debscripts() { 7 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 8 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 9 | } 10 | -------------------------------------------------------------------------------- /packages/texlive/texlive-ipaex-type1.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's ipaex-type1 package" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py ipaex-type1 $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-fontsextra (<< 20200406-3)" 4 | termux_step_create_subpkg_debscripts() { 5 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 6 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 7 | } 8 | -------------------------------------------------------------------------------- /packages/texlive/texlive-langarabic.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-langarabic" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-langarabic $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<< 20190410)" 4 | 5 | termux_step_create_subpkg_debscripts() { 6 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 7 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 8 | } 9 | -------------------------------------------------------------------------------- /packages/texlive/texlive-langchinese.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-langchinese" 2 | TERMUX_SUBPKG_DEPENDS="texlive-langcjk, texlive-fontutils" 3 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-langchinese $TERMUX_PKG_TMPDIR/texlive.tlpdb) 4 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<< 20190410)" 5 | 6 | termux_step_create_subpkg_debscripts() { 7 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 8 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 9 | } 10 | -------------------------------------------------------------------------------- /packages/texlive/texlive-langcjk.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-langcjk" 2 | TERMUX_SUBPKG_DEPENDS="texlive-langother" 3 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-langcjk $TERMUX_PKG_TMPDIR/texlive.tlpdb) 4 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<< 20190410)" 5 | 6 | termux_step_create_subpkg_debscripts() { 7 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 8 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 9 | } 10 | -------------------------------------------------------------------------------- /packages/texlive/texlive-langcyrillic.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-langcyrillic" 2 | TERMUX_SUBPKG_DEPENDS="texlive-fontsextra, texlive-fontsrecommended, texlive-langgreek, texlive-latexrecommended" 3 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-langcyrillic $TERMUX_PKG_TMPDIR/texlive.tlpdb) 4 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<< 20190410)" 5 | 6 | termux_step_create_subpkg_debscripts() { 7 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 8 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 9 | } 10 | -------------------------------------------------------------------------------- /packages/texlive/texlive-langczechslovak.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-langczechslovak" 2 | TERMUX_SUBPKG_DEPENDS="texlive-fontsextra, texlive-luatex" 3 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-langczechslovak $TERMUX_PKG_TMPDIR/texlive.tlpdb) 4 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<< 20190410)" 5 | 6 | termux_step_create_subpkg_debscripts() { 7 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 8 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 9 | } 10 | -------------------------------------------------------------------------------- /packages/texlive/texlive-langenglish.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-langenglish" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-langenglish $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<< 20190410)" 4 | 5 | termux_step_create_subpkg_debscripts() { 6 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 7 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 8 | } 9 | -------------------------------------------------------------------------------- /packages/texlive/texlive-langeuropean.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-langeuropean" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-langeuropean $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<< 20190410)" 4 | 5 | termux_step_create_subpkg_debscripts() { 6 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 7 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 8 | } 9 | -------------------------------------------------------------------------------- /packages/texlive/texlive-langfrench.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-langfrench" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-langfrench $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<< 20190410)" 4 | 5 | termux_step_create_subpkg_debscripts() { 6 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 7 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 8 | } 9 | -------------------------------------------------------------------------------- /packages/texlive/texlive-langgerman.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-langgerman" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-langgerman $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<< 20190410)" 4 | 5 | termux_step_create_subpkg_debscripts() { 6 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 7 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 8 | } 9 | -------------------------------------------------------------------------------- /packages/texlive/texlive-langgreek.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-langgreek" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-langgreek $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<< 20190410)" 4 | 5 | termux_step_create_subpkg_debscripts() { 6 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 7 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 8 | } 9 | -------------------------------------------------------------------------------- /packages/texlive/texlive-langitalian.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-langitalian" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-langitalian $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<< 20190410)" 4 | 5 | termux_step_create_subpkg_debscripts() { 6 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 7 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 8 | } 9 | -------------------------------------------------------------------------------- /packages/texlive/texlive-langjapanese.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-langjapanese" 2 | TERMUX_SUBPKG_DEPENDS="texlive-langcjk, texlive-langchinese" 3 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-langjapanese $TERMUX_PKG_TMPDIR/texlive.tlpdb) 4 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<< 20190410), texlive-luatex (<= 20190410-2)" 5 | 6 | termux_step_create_subpkg_debscripts() { 7 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 8 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 9 | } 10 | -------------------------------------------------------------------------------- /packages/texlive/texlive-langkorean.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-langkorean" 2 | TERMUX_SUBPKG_DEPENDS="texlive-langjapanese, texlive-langcjk, texlive-latexrecommended" 3 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-langkorean $TERMUX_PKG_TMPDIR/texlive.tlpdb) 4 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<< 20190410)" 5 | 6 | termux_step_create_subpkg_debscripts() { 7 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 8 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 9 | } 10 | -------------------------------------------------------------------------------- /packages/texlive/texlive-langother.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-langother" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-langother $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<< 20190410)" 4 | 5 | termux_step_create_subpkg_debscripts() { 6 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 7 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 8 | } 9 | -------------------------------------------------------------------------------- /packages/texlive/texlive-langpolish.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-langpolish" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-langpolish $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<< 20190410)" 4 | 5 | termux_step_create_subpkg_debscripts() { 6 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 7 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 8 | } 9 | -------------------------------------------------------------------------------- /packages/texlive/texlive-langportuguese.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-langportuguese" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-langportuguese $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<< 20190410)" 4 | 5 | termux_step_create_subpkg_debscripts() { 6 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 7 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 8 | } 9 | -------------------------------------------------------------------------------- /packages/texlive/texlive-langspanish.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-langspanish" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-langspanish $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<< 20190410)" 4 | 5 | termux_step_create_subpkg_debscripts() { 6 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 7 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 8 | } 9 | -------------------------------------------------------------------------------- /packages/texlive/texlive-latexextra.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-latexextra" 2 | TERMUX_SUBPKG_DEPENDS="texlive-fontsextra" 3 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-latexextra $TERMUX_PKG_TMPDIR/texlive.tlpdb) 4 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<= 20190410-2), texlive-latexrecommended (<= 20190410-2), texlive-pictures (<= 20190410-2), texlive-luatex (<= 20190410-2), texlive-plaingeneric (<= 20190410-2)" 5 | 6 | termux_step_create_subpkg_debscripts() { 7 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 8 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 9 | } 10 | -------------------------------------------------------------------------------- /packages/texlive/texlive-latexrecommended.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-latexrecommended" 2 | TERMUX_SUBPKG_DEPENDS="texlive-fontsrecommended, texlive-latexextra, texlive-pictures, texlive-plaingeneric" 3 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-latexrecommended $TERMUX_PKG_TMPDIR/texlive.tlpdb) 4 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<< 20190410)" 5 | 6 | termux_step_create_subpkg_debscripts() { 7 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 8 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 9 | } 10 | -------------------------------------------------------------------------------- /packages/texlive/texlive-lato.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's lato package" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py lato $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-fontsextra (<< 20200406-3)" 4 | termux_step_create_subpkg_debscripts() { 5 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 6 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 7 | } 8 | -------------------------------------------------------------------------------- /packages/texlive/texlive-libertine.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's libertine package" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py libertine $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-fontsextra (<< 20200406-3)" 4 | termux_step_create_subpkg_debscripts() { 5 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 6 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 7 | } 8 | -------------------------------------------------------------------------------- /packages/texlive/texlive-libertinus-type1.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's libertinus-type1 package" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py libertinus-type1 $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-fontsextra (<< 20200406-3)" 4 | termux_step_create_subpkg_debscripts() { 5 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 6 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 7 | } 8 | -------------------------------------------------------------------------------- /packages/texlive/texlive-luatex.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-luatex" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-luatex $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<= 20190410-2), texlive-fontsrecommended (<= 20190410-2)" 4 | 5 | termux_step_create_subpkg_debscripts() { 6 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 7 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 8 | } 9 | -------------------------------------------------------------------------------- /packages/texlive/texlive-mathscience.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-mathscience" 2 | TERMUX_SUBPKG_DEPENDS="texlive-langgreek" 3 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-mathscience $TERMUX_PKG_TMPDIR/texlive.tlpdb) 4 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<= 20190410-2)" 5 | 6 | termux_step_create_subpkg_debscripts() { 7 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 8 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 9 | } 10 | -------------------------------------------------------------------------------- /packages/texlive/texlive-metapost.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-metapost" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-metapost $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<< 20190410)" 4 | 5 | termux_step_create_subpkg_debscripts() { 6 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 7 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 8 | } 9 | -------------------------------------------------------------------------------- /packages/texlive/texlive-montserrat.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's montserrat package" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py montserrat $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-fontsextra (<< 20200406-3)" 4 | termux_step_create_subpkg_debscripts() { 5 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 6 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 7 | } 8 | -------------------------------------------------------------------------------- /packages/texlive/texlive-mpfonts.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's mpfonts package" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py mpfonts $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-fontsextra (<< 20200406-3)" 4 | termux_step_create_subpkg_debscripts() { 5 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 6 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 7 | } 8 | -------------------------------------------------------------------------------- /packages/texlive/texlive-music.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-music" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-music $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<< 20190410)" 4 | 5 | termux_step_create_subpkg_debscripts() { 6 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 7 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 8 | } 9 | -------------------------------------------------------------------------------- /packages/texlive/texlive-noto.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's noto package" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py noto $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-fontsextra (<< 20200406-3)" 4 | termux_step_create_subpkg_debscripts() { 5 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 6 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 7 | } 8 | -------------------------------------------------------------------------------- /packages/texlive/texlive-paratype.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's paratype package" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py paratype $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-fontsextra (<< 20200406-3)" 4 | termux_step_create_subpkg_debscripts() { 5 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 6 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 7 | } 8 | -------------------------------------------------------------------------------- /packages/texlive/texlive-pictures.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-pictures" 2 | TERMUX_SUBPKG_DEPENDS="texlive-latexextra" 3 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-pictures $TERMUX_PKG_TMPDIR/texlive.tlpdb) 4 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<< 20190410)" 5 | 6 | termux_step_create_subpkg_debscripts() { 7 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 8 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 9 | } 10 | -------------------------------------------------------------------------------- /packages/texlive/texlive-plaingeneric.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-plaingeneric" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-plaingeneric $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<< 20190410)" 4 | 5 | termux_step_create_subpkg_debscripts() { 6 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 7 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 8 | } 9 | -------------------------------------------------------------------------------- /packages/texlive/texlive-plex.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's plex package" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py plex $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-fontsextra (<< 20200406-3)" 4 | termux_step_create_subpkg_debscripts() { 5 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 6 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 7 | } 8 | -------------------------------------------------------------------------------- /packages/texlive/texlive-poltawski.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's poltawski package" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py poltawski $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-fontsextra (<< 20200406-3)" 4 | termux_step_create_subpkg_debscripts() { 5 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 6 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 7 | } 8 | -------------------------------------------------------------------------------- /packages/texlive/texlive-pstricks.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-pstricks" 2 | TERMUX_SUBPKG_DEPENDS="texlive-plaingeneric" 3 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-pstricks $TERMUX_PKG_TMPDIR/texlive.tlpdb) 4 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<< 20190410), texlive-latexextra (<= 20190410-2)" 5 | 6 | termux_step_create_subpkg_debscripts() { 7 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 8 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 9 | } 10 | -------------------------------------------------------------------------------- /packages/texlive/texlive-publishers.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-publishers" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-publishers $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<= 20190410-2)" 4 | 5 | termux_step_create_subpkg_debscripts() { 6 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 7 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 8 | } 9 | -------------------------------------------------------------------------------- /packages/texlive/texlive-roboto.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's roboto package" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py roboto $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-fontsextra (<< 20200406-3)" 4 | termux_step_create_subpkg_debscripts() { 5 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 6 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 7 | } 8 | -------------------------------------------------------------------------------- /packages/texlive/texlive-stickstoo.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's stickstoo package" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py stickstoo $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-fontsextra (<< 20200406-3)" 4 | termux_step_create_subpkg_debscripts() { 5 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 6 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 7 | } 8 | -------------------------------------------------------------------------------- /packages/texlive/texlive-xetex.subpackage.sh: -------------------------------------------------------------------------------- 1 | TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-xetex" 2 | TERMUX_SUBPKG_INCLUDE=$($TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py collection-xetex $TERMUX_PKG_TMPDIR/texlive.tlpdb) 3 | TERMUX_SUBPKG_CONFLICTS="texlive-bin (<< 20190410), texlive (<< 20190410)" 4 | 5 | termux_step_create_subpkg_debscripts() { 6 | echo "#!$TERMUX_PREFIX/bin/sh" > postinst 7 | echo 'PATH=$PATH:$PREFIX/bin/texlive mktexlsr' >> postinst 8 | } 9 | -------------------------------------------------------------------------------- /packages/texlive/texmf.cnf.patch: -------------------------------------------------------------------------------- 1 | --- ./texmf-dist/web2c/texmf.cnf.orig 2020-03-01 23:41:34.000000000 +0100 2 | +++ ./texmf-dist/web2c/texmf.cnf 2020-04-30 09:19:57.748456275 +0200 3 | @@ -59,7 +59,7 @@ 4 | % SELFAUTOPARENT (its grandparent = /usr/local/texlive/YYYY), and 5 | % SELFAUTOGRANDPARENT (its great-grandparent = /usr/local/texlive). 6 | % Sorry for the off-by-one-generation names. 7 | -TEXMFROOT = $SELFAUTOPARENT 8 | +TEXMFROOT = @TERMUX_PREFIX@/share/texlive 9 | 10 | % The main tree of distributed packages and programs: 11 | TEXMFDIST = $TEXMFROOT/texmf-dist 12 | @@ -382,7 +382,7 @@ 13 | % OSFONTDIR is to provide a convenient hook for allowing TeX to find 14 | % fonts installed on the system (outside of TeX). An empty default 15 | % value would add "//" to the search paths, so we give it a dummy value. 16 | -OSFONTDIR = /please/set/osfontdir/in/the/environment 17 | +OSFONTDIR = @TERMUX_PREFIX@/share/fonts/TTF 18 | 19 | % PostScript Type 1 outline fonts. 20 | T1FONTS = $TEXMFDOTDIR;$TEXMF/fonts/type1//;$OSFONTDIR// 21 | @@ -431,7 +431,7 @@ 22 | PDFTEXCONFIG = $TEXMFDOTDIR;$TEXMF/pdftex/{$progname,}// 23 | 24 | % Used by DMP (ditroff-to-mpx), called by makempx -troff. 25 | -TRFONTS = /usr{/local,}/share/groff/{current/font,site-font}/devps 26 | +TRFONTS = @TERMUX_PREFIX@{/local,}/share/groff/{current/font,site-font}/devps 27 | MPSUPPORT = $TEXMFDOTDIR;$TEXMF/metapost/support 28 | 29 | % For xdvi to find mime.types and .mailcap, if they do not exist in 30 | @@ -582,7 +582,8 @@ 31 | $SELFAUTOPARENT/share/texmf/web2c,\ 32 | $SELFAUTOPARENT/texmf-local/web2c,\ 33 | $SELFAUTOPARENT/texmf-dist/web2c,\ 34 | -$SELFAUTOPARENT/texmf/web2c\ 35 | +$SELFAUTOPARENT/texmf/web2c,\ 36 | +@TERMUX_PREFIX@/share/texlive/texmf/web2c\ 37 | } 38 | % 39 | % For reference, here is the old brace-using definition: 40 | -------------------------------------------------------------------------------- /packages/texlive/tlshell.tcl.patch: -------------------------------------------------------------------------------- 1 | --- ../tlshell.tcl.orig 2020-05-01 17:29:18.643000616 +0200 2 | +++ ./texmf-dist/scripts/tlshell/tlshell.tcl 2020-05-01 17:29:38.669640826 +0200 3 | @@ -1466,7 +1466,7 @@ 4 | tk_messageBox -message [__ "No backup directory defined"] 5 | return 6 | } 7 | - set bdir [file join [exec kpsewhich -var-value SELFAUTOPARENT] $bdir] 8 | + set bdir [file join [exec kpsewhich -var-value TEXMFROOT] $bdir] 9 | if {! [file isdirectory $bdir]} { 10 | tk_messageBox -message [__ "Backup directory %s does not exist" $bdir] 11 | return 12 | -------------------------------------------------------------------------------- /scripts/lint-packages.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e -u 4 | 5 | REPO_DIR=$(realpath "$(dirname "$0")/../") 6 | PACKAGES_DIR="$REPO_DIR/packages" 7 | 8 | check_package_license() { 9 | local pkg_licenses=$1 10 | local license 11 | local license_ok=true 12 | 13 | IFS="," 14 | for license in $pkg_licenses; do 15 | license=$(echo "$license" | sed -r 's/^\s*(\S+(\s+\S+)*)\s*$/\1/') 16 | 17 | case "$license" in 18 | AFL-2.1|AFL-3.0|AGPL-V3|APL-1.0|APSL-2.0|Apache-1.0|Apache-1.1);; 19 | Apache-2.0|Artistic-License-2.0|Attribution|BSD|"BSD 2-Clause");; 20 | "BSD 3-Clause"|"BSD New"|"BSD Simplified"|BSL-1.0|Bouncy-Castle);; 21 | CA-TOSL-1.1|CC0-1.0|CDDL-1.0|CDDL-1.1|CPAL-1.0|CPL-1.0|CPOL);; 22 | CPOL-1.02|CUAOFFICE-1.0|CeCILL-1|CeCILL-2|CeCILL-2.1|CeCILL-B);; 23 | CeCILL-C|Codehaus|Copyfree|Day|Day-Addendum|ECL2|EPL-1.0|EPL-2.0);; 24 | EUDATAGRID|EUPL-1.1|EUPL-1.2|Eiffel-2.0|Entessa-1.0);; 25 | Facebook-Platform|Fair|Frameworx-1.0|GPL-2.0|GPL-3.0|GPL-3.0-only);; 26 | GPL-3.0-or-later|Go|HSQLDB|Historical|IBMPL-1.0|IJG|IPAFont-1.0);; 27 | ISC|IU-Extreme-1.1.1|ImageMagick|JA-SIG|JSON|JTidy|LGPL-2.0);; 28 | LGPL-2.1|LGPL-3.0|LPPL-1.0|Libpng|Lucent-1.02|MIT|MPL-2.0|MS-PL);; 29 | MS-RL|MirOS|Motosoto-0.9.1|Mozilla-1.1|Multics|NASA-1.3|NAUMEN);; 30 | NCSA|NOSL-3.0|NTP|NUnit-2.6.3|NUnit-Test-Adapter-2.6.3|Nethack);; 31 | Nokia-1.0a|OCLC-2.0|OSL-3.0|OpenLDAP|OpenSSL|Openfont-1.1);; 32 | Opengroup|PHP-3.0|PostgreSQL|"Public Domain"|"Public Domain - SUN");; 33 | PythonPL|PythonSoftFoundation|QTPL-1.0|RPL-1.5|Real-1.0|RicohPL);; 34 | SUNPublic-1.0|Scala|SimPL-2.0|Sleepycat|Sybase-1.0|TMate|UPL-1.0);; 35 | Unicode-DFS-2015|Unlicense|UoI-NCSA|"VIM License"|VovidaPL-1.0|W3C);; 36 | WTFPL|Xnet|ZLIB|ZPL-2.0|wxWindows);; 37 | 38 | *) 39 | license_ok=false 40 | break 41 | ;; 42 | esac 43 | done 44 | IFS=$old_ifs 45 | 46 | if $license_ok; then 47 | return 0 48 | else 49 | return 1 50 | fi 51 | } 52 | 53 | lint_package() { 54 | local package_script 55 | local package_name 56 | 57 | package_script=$1 58 | package_name=$(basename "$(dirname "$package_script")") 59 | 60 | echo "================================================================" 61 | echo 62 | echo "Package: $package_name" 63 | echo 64 | echo -n "Syntax check: " 65 | 66 | local syntax_errors 67 | syntax_errors=$(bash -n "$package_script" 2>&1) 68 | 69 | if [ -n "$syntax_errors" ]; then 70 | echo "FAILED" 71 | echo 72 | echo "$syntax_errors" 73 | echo 74 | 75 | return 1 76 | else 77 | echo "PASS" 78 | fi 79 | 80 | echo 81 | 82 | # Fields checking is done in subshell since we will source build.sh. 83 | (set +e +u 84 | local pkg_lint_error 85 | 86 | # Certain fields may be API-specific. 87 | # Using API 24 here. 88 | TERMUX_PKG_API_LEVEL=24 89 | 90 | if [ -f "$REPO_DIR/scripts/properties.sh" ]; then 91 | . "$REPO_DIR/scripts/properties.sh" 92 | fi 93 | 94 | . "$package_script" 95 | 96 | pkg_lint_error=false 97 | 98 | echo -n "TERMUX_PKG_HOMEPAGE: " 99 | if [ -n "$TERMUX_PKG_HOMEPAGE" ]; then 100 | if ! grep -qP '^https://.+' <<< "$TERMUX_PKG_HOMEPAGE"; then 101 | echo "NON-HTTPS (acceptable)" 102 | else 103 | echo "PASS" 104 | fi 105 | else 106 | echo "NOT SET" 107 | pkg_lint_error=true 108 | fi 109 | 110 | echo -n "TERMUX_PKG_DESCRIPTION: " 111 | if [ -n "$TERMUX_PKG_DESCRIPTION" ]; then 112 | str_length=$(($(wc -c <<< "$TERMUX_PKG_DESCRIPTION") - 1)) 113 | 114 | if [ $str_length -gt 100 ]; then 115 | echo "TOO LONG (allowed: 100 characters max)" 116 | else 117 | echo "PASS" 118 | fi 119 | 120 | unset str_length 121 | else 122 | echo "NOT SET" 123 | pkg_lint_error=true 124 | fi 125 | 126 | echo -n "TERMUX_PKG_LICENSE: " 127 | if [ -n "$TERMUX_PKG_LICENSE" ]; then 128 | if [ "$TERMUX_PKG_LICENSE" = "custom" ]; then 129 | echo "CUSTOM" 130 | elif [ "$TERMUX_PKG_LICENSE" = "non-free" ]; then 131 | echo "NON-FREE" 132 | else 133 | if check_package_license "$TERMUX_PKG_LICENSE"; then 134 | echo "PASS" 135 | else 136 | echo "INVALID" 137 | pkg_lint_error=true 138 | fi 139 | fi 140 | else 141 | echo "NOT SET" 142 | pkg_lint_error=true 143 | fi 144 | 145 | if [ -n "$TERMUX_PKG_API_LEVEL" ]; then 146 | echo -n "TERMUX_PKG_API_LEVEL: " 147 | 148 | if grep -qP '^[1-9][0-9]$' <<< "$TERMUX_PKG_API_LEVEL"; then 149 | if [ $TERMUX_PKG_API_LEVEL -lt 24 ] || [ $TERMUX_PKG_API_LEVEL -gt 28 ]; then 150 | echo "INVALID (allowed: number in range 24 - 28)" 151 | pkg_lint_error=true 152 | else 153 | echo "PASS" 154 | fi 155 | else 156 | echo "INVALID (allowed: number in range 24 - 28)" 157 | pkg_lint_error=true 158 | fi 159 | fi 160 | 161 | echo -n "TERMUX_PKG_VERSION: " 162 | if [ -n "$TERMUX_PKG_VERSION" ]; then 163 | echo "PASS" 164 | else 165 | echo "NOT SET" 166 | pkg_lint_error=true 167 | fi 168 | 169 | if [ -n "$TERMUX_PKG_REVISION" ]; then 170 | echo -n "TERMUX_PKG_REVISION: " 171 | 172 | if grep -qP '^[1-9](\d{1,8})?$' <<< "$TERMUX_PKG_REVISION"; then 173 | echo "PASS" 174 | else 175 | echo "INVALID (allowed: number in range 1 - 999999999)" 176 | pkg_lint_error=true 177 | fi 178 | fi 179 | 180 | if [ -n "$TERMUX_PKG_SKIP_SRC_EXTRACT" ]; then 181 | echo -n "TERMUX_PKG_SKIP_SRC_EXTRACT: " 182 | 183 | if [ "$TERMUX_PKG_SKIP_SRC_EXTRACT" = "true" ] || [ "$TERMUX_PKG_SKIP_SRC_EXTRACT" = "false" ]; then 184 | echo "PASS" 185 | else 186 | echo "INVALID (allowed: true / false)" 187 | pkg_lint_error=true 188 | fi 189 | fi 190 | 191 | if [ -n "$TERMUX_PKG_SRCURL" ]; then 192 | echo -n "TERMUX_PKG_SRCURL: " 193 | 194 | urls_ok=true 195 | for url in "${TERMUX_PKG_SRCURL[@]}"; do 196 | if [ -n "$url" ]; then 197 | if ! grep -qP '^https://.+' <<< "$url"; then 198 | echo "NON-HTTPS (acceptable)" 199 | urls_ok=false 200 | break 201 | fi 202 | else 203 | echo "NOT SET (one of the array elements)" 204 | urls_ok=false 205 | pkg_lint_error=true 206 | break 207 | fi 208 | done 209 | unset url 210 | 211 | if $urls_ok; then 212 | echo "PASS" 213 | fi 214 | unset urls_ok 215 | 216 | echo -n "TERMUX_PKG_SHA256: " 217 | if [ -n "$TERMUX_PKG_SHA256" ]; then 218 | if [ "${#TERMUX_PKG_SRCURL[@]}" -eq "${#TERMUX_PKG_SHA256[@]}" ]; then 219 | sha256_ok=true 220 | 221 | for sha256 in "${TERMUX_PKG_SHA256[@]}"; do 222 | if ! grep -qP '^[0-9a-fA-F]{64}$' <<< "${sha256}" && [ "$sha256" != "SKIP_CHECKSUM" ]; then 223 | echo "MALFORMED (SHA-256 should contain 64 hexadecimal numbers)" 224 | sha256_ok=false 225 | pkg_lint_error=true 226 | break 227 | fi 228 | done 229 | unset sha256 230 | 231 | if $sha256_ok; then 232 | echo "PASS" 233 | fi 234 | unset sha256_ok 235 | else 236 | echo "LENGTHS OF 'TERMUX_PKG_SRCURL' AND 'TERMUX_PKG_SHA256' ARE NOT EQUAL" 237 | pkg_lint_error=true 238 | fi 239 | else 240 | echo "NOT SET (acceptable)" 241 | fi 242 | else 243 | if [ "$TERMUX_PKG_SKIP_SRC_EXTRACT" != "true" ] && ! declare -F termux_step_extract_package > /dev/null 2>&1; then 244 | echo "TERMUX_PKG_SRCURL: NOT SET (set TERMUX_PKG_SKIP_SRC_EXTRACT to 'true' if no sources downloaded)" 245 | pkg_lint_error=true 246 | fi 247 | fi 248 | 249 | if [ -n "$TERMUX_PKG_METAPACKAGE" ]; then 250 | echo -n "TERMUX_PKG_METAPACKAGE: " 251 | 252 | if [ "$TERMUX_PKG_METAPACKAGE" = "true" ] || [ "$TERMUX_PKG_METAPACKAGE" = "false" ]; then 253 | echo "PASS" 254 | else 255 | echo "INVALID (allowed: true / false)" 256 | pkg_lint_error=true 257 | fi 258 | fi 259 | 260 | if [ -n "$TERMUX_PKG_ESSENTIAL" ]; then 261 | echo -n "TERMUX_PKG_ESSENTIAL: " 262 | if [ "$TERMUX_PKG_ESSENTIAL" = "true" ] || [ "$TERMUX_PKG_ESSENTIAL" = "false" ]; then 263 | echo "PASS" 264 | else 265 | echo "INVALID (allowed: true / false)" 266 | pkg_lint_error=true 267 | fi 268 | fi 269 | 270 | if [ -n "$TERMUX_PKG_NO_STATICSPLIT" ]; then 271 | echo -n "TERMUX_PKG_NO_STATICSPLIT: " 272 | 273 | if [ "$TERMUX_PKG_NO_STATICSPLIT" = "true" ] || [ "$TERMUX_PKG_NO_STATICSPLIT" = "false" ]; then 274 | echo "PASS" 275 | else 276 | echo "INVALID (allowed: true / false)" 277 | pkg_lint_error=true 278 | fi 279 | fi 280 | 281 | if [ -n "$TERMUX_PKG_BUILD_IN_SRC" ]; then 282 | echo -n "TERMUX_PKG_BUILD_IN_SRC: " 283 | 284 | if [ "$TERMUX_PKG_BUILD_IN_SRC" = "true" ] || [ "$TERMUX_PKG_BUILD_IN_SRC" = "false" ]; then 285 | echo "PASS" 286 | else 287 | echo "INVALID (allowed: true / false)" 288 | pkg_lint_error=true 289 | fi 290 | fi 291 | 292 | if [ -n "$TERMUX_PKG_HAS_DEBUG" ]; then 293 | echo -n "TERMUX_PKG_HAS_DEBUG: " 294 | 295 | if [ "$TERMUX_PKG_HAS_DEBUG" = "true" ] || [ "$TERMUX_PKG_HAS_DEBUG" = "false" ]; then 296 | echo "PASS" 297 | else 298 | echo "INVALID (allowed: true / false)" 299 | pkg_lint_error=true 300 | fi 301 | fi 302 | 303 | if [ -n "$TERMUX_PKG_PLATFORM_INDEPENDENT" ]; then 304 | echo -n "TERMUX_PKG_PLATFORM_INDEPENDENT: " 305 | 306 | if [ "$TERMUX_PKG_PLATFORM_INDEPENDENT" = "true" ] || [ "$TERMUX_PKG_PLATFORM_INDEPENDENT" = "false" ]; then 307 | echo "PASS" 308 | else 309 | echo "INVALID (allowed: true / false)" 310 | pkg_lint_error=true 311 | fi 312 | fi 313 | 314 | if [ -n "$TERMUX_PKG_HOSTBUILD" ]; then 315 | echo -n "TERMUX_PKG_HOSTBUILD: " 316 | 317 | if [ "$TERMUX_PKG_HOSTBUILD" = "true" ] || [ "$TERMUX_PKG_HOSTBUILD" = "false" ]; then 318 | echo "PASS" 319 | else 320 | echo "INVALID (allowed: true / false)" 321 | pkg_lint_error=true 322 | fi 323 | fi 324 | 325 | if [ -n "$TERMUX_PKG_FORCE_CMAKE" ]; then 326 | echo -n "TERMUX_PKG_FORCE_CMAKE: " 327 | 328 | if [ "$TERMUX_PKG_FORCE_CMAKE" = "true" ] || [ "$TERMUX_PKG_FORCE_CMAKE" = "false" ]; then 329 | echo "PASS" 330 | else 331 | echo "INVALID (allowed: true / false)" 332 | pkg_lint_error=true 333 | fi 334 | fi 335 | 336 | if [ -n "$TERMUX_PKG_RM_AFTER_INSTALL" ]; then 337 | echo -n "TERMUX_PKG_RM_AFTER_INSTALL: " 338 | file_path_ok=true 339 | 340 | while read -r file_path; do 341 | [ -z "$file_path" ] && continue 342 | 343 | if grep -qP '^(\.\.)?/' <<< "$file_path"; then 344 | echo "INVALID (file path should be relative to prefix)" 345 | file_path_ok=false 346 | pkg_lint_error=true 347 | break 348 | fi 349 | done <<< "$TERMUX_PKG_RM_AFTER_INSTALL" 350 | unset file_path 351 | 352 | if $file_path_ok; then 353 | echo "PASS" 354 | fi 355 | unset file_path_ok 356 | fi 357 | 358 | if [ -n "$TERMUX_PKG_CONFFILES" ]; then 359 | echo -n "TERMUX_PKG_CONFFILES: " 360 | file_path_ok=true 361 | 362 | while read -r file_path; do 363 | [ -z "$file_path" ] && continue 364 | 365 | if grep -qP '^(\.\.)?/' <<< "$file_path"; then 366 | echo "INVALID (file path should be relative to prefix)" 367 | file_path_ok=false 368 | pkg_lint_error=true 369 | break 370 | fi 371 | done <<< "$TERMUX_PKG_CONFFILES" 372 | unset file_path 373 | 374 | if $file_path_ok; then 375 | echo "PASS" 376 | fi 377 | unset file_path_ok 378 | fi 379 | 380 | if $pkg_lint_error; then 381 | exit 1 382 | else 383 | exit 0 384 | fi 385 | ) 386 | 387 | local ret=$? 388 | 389 | echo 390 | 391 | return "$ret" 392 | } 393 | 394 | linter_main() { 395 | local package_counter=0 396 | local problems_found=false 397 | local package_script 398 | 399 | for package_script in "$@"; do 400 | if ! lint_package "$package_script"; then 401 | problems_found=true 402 | break 403 | fi 404 | 405 | package_counter=$((package_counter + 1)) 406 | done 407 | 408 | if $problems_found; then 409 | echo "================================================================" 410 | echo 411 | echo "A problem has been found in '$(realpath --relative-to="$REPO_DIR" "$package_script")'." 412 | echo "Checked $package_counter packages before the first error was detected." 413 | echo 414 | echo "================================================================" 415 | 416 | return 1 417 | else 418 | echo "================================================================" 419 | echo 420 | echo "Checked $package_counter packages." 421 | echo "Everything seems ok." 422 | echo 423 | echo "================================================================" 424 | fi 425 | 426 | return 0 427 | } 428 | 429 | if [ $# -eq 0 ]; then 430 | linter_main "$PACKAGES_DIR"/*/build.sh || exit 1 431 | else 432 | linter_main "$@" || exit 1 433 | fi 434 | -------------------------------------------------------------------------------- /start-builder.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | ## 3 | ## Script for preparing & launching build environment. 4 | ## 5 | ## Copyright 2019 Leonid Plyushch 6 | ## 7 | ## Licensed under the Apache License, Version 2.0 (the "License"); 8 | ## you may not use this file except in compliance with the License. 9 | ## You may obtain a copy of the License at 10 | ## 11 | ## http://www.apache.org/licenses/LICENSE-2.0 12 | ## 13 | ## Unless required by applicable law or agreed to in writing, software 14 | ## distributed under the License is distributed on an "AS IS" BASIS, 15 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | ## See the License for the specific language governing permissions and 17 | ## limitations under the License. 18 | ## 19 | 20 | set -e -u 21 | 22 | SCRIPT_NAME=$(basename "$0") 23 | REPOROOT=$(dirname "$(realpath "$0")") 24 | 25 | IMAGE_NAME="termux/package-builder" 26 | 27 | LOCK_FILE="/tmp/.termux-science-builder.lck" 28 | CONTAINER_NAME="termux-package-builder" 29 | BUILD_ENVIRONMENT="termux-packages" 30 | 31 | BUILDER_HOME="/home/builder" 32 | 33 | cd "$REPOROOT" 34 | 35 | if [ ! -e "$LOCK_FILE" ]; then 36 | touch "$LOCK_FILE" 37 | fi 38 | 39 | if [ "${GITHUB_EVENT_PATH-x}" != "x" ]; then 40 | # On CI/CD tty may not be available. 41 | DOCKER_TTY="" 42 | else 43 | DOCKER_TTY=" --tty" 44 | fi 45 | 46 | (flock -n 3 || exit 0 47 | docker stop "$CONTAINER_NAME" >/dev/null 2>&1 || true 48 | 49 | echo "[*] Setting up repository submodules..." 50 | 51 | OWNER=$(stat -c "%U" "$REPOROOT") 52 | if [ "${OWNER}" != "$USER" ]; then 53 | sudo -u $OWNER git submodule deinit --all --force 54 | sudo -u $OWNER git submodule update --init 55 | else 56 | git submodule deinit --all --force 57 | git submodule update --init 58 | fi 59 | ) 3< "$LOCK_FILE" 60 | 61 | (flock -n 3 || true 62 | echo "[*] Running container '$CONTAINER_NAME' from image '$IMAGE_NAME'..." 63 | if ! docker start "$CONTAINER_NAME" > /dev/null 2>&1; then 64 | echo "Creating new container..." 65 | docker run \ 66 | --tty \ 67 | --detach \ 68 | --name "$CONTAINER_NAME" \ 69 | --volume "${REPOROOT}/${BUILD_ENVIRONMENT}:${BUILDER_HOME}/termux-packages" \ 70 | --workdir "${BUILDER_HOME}/termux-packages" \ 71 | "$IMAGE_NAME" 72 | 73 | if [ "$(id -u)" -ne 0 ] && [ "$(id -u)" -ne 1000 ]; then 74 | echo "Changed builder uid/gid... (this may take a while)" 75 | docker exec $DOCKER_TTY "$CONTAINER_NAME" sudo chown -R $(id -u) "${BUILDER_HOME}" 76 | docker exec $DOCKER_TTY "$CONTAINER_NAME" sudo chown -R $(id -u) /data 77 | docker exec $DOCKER_TTY "$CONTAINER_NAME" sudo usermod -u $(id -u) builder 78 | docker exec $DOCKER_TTY "$CONTAINER_NAME" sudo groupmod -g $(id -g) builder 79 | fi 80 | fi 81 | 82 | echo "[*] Copying packages from './packages' to build environment..." 83 | for pkg in $(find "$REPOROOT"/packages -mindepth 1 -maxdepth 1 -type d); do 84 | PKG_DIR="${BUILDER_HOME}/${BUILD_ENVIRONMENT}/packages/$(basename "$pkg")" 85 | if docker exec "$CONTAINER_NAME" [ ! -d "${PKG_DIR}" ]; then 86 | # docker cp -a does not work, discussed here: https://github.com/moby/moby/issues/34142 87 | docker cp "$pkg" "$CONTAINER_NAME:${BUILDER_HOME}/${BUILD_ENVIRONMENT}"/packages/ 88 | else 89 | echo "[!] Package '$(basename "$pkg")' already exists in build environment. Skipping." 90 | fi 91 | done 92 | 93 | if [ $# -ge 1 ]; then 94 | docker exec --interactive $DOCKER_TTY "$CONTAINER_NAME" "$@" 95 | else 96 | docker exec --interactive $DOCKER_TTY "$CONTAINER_NAME" bash 97 | fi 98 | ) 3< "$LOCK_FILE" 99 | --------------------------------------------------------------------------------