From 20f3d98d637c5992c53f19590c15fa923f4eedcd Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sat, 19 Apr 2025 14:48:48 +0200 Subject: Move katja into a separate repository --- include/katja/sbo.hpp | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 include/katja/sbo.hpp (limited to 'include/katja/sbo.hpp') diff --git a/include/katja/sbo.hpp b/include/katja/sbo.hpp deleted file mode 100644 index ba46509..0000000 --- a/include/katja/sbo.hpp +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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 -#include -#include -#include - -#include "katja/repository.hpp" - -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); - - package_identifier identifier_for(const std::string& architecture); - }; - - class sbo_repository final : public repository - { - std::map info_paths; - - public: - sbo_repository(const std::filesystem::path& repository_path); - - std::vector get_updates(const package_database& database) override; - std::vector search_names(const std::string& architecture, - const std::string& needle) override; - }; - - std::optional read_slackbuild_info(const std::filesystem::path& info_filepath); -} -- cgit v1.2.3