diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/bldit.h | 27 | ||||
| -rw-r--r-- | include/pkg.h | 9 |
2 files changed, 35 insertions, 1 deletions
diff --git a/include/bldit.h b/include/bldit.h new file mode 100644 index 0000000..4dc0745 --- /dev/null +++ b/include/bldit.h @@ -0,0 +1,27 @@ +/* + + pkgit - package it! + + Copyright (C) 2026 dacctal + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <https://www.gnu.org/licenses/>. + +*/ + +#ifndef PKGIT_CLI_H +#define PKGIT_CLI_H + +#include "str.h" +str bldit_file = {0}; + +#endif diff --git a/include/pkg.h b/include/pkg.h index 6b13e71..8aa5ac5 100644 --- a/include/pkg.h +++ b/include/pkg.h @@ -4,7 +4,7 @@ #include "str.h" typedef struct package_t { - str name, version, url, src, root; + str name, version, url, src, root, bldit; unsigned int dep_count; bool is_local; } package_t; @@ -19,6 +19,12 @@ bool pkg_hook_remove(package_t *pkg); bool pkg_hook_on_update(package_t *pkg); bool pkg_hook_fetch_sources(package_t *pkg); bool pkg_hook_fetch_latest_version(package_t *pkg); + +void bldit_file_set(package_t *pkg); +bool bldit_file_exists(package_t *pkg); +bool bldit_hook_set(package_t *pkg); +bool bldit_hook_recipe(package_t *pkg, const char *recipe); + str pkg_get_latest_version(package_t *pkg); bool pkg_hook_url(package_t *pkg); str pkg_get_url(package_t *pkg); @@ -26,6 +32,7 @@ str pkg_get_url(package_t *pkg); bool pkg_setup(package_t *pkg); bool pkg_build(package_t *pkg); bool pkg_install(package_t *pkg); +bool pkg_full_install(package_t *pkg); bool pkg_remove(package_t *pkg); bool pkg_update(package_t *pkg); |
