Closed agnostic-apollo closed 2 years ago
excellent !, this will help a lot to the automation and creation of packages for termux, many people will find it useful and it will encourage the use of deb packages to package projects
excellent !, this will help a lot to the automation and creation of packages for termux, many people will find it useful and it will encourage the use of deb packages to package projects
Thanks. Automation was my goal too.
I have added install instructions in main comment above.
I am already using your update.
but I need a favor, can you give me an example of how to add a postins / postrm to the package? I didn't see how to do that in the documentation and I need it.
It is documented at https://github.com/agnostic-apollo/termux-create-package/tree/rewrite#Other-Control-Files
The maintainer scripts
preinst
,postinst
,prerm
,postrm
,config
and other control filesconffiles
,templates
,shlibs
are automatically added tocontrol.tar*
if they exist incontrol_files_dir
orfiles_dir
.
Do you mean that if there is a folder called "control_files_dir" in the place of the script, it will automatically add the scripts that are inside that folder?
No, those are keys where you supply the path. Check https://github.com/agnostic-apollo/termux-create-package/blob/rewrite/examples/goodbye-world/manifest-android-termux.yml#L16 and https://github.com/agnostic-apollo/termux-create-package/tree/rewrite/examples/goodbye-world/control of goodbye-world
example.
Oh, thanks!
When will it be available?
When will it be available?
Well, like mostly always, nobody or not many are interested in testing (huge) changes, so will just merge after bumping versions and update package in termux-packages
. I am not sure who has access for python package publishing, @xeffyr seems to have it.
Oh, ok
Check
README.md
for further details. It seems to be working fine for both ubuntu and termux (android7
) as per my tests. Let me know if there are any issues. I'll wait a while for feedback before bumping version and merging. A single commit was done since pretty much everything has been replaced or deleted from previous versions and this is more like an initial commit.Release workflow and manual install instructions do need to be tested. Looks fine, final tests would need to be done after merging anyways.
Added
YAML
format for manifests.Installed-Size
field tocontrol
file.md5sums
file.config
,conffiles
,templates
,shlibs
to control tar.control
file fields.--control-files-dir
,--deb-dir
,--deb-name
,--files-dir
,--pkg-arch
,--pkg-version
and--yaml
comamnd line options.installation_prefix
,files_dir
,tar_compression
,tar_format
,deb_dir
,deb_name
,deb_architecture_tag
,control_files_dir
,maintainer_scripts_shebang
,conffiles_prefix_to_replace
,fix_perms
,allow_bad_user_names_and_ids
,ignore_android_specific_rules
create info fields in manifest.source
,perm
,fix_perm
,source_ownership
,owner_uid
,owner_uname
,owner_gid
,owner_gname
,is_conffile
attribute fields fordata_files
dictionary in manifest.ignore
,ignore_if_no_exist
,source_readlink
,source_recurse
,set_parent_perm
,symlink_destinations
,set_shebang
action fields fordata_files
dictionary in manifest.termux-create-package
script andsha256sums.txt
to releases.Changed
README.md
for details. Thefiles
dictionary has been replaced withdata_files
. Thecontrol
file fields are to be added to thecontrol
dictionary.dpkg
rules.Depends
,Provides
,Conflicts
and other package relationship fields should be of typestring
now instead of alist
.Description
and other multi-line field values should be of typelist
now instead of astring
.--prefix
must now be an absolute path.Install instructions
You can run following commands to install the updated script.
Termux
Linux Distros