Thanks to the command.py
file, you can build a package by def
ining the
following functions:
configure
to configure the packagecompile
to compile the packagecheck
to check the packageinstall
to install the package
Here's a simple example of a command.py
file:
#!/usr/bin/env python3
from dot_mngr import *
def configure(self):
self.chroot()
self.cmd_run(
"./configure"
f" --prefix={PREFIX}"
" --disable-static"
)
def compile(self):
self.cmd_run("make")
def check(self):
self.cmd_run("make check")
def install(self):
self.cmd_run("make install")
Getting newer link to a tarball providing a link or a value to scrap, wich fit the best with one of the following scrap techniques:
- apache
- apache_dir
- apache_no_sort
- github
- github_tag
- gitlab
- website
- fossies
- fossies_search
- pypi
- sourceforge
- no_scrap
Associated with a prefix and a suffix, dot_mngr will return the link and the version of the newer package.
here is some exemple of meta.json from the main repos:
-
main@acl
for a files section:- value with a
/
will be considered as a path to a file - others are considered as a cmd found in the PATH environment variable
- value with a
-
main@coreutils
for a patchs section:- with a patch name, for later reference
- and a link to the patch
Note
Try resolve dependencies for this package ;)
-
blfs@1_cryptsetup
for a dependencies section:- with a section required that, for the moment, regroup required, run and build time, as well as recommended packages
-
lfs@1_linux
for a reference section:- package with reference merge the meta.json of the current package on top of the reference package
- the doc
- differences occure when package configure in
/etc/passwd
and/etc/group
more generally, allow modification on/etc/passwd
and/etc/group
- workflows to update repo:
- split repo folder into githubs, referencing package as needed, provide with template, actions can update repo
- Some test are not correctly checked and therefore considered as good
- Register check/test that don't pass
- Review systemd unit install
- meta.json: reference of reference not working
'blfs@1_dbus']