diff options
| author | Eugen Wissner <belka@caraus.de> | 2025-03-10 12:16:31 +0100 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2025-03-10 12:16:31 +0100 |
| commit | dfa5a732bab2bf4c50c6b193cb49cd3a67aef720 (patch) | |
| tree | 54b15db6e2a686908bbcaa799534e3490bfa401d /include/katja/sbo.hpp | |
| parent | 0fc4ddbd52cc243192830fe3b153334f83510947 (diff) | |
| download | kazbek-dfa5a732bab2bf4c50c6b193cb49cd3a67aef720.tar.gz | |
Display packages installed from a repository
Diffstat (limited to 'include/katja/sbo.hpp')
| -rw-r--r-- | include/katja/sbo.hpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/katja/sbo.hpp b/include/katja/sbo.hpp new file mode 100644 index 0000000..ff16dd7 --- /dev/null +++ b/include/katja/sbo.hpp @@ -0,0 +1,29 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ +#pragma once + +#include <string> +#include <vector> +#include <filesystem> +#include <optional> + +namespace katja +{ + struct info_file + { + const std::string program_name; + const std::string version; + const std::string homepage; + const std::string email; + const std::string maintainer; + + info_file(const std::string& program_name, const std::string& version, + const std::string homepage, const std::string& email, const std::string& maintainer); + }; + + std::optional<info_file> read_slackbuild_info(const std::filesystem::path& info_filepath); + void search_for_slackbuilds(std::vector<info_file>& info_files, const std::filesystem::path& directory); +} |
