-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Termux package repository #628
Comments
Duplicate of #406. Unfortunately there's still no machine readable metadata available. |
@AMDmi3 Which kind of metadata is needed? The packages are provided in apt repositories (e.g. http://termux.net/dists/stable/main/binary-aarch64/Packages for aarch64) - is that enough or is more metadata needed? |
Oh, I've missed that. The Debian repository format is suitable (and already supported), but binary repositories are not, because they contain subpackages (from |
@fornwall don't you have source packages? That would be usable. Otherwise if you're interested in repology support you could set up a regular dump of data extracted directly from |
@AMDmi3 Thanks for the explanation! We don't have source packages at the moment, as the packages are cross-compiled with the NDK toolchain and many cannot be built on devices directly. So a scheduled daily dump of data is probably the way forward now! I could set it up and publish it on an URL. Do you have a specification or similar how the data should be formatted? |
Well I think that repositories should just publish complete metadata on their packages in any format convenient to them without adjusting to Repology, as it may be useful for other consumers, and Repology is fine with supporting any format. If you ask me, JSON is most widely supported and easily parsable, and the following structure is obvious for Termux, reflecting the fields of
note that Repology doesn't currently use |
@fornwall any progress? |
@AMDmi3 I generated https://fornwall.net/termux-packages.json as a first attempt. What do you think about that file? |
Looks mostly good, apart from couple minor problems:
Also, |
Not enabled yet pending regular data dump.
@AMDmi3 Thanks! I've updated the file at https://fornwall.net/termux-packages.json to skip keys for empty values (and I'm looking at fixing srcurl for some packages). Also, I fixed the version missing on some packages.
Yes, the format is reliable, so just drop everything up to the semicolon! |
|
Thanks, fixed!
Ok, I've left empty dependency lists in now!
Great! I've setup publishing of the package metadata to https://termux.net/dists/stable/packages.json now! Let me know if there are any problems. |
It's in production, have fun! |
Thanks a lot, very useful! Let me know if I can improve the package layout or metadata to be more useful for repology. |
The metadata is good. If I may suggest to the Regarding the packages, you can look at this list. Brown ones are supposedly fake versions which could be fixed in the repo (unless I marked them incorrectly). Others are (more or less apparently looking like) snapshots and are tolerable, see #345 for more on this. There's also a bunch of renames, of which I particularly don't like |
@fornwall Hi, |
@fornwall json is currently broken: ...
{
"name": "2048-c",
"version": "2021.04.22",
"description": "Console version of the game "2048" for GNU/Linux",
"homepage": "https://github.com/mevdschee/2048.c",
"depends": [],
"srcurl": "https://github.com/mevdschee/2048.c.git",
"maintainer": "@termux"
},
... See also the previous comment. |
Termux is a very popular terminal app for Android and it has a package manager on its own. There are already lots of packages and you can install things like OpenSSH, Python, the Go compiler etc. without rooting the Android phone.
The packages are in this repository: https://github.com/termux/termux-packages
The text was updated successfully, but these errors were encountered: