aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordacctal <donotcontactmevia@email.invalid>2026-10-22 15:00:26 +0000
committerdacctal <donotcontactmevia@email.invalid>2026-10-22 15:00:26 +0000
commit5bea8b95e3857b250e98327140a580ef68a59d9c (patch)
tree710026fb87bfd94d87cb16fa650b06e85ac401d6 /include
parent865342c3fabb50672e2188ccd4d7c3eb7bfb045a (diff)
added some bldit stuff, it's still broken though
Diffstat (limited to 'include')
-rw-r--r--include/bldit.h27
-rw-r--r--include/pkg.h9
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);